diff --git a/scripts/resources/Tachidesk Launcher-win32.exe b/scripts/resources/Tachidesk Launcher-win32.exe new file mode 100644 index 0000000..846b8ff Binary files /dev/null and b/scripts/resources/Tachidesk Launcher-win32.exe differ diff --git a/scripts/resources/Tachidesk Launcher.exe b/scripts/resources/Tachidesk Launcher-win64.exe similarity index 100% rename from scripts/resources/Tachidesk Launcher.exe rename to scripts/resources/Tachidesk Launcher-win64.exe diff --git a/scripts/resources/readme.md b/scripts/resources/readme.md index 4c8dac9..8f09bad 100644 --- a/scripts/resources/readme.md +++ b/scripts/resources/readme.md @@ -1,3 +1,3 @@ # Building `Tachidesk Launcher.exe` 1. compile `Tachidesk Launcher.c` statically using GCC MinGW: `gcc -o "Tachidesk Launcher.exe" "Tachidesk Launcher.c"` -2. Add `server/src/main/resources/icon/faviconlogo.ico` into the exe with `rcedit` from the electron project: `rcedit "Tachidesk Launcher.exe" --set-icon "faviconlogo.ico"` +2. Add `server/src/main/resources/icon/faviconlogo.ico` into the exe with `rcedit` from the electron project: `rcedit "Tachidesk Launcher.exe" --set-icon faviconlogo.ico` diff --git a/scripts/windows32-bundler.sh b/scripts/windows32-bundler.sh new file mode 100755 index 0000000..3d96521 --- /dev/null +++ b/scripts/windows32-bundler.sh @@ -0,0 +1,41 @@ +#!/bin/bash + +# Copyright (C) Contributors to the Suwayomi project +# +# This Source Code Form is subject to the terms of the Mozilla Public +# License, v. 2.0. If a copy of the MPL was not distributed with this +# file, You can obtain one at https://mozilla.org/MPL/2.0/. + +echo "Downloading jre..." + +jre="OpenJDK8U-jre_x86-32_windows_hotspot_8u292b10.zip" +if [ ! -f $jre ]; then + curl -L "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jre_x86-32_windows_hotspot_8u292b10.zip" -o $jre +fi + +echo "creating windows bundle" + +jar=$(ls ../server/build/Tachidesk-*.jar) +jar_name=$(echo $jar | cut -d'/' -f4) +release_name=$(echo $jar_name | cut -d'.' -f4 --complement)-win32 + +# make release dir +mkdir $release_name + +unzip $jre + +# move jre +mv jdk8u292-b10-jre $release_name/jre + +cp $jar $release_name/Tachidesk.jar + +cp "resources/Tachidesk Launcher-win32.exe" "$release_name/Tachidesk Launcher.exe" +cp "resources/Tachidesk Launcher.bat" $release_name +cp "resources/Tachidesk Debug Launcher.bat" $release_name + +zip_name=$release_name.zip +zip -9 -r $zip_name $release_name + +rm -rf $release_name + +mv $zip_name ../server/build/ diff --git a/scripts/windows-bundler.sh b/scripts/windows64-bundler.sh similarity index 92% rename from scripts/windows-bundler.sh rename to scripts/windows64-bundler.sh index c7e8846..e3193ee 100755 --- a/scripts/windows-bundler.sh +++ b/scripts/windows64-bundler.sh @@ -29,7 +29,7 @@ mv jdk8u292-b10-jre $release_name/jre cp $jar $release_name/Tachidesk.jar -cp "resources/Tachidesk Launcher.exe" $release_name +cp "resources/Tachidesk Launcher-win64.exe" "$release_name/Tachidesk Launcher.exe" cp "resources/Tachidesk Launcher.bat" $release_name cp "resources/Tachidesk Debug Launcher.bat" $release_name