@@ -27,6 +27,13 @@ plugins {
2727version null
2828sourceCompatibility = 1.8
2929
30+ /*
31+ * REMEMBER: also update the version string in:
32+ * - Main.java
33+ * - blobsaver.iss
34+ */
35+ String appVersion = " v2.4.1-beta5" ;
36+
3037repositories {
3138 mavenCentral()
3239}
@@ -119,18 +126,17 @@ task createLinuxTargz(type: Tar, dependsOn: shadowJar) {
119126launch4j { // Windows only, don't use this, use createWindowsInstaller
120127 mainClassName = " com.airsquared.blobsaver.Main"
121128 copyright = " Copyright (c) 2020 airsquared"
122- downloadUrl = " https://java.com/inc/BrowserRedirect1 .jsp"
129+ downloadUrl = " https://www. java.com/en/download/manual .jsp"
123130 icon = " ${ projectDir} /icons/blob_emoji.ico"
131+ mutexName = " com.airsquared.blobsaver"
132+ windowTitle = " blobsaver " + appVersion
133+ jreRuntimeBits = " 64"
124134 jreMinVersion = " 1.8.0"
125135 jreMaxVersion = " 1.8.0_999"
126136 createExe. dependsOn shadowJar
127137}
128138
129- // IMPORTANT: first make sure you have installed Inno Setup
130- // Install Inno Setup Preprocessor (ISPP) along with Inno Setup
131- // and make sure you have wine in your path if you are not on windows
132- // Inno Setup **MUST** be installed to C:\Program Files (x86)\Inno Setup 5\
133- // if your platform isn't Windows, "wine" is required to run this task
139+ // if your platform isn't Windows, wine is required to run this task
134140task createWindowsInstaller (dependsOn : createExe) {
135141 inputs. files(createExe. outputs)
136142 inputs. dir(" ${ projectDir} /dist/windows/" )
@@ -150,9 +156,9 @@ task createWindowsInstaller(dependsOn: createExe) {
150156 exec {
151157 workingDir = projectDir
152158 if (System . getProperty(" os.name" ). toUpperCase(). contains(" WINDOWS" )) {
153- commandLine ' C: \\ Program Files (x86) \\ Inno Setup 5 \\ ISCC.exe' , ' /Qp' , ' blobsaver.iss'
159+ commandLine ' gradle \\ InnoSetup6 \\ ISCC.exe' , ' /Qp' , ' blobsaver.iss'
154160 } else {
155- commandLine ' wine' , ' C: \\ Program Files (x86) \\ Inno Setup 5 \\ ISCC.exe' , ' /Qp' , ' blobsaver.iss'
161+ commandLine " wine" , " gradle/InnoSetup6/ ISCC.exe" , " /Qp" , " blobsaver.iss"
156162 }
157163 }
158164 }
0 commit comments