Skip to content

Commit

Permalink
fix pack-release script
Browse files Browse the repository at this point in the history
  • Loading branch information
whouishere committed Feb 28, 2023
1 parent 78a0e36 commit 5d02356
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 4 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -135,6 +135,9 @@ www-test/
nbactions.xml
nb-configuration.xml

## packr:
/packr/

## OS-Specific:
.DS_Store
Thumbs.db
Expand Down
9 changes: 5 additions & 4 deletions pack-release
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ PACKR_PATH="packr"
PACKR_VERSION="4.0.0"
PACKR_JAR="packr-all-${PACKR_VERSION}.jar"
PACKR_JAR_PATH="${PACKR_PATH}/${PACKR_JAR}"
OUTPUT_FOLDER="lwjgl3"
PLATFORM="windows64"

if [[ $1 == "linux" ]] || [[ $1 == "linux64" ]]; then
Expand Down Expand Up @@ -32,11 +33,11 @@ java -jar $PACKR_JAR_PATH \
--jdk "${PACKR_PATH}/jre/jre_${PLATFORM}" \
--useZgcIfSupportedOs \
--executable imperialist-collector \
--classpath "desktop/build/libs/desktop-${VERSION}.jar" \
--mainclass com.willian.imperialist.DesktopLauncher \
--classpath "${OUTPUT_FOLDER}/build/lib/imperialist-collector-${VERSION}.jar" \
--mainclass com.willian.imperialist.lwjgl3.Lwjgl3Launcher \
--vmargs Xmx1G \
--vmargs Xms256m \
--output "desktop/build/target/release-${VERSION}-${PLATFORM}"
--output "${OUTPUT_FOLDER}/build/target/release-${VERSION}-${PLATFORM}"

echo
echo "Finished packing. If packr didn't spit any errors the final package must be at desktop/build/target."
echo "Finished packing. If packr didn't spit any errors the final package must be at ${OUTPUT_FOLDER}/build/target."

0 comments on commit 5d02356

Please sign in to comment.