|
|
@ -1,6 +1,7 @@ |
|
|
|
#Use ./sig release <windows|mac|linux> to create a custom installer based on OS. |
|
|
|
#Use ./sig release <windows|mac|linux> to create a custom installer based on OS. |
|
|
|
#Java |
|
|
|
#Java |
|
|
|
source ${LANGUAGE}/scripts/version_info |
|
|
|
source ${LANGUAGE}/scripts/version_info |
|
|
|
|
|
|
|
FILES=$(cat ${LANGUAGE}/scripts/.package.files) |
|
|
|
if [ "$1" = "windows" ];then |
|
|
|
if [ "$1" = "windows" ];then |
|
|
|
echo "Creating a package for Windows..." |
|
|
|
echo "Creating a package for Windows..." |
|
|
|
echo "Not implemented yet." |
|
|
|
echo "Not implemented yet." |
|
|
@ -10,10 +11,15 @@ elif [ "$1" = "mac" ];then |
|
|
|
elif [ "$1" = "linux" ];then |
|
|
|
elif [ "$1" = "linux" ];then |
|
|
|
echo "Creating a package for Linux..." |
|
|
|
echo "Creating a package for Linux..." |
|
|
|
cd .. |
|
|
|
cd .. |
|
|
|
jpackage --input RabiClone --main-jar bin/RabiClone.jar --main-class sig.RabiClone --type app-image --dest RabiCloneOut |
|
|
|
mkdir -vp RabiCloneOut/in |
|
|
|
cp -R RabiCloneOut/RabiClone/lib/app/* RabiCloneOut/RabiClone |
|
|
|
for f in $FILES |
|
|
|
jpackage --app-image RabiCloneOut/RabiClone --name RabiClone |
|
|
|
do |
|
|
|
rm -Rf RabiCloneOut |
|
|
|
cp -Rv --parents $PROJECT_NAME/$f RabiCloneOut/in |
|
|
|
|
|
|
|
done |
|
|
|
|
|
|
|
jpackage --verbose --input RabiCloneOut/in/RabiClone --main-jar bin/RabiClone.jar --main-class sig.RabiClone --type app-image --dest RabiCloneOut |
|
|
|
|
|
|
|
cp -Rv RabiCloneOut/RabiClone/lib/app/* RabiCloneOut/RabiClone |
|
|
|
|
|
|
|
jpackage --verbose --app-image RabiCloneOut/RabiClone --name RabiClone |
|
|
|
|
|
|
|
rm -Rfv RabiCloneOut |
|
|
|
cd RabiClone |
|
|
|
cd RabiClone |
|
|
|
echo "Done!" |
|
|
|
echo "Done!" |
|
|
|
else |
|
|
|
else |
|
|
|