Co-authored-by: r3cp3ct <45179536+r3cp3ct@users.noreply.github.com> Co-authored-by: sigonasr2 <sigonasr2@gmail.com>main
parent
471a9e5dbf
commit
53c2ec132d
@ -1,14 +1,22 @@ |
|||||||
#Creates a zip file containing all project contents. |
#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 |
||||||
TARGET_FILE="${PROJECT_NAME}_${RELEASE_VERSION}.zip" |
if [ "$1" = "windows" ];then |
||||||
FILES=$(cat ${LANGUAGE}/scripts/.package.files) |
echo "Creating a package for Windows..." |
||||||
echo "Creating Package $TARGET_FILE..." |
echo "Not implemented yet." |
||||||
for f in $FILES |
elif [ "$1" = "mac" ];then |
||||||
do |
echo "Creating a package for Mac..." |
||||||
zip -ur $TARGET_FILE $f |
echo "Not implemented yet." |
||||||
done |
elif [ "$1" = "linux" ];then |
||||||
echo "Complete!" |
echo "Creating a package for Linux..." |
||||||
echo "" |
cd .. |
||||||
echo "" |
jpackage --input RabiClone --main-jar bin/RabiClone.jar --main-class sig.RabiClone --type app-image --dest RabiCloneOut |
||||||
echo "" |
cp -R RabiCloneOut/RabiClone/lib/app/* RabiCloneOut/RabiClone |
||||||
|
jpackage --app-image RabiCloneOut/RabiClone --name RabiClone |
||||||
|
rm -Rf RabiCloneOut |
||||||
|
cd RabiClone |
||||||
|
echo "Done!" |
||||||
|
else |
||||||
|
echo "Usage: " |
||||||
|
echo " ./sig release <windows|mac|linux>" |
||||||
|
fi |
@ -0,0 +1,14 @@ |
|||||||
|
#Create a zip folder containing all dependencies. For quick release. |
||||||
|
#Java |
||||||
|
source ${LANGUAGE}/scripts/version_info |
||||||
|
TARGET_FILE="${PROJECT_NAME}_${RELEASE_VERSION}.zip" |
||||||
|
FILES=$(cat ${LANGUAGE}/scripts/.package.files) |
||||||
|
echo "Creating Package $TARGET_FILE..." |
||||||
|
for f in $FILES |
||||||
|
do |
||||||
|
zip -ur $TARGET_FILE $f |
||||||
|
done |
||||||
|
echo "Complete!" |
||||||
|
echo "" |
||||||
|
echo "" |
||||||
|
echo "" |
Loading…
Reference in new issue