Files
diy-layout-creator/diylc/diylc-swing/deploy/linux/diylc.sh
T
Bane Stojkovic 4093641b7e Refactor/maven (#889)
* mavenize

* mavenization

* mavenization

* mavenization

* mavenization

* mavenization

* mavenization

* mavenization

* mavenization

* fix

* app framework update

* fix lib

* lib

* fix mavenized

* fix mavenized

* fix mavenized

* fix mavenized

* fix mavenized

* fix mavenized

* fix mavenized

* fix mavenized

* building for win and linux

* Create run.bat

* fixes for netlist

* cleanup

* unit tests

* unit tests

* configurable high dpi

* performance upgrade

* performance upgrade

* rotate bug

* Omit boards, wires, traces, terminals, etc from Spice netlist output

* splash version update

* optimize libs

* optimize libs

* updates

* mac build maven

* ruler optimization, moved images

* cleanup

* notarization

* test workflow

* build

* Update pom.xml

* Update pom.xml

* Create README.md

* Create test.yml

* maven

* build
2025-03-20 19:44:40 +01:00

49 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 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
if [ ! -f $SNAP_USER_DATA/themes/'Gray.xml' ]
then
cp $SNAP/themes/'Gray.xml' $SNAP_USER_DATA/themes/'Gray.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