Windows installer (wip)

This commit is contained in:
Claude Brisson
2024-04-12 12:48:32 +02:00
parent c2b3c8739a
commit a43138ee4a
11 changed files with 9114 additions and 0 deletions

23
installer/build.sh Executable file
View File

@@ -0,0 +1,23 @@
#!/bin/bash
VERSION=$(grep '<version>' ../pom.xml | head -1 | egrep -o '[0-9.]+')
echo Generating installer script for pairgoth-$VERSION
# root files
rm -rf target/*
cp -r resources/files target
# icon
cp resources/pairgoth.ico target/files
# java library
mkdir -p target/files/lib
cp ../application/target/pairgoth-engine.jar target/files/lib
# jre
unzip -d target/files resources/jre.zip
# installer script
sed -r -e "s/@VERSION@/$VERSION.0.0/g" resources/installer.nsi > target/installer.nsi
cat target/installer.nsi | makensis -V4 -