Skip to content

Commit acc67f7

Browse files
committed
Updated buildscript and readme
1 parent 33b04ee commit acc67f7

File tree

2 files changed

+9
-9
lines changed

2 files changed

+9
-9
lines changed

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -2,14 +2,14 @@
22

33
## Getting the source
44

5-
1. This project was written in Eclipse 2021-06 and JDK 16. It's better to use an eclipse integrated JDK, so it doesn't interfere with anything installed system-wide.
5+
1. This project was written in Eclipse 2022-12 and JDK 17. It's better to use an eclipse integrated JDK, so it doesn't interfere with anything installed system-wide.
66
2. Eclipse -> Import... -> Existing Maven Project
7-
3. Set JRE System Library to JavaSE-16 in the build path
7+
3. Set JRE System Library to JavaSE-17 in the build path
88
4. Add `-Xmx4G -XX:+UseZGC -Dsun.java2d.d3d=false` (Windows) `-Xmx4G -XX:+UseZGC -Dsun.java2d.opengl=True` (Linux) to VM arguments in the Run Configuration
99

1010
## Building on Linux
1111

12-
1. Download platform-specific JRE 17 packages ([Eclipse Temurin](https://adoptium.net/temurin/releases/) for example) into `/target/openjdk`. Filenames need to be `jdk_win64.zip`, `jdk_mac.tar.gz`, `jdk_linux64.tar.gz`.
12+
1. Download platform-specific JRE 17 packages ([Eclipse Temurin](https://adoptium.net/temurin/releases/) for example) into `/target/openjdk`. Filenames need to be `jre_win64.zip`, `jre_mac.tar.gz`, `jre_linux64.tar.gz`.
1313
2. Right click pom.xml -> Run As -> Maven install
1414
3. Exported packages will be in /target/export
1515

target/build.sh

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,31 +4,31 @@ rm -r export/$1
44

55
java -jar packr.jar \
66
--platform windows64 \
7-
--jdk openjdk/jdk_win64.zip \
7+
--jdk openjdk/jre_win64.zip \
88
--executable launcher \
99
--classpath factoryisland-$1.jar \
1010
--mainclass ml.sakii.factoryisland.Main \
1111
--vmargs Xmx4G Dsun.java2d.d3d=false \
1212
--useZgcIfSupportedOs \
13-
--output export/$1/windows64
13+
--output export/$1/FI_${1}_windows64
1414

1515

1616
java -jar packr.jar \
1717
--platform linux64 \
18-
--jdk openjdk/jdk_linux64.tar.gz \
18+
--jdk openjdk/jre_linux64.tar.gz \
1919
--executable launcher \
2020
--classpath factoryisland-$1.jar \
2121
--mainclass ml.sakii.factoryisland.Main \
2222
--vmargs Xmx4G Dsun.java2d.opengl=True \
2323
--useZgcIfSupportedOs \
24-
--output export/$1/linux64
24+
--output export/$1/FI_${1}_linux64
2525

2626
java -jar packr.jar \
2727
--platform mac \
28-
--jdk openjdk/jdk_mac.tar.gz \
28+
--jdk openjdk/jre_mac.tar.gz \
2929
--executable launcher \
3030
--classpath factoryisland-$1.jar \
3131
--mainclass ml.sakii.factoryisland.Main \
3232
--vmargs Xmx4G \
3333
--useZgcIfSupportedOs \
34-
--output export/$1/mac
34+
--output export/$1/FI_${1}_mac

0 commit comments

Comments
 (0)