diff --git a/CONTRIBUTING.md b/CONTRIBUTING.md index ba941678..b277570c 100644 --- a/CONTRIBUTING.md +++ b/CONTRIBUTING.md @@ -38,7 +38,7 @@ Run `./gradlew :webUI:copyBuild server:shadowJar`, the resulting built jar file ### building without `webUI` bundled(server only) Delete the `server/src/main/resources/react` directory if exists from previous runs, then run `./gradlew server:shadowJar`, the resulting built jar file will be `server/build/Tachidesk-vX.Y.Z-rxxx.jar`. ### building the Windows package -Run `./gradlew :server:windowsPackage` to build a server only bundle and `./gradlew :webUI:copyBuild :server:windowsPackage` to get a full bundle , the resulting built zip package file will be `server/build/Tachidesk-vX.Y.Z-rxxx-win32.zip`. +First Build the jar, then cd into the `scripts` directory and run `./windows-bundler.sh`, the resulting built zip package file will be `server/build/Tachidesk-vX.Y.Z-rxxx-win64.zip`. ## Running in development mode First satistify [the prerequisites](#prerequisites) ### server diff --git a/scripts/windows-bundler.sh b/scripts/windows-bundler.sh index e46352aa..c7e8846e 100755 --- a/scripts/windows-bundler.sh +++ b/scripts/windows-bundler.sh @@ -9,7 +9,9 @@ echo "Downloading jre..." jre="OpenJDK8U-jre_x64_windows_hotspot_8u292b10.zip" -curl -L "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jre_x64_windows_hotspot_8u292b10.zip" -o $jre +if [ ! -f $jre ]; then + curl -L "https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u292-b10/OpenJDK8U-jre_x64_windows_hotspot_8u292b10.zip" -o $jre +fi echo "creating windows bundle" @@ -34,4 +36,6 @@ 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/server/build.gradle.kts b/server/build.gradle.kts index 9d48b7ab..80423d31 100644 --- a/server/build.gradle.kts +++ b/server/build.gradle.kts @@ -8,7 +8,6 @@ plugins { application id("com.github.johnrengelman.shadow") version "7.0.0" id("org.jmailen.kotlinter") version "3.4.3" - id("edu.sc.seis.launch4j") version "2.5.0" id("de.fuerstenau.buildconfig") version "1.1.8" } @@ -179,17 +178,3 @@ tasks { source(files("src")) } } - -launch4j { //used for windows - mainClassName = MainClass - bundledJrePath = "jre" - bundledJre64Bit = true - dontWrapJar = true - outputDir = "${rootProject.name}-$tachideskVersion-$tachideskRevision-win64" - icon = "${projectDir}/src/main/resources/icon/faviconlogo.ico" - jar = "Tachidesk.jar" - libraryDir = "" - copyConfigurable = "false" -} - -