parent
b6e579e25f
commit
b6a414d35e
@ -0,0 +1,17 @@ |
|||||||
|
#Builds and runs the project for Windows. |
||||||
|
#Java |
||||||
|
source ${LANGUAGE}/scripts/version_info |
||||||
|
javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp ${CLASS_PATH_WINDOWS} -d ${OUT_DIR} ${PROJECT_DIR}/*.java |
||||||
|
printf "\n\n\nRunning Program...\n\n" |
||||||
|
ORIGINAL_LOC=$(pwd) |
||||||
|
cd $OUT_DIR |
||||||
|
if java ${CUSTOM_PARAMS} -cp ".;../lib/bin/" -XX:+UseZGC "-Djava.library.path=${LIBRARY_PATH}" ${MAIN_CLASS} "$@"; then |
||||||
|
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh |
||||||
|
exit |
||||||
|
fi |
||||||
|
if java ${CUSTOM_PARAMS} -cp ".;../lib/bin/" -XX:+UnlockExperimentalVMOptions -XX:+UseZGC "-Djava.library.path=${LIBRARY_PATH}" ${MAIN_CLASS} "$@"; then |
||||||
|
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh |
||||||
|
exit |
||||||
|
fi |
||||||
|
java ${CUSTOM_PARAMS} -cp ".;../lib/bin/" -XX:+PrintCommandLineFlags "-Djava.library.path=${LIBRARY_PATH}" ${MAIN_CLASS} "$@" |
||||||
|
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh |
@ -1,7 +1,10 @@ |
|||||||
|
build2.sh |
||||||
build.sh |
build.sh |
||||||
clean.sh |
clean.sh |
||||||
commit.sh |
commit.sh |
||||||
|
jar2.sh |
||||||
jar.sh |
jar.sh |
||||||
release.sh |
release.sh |
||||||
update.sh |
update.sh |
||||||
version_info |
version_info |
||||||
|
zip.sh |
||||||
|
@ -0,0 +1,17 @@ |
|||||||
|
#Builds a runnable jar file using ${MAIN_CLASS} as an entry point and then runs the newly generated jar for Windows. |
||||||
|
#Java |
||||||
|
source ${LANGUAGE}/scripts/version_info |
||||||
|
rm -Rf bin/* |
||||||
|
javac -source ${SOURCE_VERSION} -target ${TARGET_VERSION} -Xlint:unchecked -cp ${CLASS_PATH_WINDOWS} -d ${OUT_DIR} ${PROJECT_DIR}/${PROJECT_NAME}.java |
||||||
|
printf "\n\n\nGenerating Manifest...\n\n" |
||||||
|
touch manifest |
||||||
|
echo "Main-Class: ${MAIN_CLASS}" > manifest |
||||||
|
printf "\n\n\nCreating Jar...\n\n" |
||||||
|
ORIGINAL_LOC=$(pwd) |
||||||
|
cd ${OUT_DIR} |
||||||
|
jar cfm ${PROJECT_NAME}.jar ${ORIGINAL_LOC}/manifest sig |
||||||
|
jar uf ${PROJECT_NAME}.jar -C ../lib/bin/ . |
||||||
|
printf "\n\n\nRunning Program...\n\n" |
||||||
|
java ${CUSTOM_PARAMS} -cp .;../lib/bin "-Djava.library.path=${LIBRARY_PATH}" -jar ${PROJECT_NAME}.jar "$@" |
||||||
|
${ORIGINAL_LOC}/${LANGUAGE}/scripts/clean.sh |
||||||
|
cd .. |
@ -1,6 +1,9 @@ |
|||||||
build.sh:22308eae5fd9c88aa16fef54cf03ae21 - |
build2.sh:b1c6b7c6b2eb19ba54be6824bda8805b - |
||||||
|
build.sh:5df470d49036bf7565493739aeebeaa8 - |
||||||
clean.sh:668a2f9b568c55f6a044a509315032f6 - |
clean.sh:668a2f9b568c55f6a044a509315032f6 - |
||||||
commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 - |
commit.sh:5e4448db9ad48e72ec3a1ff4f5763b41 - |
||||||
jar.sh:343cf505530401fb696296bc25a9b090 - |
jar2.sh:7977fc138ee5db798d08c34734f0be93 - |
||||||
release.sh:b1b62203411b18d0fec1db3dc2e5a061 - |
jar.sh:821d5a109324d405f05c35c4bb129375 - |
||||||
|
release.sh:027178aa6da76180401a188d8f03af64 - |
||||||
update.sh:3be721658983183efa395984acd96b03 - |
update.sh:3be721658983183efa395984acd96b03 - |
||||||
|
zip.sh:273f5a83b80a8e54022d60514dfeec0a - |
||||||
|
@ -1,14 +1,28 @@ |
|||||||
#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" |
|
||||||
FILES=$(cat ${LANGUAGE}/scripts/.package.files) |
FILES=$(cat ${LANGUAGE}/scripts/.package.files) |
||||||
echo "Creating Package $TARGET_FILE..." |
if [ "$1" = "windows" ];then |
||||||
for f in $FILES |
echo "Creating a package for Windows..." |
||||||
do |
echo "Not implemented yet." |
||||||
zip -ur $TARGET_FILE $f |
elif [ "$1" = "mac" ];then |
||||||
done |
echo "Creating a package for Mac..." |
||||||
echo "Complete!" |
echo "Not implemented yet." |
||||||
echo "" |
elif [ "$1" = "linux" ];then |
||||||
echo "" |
echo "Creating a package for Linux..." |
||||||
echo "" |
cd .. |
||||||
|
mkdir -vp RabiCloneOut/in |
||||||
|
for f in $FILES |
||||||
|
do |
||||||
|
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 |
||||||
|
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 "" |
@ -1,3 +1,4 @@ |
|||||||
Java/ |
Java/ |
||||||
|
C/ |
||||||
scripts/ |
scripts/ |
||||||
utils/ |
utils/ |
@ -1,4 +1,4 @@ |
|||||||
define.sh:3ecab0dffe2adfb950f3eb7c7061b750 - |
define.sh:3ecab0dffe2adfb950f3eb7c7061b750 - |
||||||
main.sh:d3d1bd0b56d8114eb7479964227f8576 - |
main.sh:4e6e9f0650ec790ce2c4364db94f0caa - |
||||||
search.sh:81d08f5ff48e8a44b5f68387d426da05 - |
search.sh:81d08f5ff48e8a44b5f68387d426da05 - |
||||||
.updateDirectories:0ede00461e947494545e694040787b3f - |
.updateDirectories:fa5e95db12be22ae8aed7ecbc560e38c - |
||||||
|
Loading…
Reference in new issue