aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAnton Tananaev <anton.tananaev@gmail.com>2022-08-09 16:42:11 -0700
committerGitHub <noreply@github.com>2022-08-09 16:42:11 -0700
commit596315224144c78bff043a3e3a67b005ec0a0e30 (patch)
tree629098c9758a7cf33167d16b5f8733c93b7bf1b6
parentafe2ff412a22e265a29e5ac151355eba429b304e (diff)
downloadtrackermap-server-596315224144c78bff043a3e3a67b005ec0a0e30.tar.gz
trackermap-server-596315224144c78bff043a3e3a67b005ec0a0e30.tar.bz2
trackermap-server-596315224144c78bff043a3e3a67b005ec0a0e30.zip
Update package script
-rwxr-xr-xsetup/package.sh24
1 files changed, 12 insertions, 12 deletions
diff --git a/setup/package.sh b/setup/package.sh
index 40dac475d..3cfe88a52 100755
--- a/setup/package.sh
+++ b/setup/package.sh
@@ -61,17 +61,17 @@ fi
if [ $PLATFORM = "all" -o $PLATFORM = "windows-64" ]; then
check_requirement "Inno Extractor" "which innoextract" "Missing innoextract binary"
check_requirement "Inno Setup" "ls i*setup-*.exe" "Missing Inno Setup (http://www.jrsoftware.org/isdl.php)"
- check_requirement "Windows 64 Java" "ls java-*.windows.ojdkbuild.x86_64.zip" "Missing Windows 64 Java (https://github.com/ojdkbuild/ojdkbuild)"
+ check_requirement "Windows 64 Java" "ls OpenJDK*x64_windows*.zip" "Missing Windows 64 JDK (https://adoptium.net/)"
check_requirement "Wine" "which wine" "Missing wine binary"
fi
if [ $PLATFORM = "all" -o $PLATFORM = "linux-64" -o $PLATFORM = "linux-arm" ]; then
check_requirement "Makeself" "which makeself" "Missing makeself binary"
fi
if [ $PLATFORM = "all" -o $PLATFORM = "linux-64" ]; then
- check_requirement "Linux 64 Java" "ls jdk-*-linux-x64.zip" "Missing Linux 64 Java (https://github.com/ojdkbuild/contrib_jdk11u-ci/releases)"
+ check_requirement "Linux 64 Java" "ls OpenJDK*x64_linux*.tar.gz" "Missing Linux 64 JDK (https://adoptium.net/)"
fi
if [ $PLATFORM = "all" -o $PLATFORM = "linux-arm" ]; then
- check_requirement "Linux ARM Java" "ls jdk-*-linux-armhf.zip" "Missing Linux ARM Java (https://github.com/ojdkbuild/contrib_jdk11u-aarch32-ci/releases)"
+ check_requirement "Linux ARM Java" "ls OpenJDK*arm_linux*.tar.gz" "Missing Linux ARM JDK (https://adoptium.net/)"
fi
if [ $PREREQ = false ]; then
info "Missing build requirements, aborting..."
@@ -119,9 +119,9 @@ package_other () {
package_windows () {
info "Building Windows 64 installer"
- unzip -q -o java-*.windows.ojdkbuild.x86_64.zip
- jlink --module-path java-*.windows.ojdkbuild.x86_64/jmods --add-modules java.se,jdk.charsets,jdk.crypto.ec --output out/jre
- rm -rf java-*.windows.ojdkbuild.x86_64
+ unzip -q OpenJDK*x64_windows*.zip
+ jlink --module-path jdk-*/jmods --add-modules java.se,jdk.charsets,jdk.crypto.ec --output out/jre
+ rm -rf jdk-*
wine app/ISCC.exe traccar.iss >/dev/null
rm -rf out/jre
zip -q -j traccar-windows-64-$VERSION.zip Output/traccar-setup.exe README.txt
@@ -133,13 +133,13 @@ package_linux () {
cp setup.sh out
cp traccar.service out
- unzip -q -o jdk-*-linux-$1.zip
- jlink --module-path jdk-*-linux-$1/jmods --add-modules java.se,jdk.charsets,jdk.crypto.ec --output out/jre
- rm -rf jdk-*-linux-$1
+ tar -xf OpenJDK*$1_linux*.tar.gz
+ jlink --module-path jdk-*/jmods --add-modules java.se,jdk.charsets,jdk.crypto.ec --output out/jre
+ rm -rf jdk-*
makeself --needroot --quiet --notemp out traccar.run "traccar" ./setup.sh
rm -rf out/jre
- zip -q -j traccar-linux-$2-$VERSION.zip traccar.run README.txt
+ zip -q -j traccar-linux-$1-$VERSION.zip traccar.run README.txt
rm traccar.run
rm out/setup.sh
@@ -148,13 +148,13 @@ package_linux () {
package_linux_64 () {
info "Building Linux 64 installer"
- package_linux x64 64
+ package_linux x64
ok "Created Linux 64 installer"
}
package_linux_arm () {
info "Building Linux ARM installer"
- package_linux armhf arm
+ package_linux arm
ok "Created Linux ARM installer"
}