Reintroduce installers
Naval trade simulation in the north and baltic sea during 1250 - 1500
Status: Alpha
Brought to you by:
hotzst
The packager was removed from OpenJDK 11 and the replacement is not yet in place.
https://bugs.openjdk.java.net/browse/JDK-8200758
The packaging tool (https://bugs.openjdk.java.net/browse/JDK-8212780) is currently slanted for Java 14, comming out March 2020. Which means upgrading the JVM and minimal requirement for the game.
Update to Java 14 and then use the following commands:
Linux deb:
jpackage --name OpenPatrician --description "OpenPatrician is a free implementation in Java of Ascaron's classic The Patrician and The Patrician 2. The game is economic simulation located in the European North- and East-Sea in the late middle age." --vendor "Sahits GmbH" --app-version 1.1.0-SNAPSHOT --input . --dest target --main-jar target/OpenPatricianStandalone-1.1.0-SNAPSHOT.jar --linux-package-name openpatrician --linux-deb-maintainer hotzst@sourceforge.net --linux-app-category Game --linux-menu-group Game --license-file package/Apache-LICENSE-2.0.txt --java-options -Xmx2048m --icon package/linux/trade-icon.png --verbose
Linux rpm:
jpackage --type rpm --name OpenPatrician --description "OpenPatrician is a free implementation in Java of Ascaron's classic The Patrician and The Patrician 2. The game is economic simulation located in the European North- and East-Sea in the late middle age." --vendor "Sahits GmbH" --app-version 1.1.0_SNAPSHOT --input . --dest target --main-jar target/OpenPatricianStandalone-1.1.0-SNAPSHOT.jar --linux-package-name openpatrician --linux-app-category Game --linux-menu-group Game --license-file package/Apache-LICENSE-2.0.txt --java-options -Xmx2048m --icon package/linux/trade-icon.png --verbose
MacOs pkg:
jpackage --type pkg --name OpenPatrician --description "OpenPatrician is a free implementation in Java of Ascaron's classic The Patrician and The Patrician 2. The game is economic simulation located in the European North- and East-Sea in the late middle age." --vendor "Sahits GmbH" --app-version 1.1.0_SNAPSHOT --input . --dest target --main-jar target/OpenPatricianStandalone-1.1.0-SNAPSHOT.jar
MacOs dmg:
jpackage --type dmg --name OpenPatrician --description "OpenPatrician is a free implementation in Java of Ascaron's classic The Patrician and The Patrician 2. The game is economic simulation located in the European North- and East-Sea in the late middle age." --vendor "Sahits GmbH" --app-version 1.1.0_SNAPSHOT --input . --dest target --main-jar target/OpenPatricianStandalone-1.1.0-SNAPSHOT.jar
Windows msi:
jpackage --type msi --name OpenPatrician --description "OpenPatrician is a free implementation in Java of Ascaron's classic The Patrician and The Patrician 2. The game is economic simulation located in the European North- and East-Sea in the late middle age." --vendor "Sahits GmbH" --app-version 1.1.0_SNAPSHOT --input . --dest target --main-jar target/OpenPatricianStandalone-1.1.0-SNAPSHOT.jar --win-menu --win-menu-group Game
Windows exe:
jpackage --type exe --name OpenPatrician --description "OpenPatrician is a free implementation in Java of Ascaron's classic The Patrician and The Patrician 2. The game is economic simulation located in the European North- and East-Sea in the late middle age." --vendor "Sahits GmbH" --app-version 1.1.0_SNAPSHOT --input . --dest target --main-jar target/OpenPatricianStandalone-1.1.0-SNAPSHOT.jar --win-menu --win-menu-group Game
Prerequisit for build:
JDK 14 installed
Maven 3.6.x installed
SVN installed
Build instructions:
svn checkout https://svn.code.sf.net/p/openpatrician/code/trunk/OpenPatrician openpatrician-code
Tested on MacOs, packaging is working, the application has the wrong icon (duke instead of open patrician) and there are some issues when running.