@@ -27,6 +27,13 @@ plugins {
27
27
version null
28
28
sourceCompatibility = 1.8
29
29
30
+ /*
31
+ * REMEMBER: also update the version string in:
32
+ * - Main.java
33
+ * - blobsaver.iss
34
+ */
35
+ String appVersion = " v2.4.1-beta5" ;
36
+
30
37
repositories {
31
38
mavenCentral()
32
39
}
@@ -119,18 +126,17 @@ task createLinuxTargz(type: Tar, dependsOn: shadowJar) {
119
126
launch4j { // Windows only, don't use this, use createWindowsInstaller
120
127
mainClassName = " com.airsquared.blobsaver.Main"
121
128
copyright = " Copyright (c) 2020 airsquared"
122
- downloadUrl = " https://java.com/inc/BrowserRedirect1 .jsp"
129
+ downloadUrl = " https://www. java.com/en/download/manual .jsp"
123
130
icon = " ${ projectDir} /icons/blob_emoji.ico"
131
+ mutexName = " com.airsquared.blobsaver"
132
+ windowTitle = " blobsaver " + appVersion
133
+ jreRuntimeBits = " 64"
124
134
jreMinVersion = " 1.8.0"
125
135
jreMaxVersion = " 1.8.0_999"
126
136
createExe. dependsOn shadowJar
127
137
}
128
138
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
134
140
task createWindowsInstaller (dependsOn : createExe) {
135
141
inputs. files(createExe. outputs)
136
142
inputs. dir(" ${ projectDir} /dist/windows/" )
@@ -150,9 +156,9 @@ task createWindowsInstaller(dependsOn: createExe) {
150
156
exec {
151
157
workingDir = projectDir
152
158
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'
154
160
} 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"
156
162
}
157
163
}
158
164
}
0 commit comments