Fix installer

This commit is contained in:
Claude Brisson
2024-04-12 20:27:54 +02:00
parent bd6a9cebda
commit 51f642a2d0
10 changed files with 31 additions and 10 deletions

View File

@@ -1,23 +1,23 @@
#!/bin/bash
VERSION=$(grep '<version>' ../pom.xml | head -1 | egrep -o '[0-9.]+')
echo Generating installer script for pairgoth-$VERSION
# root files
# cleanup
rm -rf target/*
# parse version
VERSION=$(grep '<version>' ../pom.xml | head -1 | egrep -o '[0-9.]+')
# files
cp -r resources/files target
# icon
cp resources/pairgoth.ico target/files
# java library
mkdir -p target/files/lib
cp resources/pairgoth.ico target/files
cp ../application/target/pairgoth-engine.jar target/files/lib
cp -r resources/data target/data
# 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 -