2022-06-15 14:24:58 +00:00
|
|
|
#Use ./sig release <windows|mac|linux> to create a custom installer based on OS.
|
2022-06-06 14:35:52 +00:00
|
|
|
#Java
|
|
|
|
|
source ${LANGUAGE}/scripts/version_info
|
2022-06-15 15:36:43 +00:00
|
|
|
FILES=$(cat ${LANGUAGE}/scripts/.package.files)
|
2022-06-15 14:20:19 +00:00
|
|
|
if [ "$1" = "windows" ];then
|
|
|
|
|
echo "Creating a package for Windows..."
|
|
|
|
|
echo "Not implemented yet."
|
|
|
|
|
elif [ "$1" = "mac" ];then
|
|
|
|
|
echo "Creating a package for Mac..."
|
|
|
|
|
echo "Not implemented yet."
|
|
|
|
|
elif [ "$1" = "linux" ];then
|
|
|
|
|
echo "Creating a package for Linux..."
|
|
|
|
|
cd ..
|
2022-06-15 15:31:00 +00:00
|
|
|
mkdir -vp RabiCloneOut/in
|
2022-06-15 15:30:00 +00:00
|
|
|
for f in $FILES
|
|
|
|
|
do
|
2022-06-15 16:01:28 +00:00
|
|
|
cp -Rv --parents $PROJECT_NAME/$f RabiCloneOut/in
|
2022-06-15 15:30:00 +00:00
|
|
|
done
|
2022-06-15 16:01:28 +00:00
|
|
|
jpackage --verbose --input RabiCloneOut/in/RabiClone --main-jar bin/RabiClone.jar --main-class sig.RabiClone --type app-image --dest RabiCloneOut
|
2022-06-15 15:14:56 +00:00
|
|
|
cp -Rv RabiCloneOut/RabiClone/lib/app/* RabiCloneOut/RabiClone
|
2022-06-15 15:16:13 +00:00
|
|
|
jpackage --verbose --app-image RabiCloneOut/RabiClone --name RabiClone
|
2022-06-15 15:14:56 +00:00
|
|
|
rm -Rfv RabiCloneOut
|
2022-06-15 14:20:19 +00:00
|
|
|
cd RabiClone
|
|
|
|
|
echo "Done!"
|
2022-06-15 14:24:58 +00:00
|
|
|
else
|
|
|
|
|
echo "Usage: "
|
2022-06-15 14:33:19 +00:00
|
|
|
echo " ./sig release <windows|mac|linux>"
|
2022-06-15 14:20:19 +00:00
|
|
|
fi
|