Files
diy-layout-creator/diylc/diylc-swing/diylc.sh
T
Bane Stojkovic 738dd800af Upcoming (#691)
* Added 1/8" jack

* Release 4.20

* Merge traces and wires into "Wiring" layer

* Add shabang to run.sh

* Added gray theme

* Prevent the donation label from wrapping into several lines

* Use Backspace key to delete selection in Mac OS

* Upgrade xstream to fix java 16 compatibility

* Add exec to run.sh

* Added regulator pinouts to transistor body components

* Release 4.21.1

* Fix linux run.sh, added more java-opens
2022-02-21 23:23:56 +01:00

50 lines
1.4 KiB
Bash

#!/bin/bash
export JAVA_HOME=$SNAP/usr/lib/jvm/java-8-openjdk-amd64
export PATH=$JAVA_HOME/jre/bin:$PATH
#Start in user configuration directory
cd $SNAP_USER_DATA
#Create any missing user configuration directories
#themes
if [ ! -d $SNAP_USER_DATA/themes ]
then
mkdir $SNAP_USER_DATA/themes
fi
#copy a mising update.xml file
if [ ! -f $SNAP_USER_DATA/update.xml ]
then
cp $SNAP/update.xml $SNAP_USER_DATA/update.xml
fi
#copy themes
if [ ! -f $SNAP_USER_DATA/themes/'Blueprint.xml' ]
then
cp $SNAP/themes/'Blueprint.xml' $SNAP_USER_DATA/themes/'Blueprint.xml'
fi
if [ ! -f $SNAP_USER_DATA/themes/'Dark.xml' ]
then
cp $SNAP/themes/'Dark.xml' $SNAP_USER_DATA/themes/'Dark.xml'
fi
if [ ! -f $SNAP_USER_DATA/themes/'Light.xml' ]
then
cp $SNAP/themes/'Light.xml' $SNAP_USER_DATA/themes/'Light.xml'
fi
cd $SNAP
echo =============================================
echo SNAP
echo $SNAP
echo =============================================
echo SNAP_USER_DATA
echo $SNAP_USER_DATA
echo =============================================
java -Xms512m -Xmx2048m -Dorg.diylc.scriptRun=true -Duser.dir=$SNAP_USER_DATA -Dfile.encoding=UTF-8 -cp $SNAP/diylc.jar:lib --add-opens java.base/java.util=ALL-UNNAMED --add-opens java.base/java.lang=ALL-UNNAMED --add-opens java.base/java.text=ALL-UNNAMED --add-opens java.desktop/java.awt=ALL-UNNAMED --add-opens java.desktop/java.awt.font=ALL-UNNAMED --add-opens java.desktop/java.awt.geom=ALL-UNNAMED org.diylc.DIYLCStarter