Skip to content

Commit 577ad44

Browse files
committed
include Inno Setup executables in repository, require a 64bit JVM on Windows to fix #81
1 parent 8bc04fc commit 577ad44

26 files changed

+799
-19
lines changed

blobsaver.iss

+4-5
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
33

44
#define MyAppName "blobsaver"
5-
#define MyAppVersion "2.4.0"
5+
#define MyAppVersion "2.4.1-beta5"
66
#define MyAppPublisher "airsquared"
77
#define MyAppURL "https://www.github.com/airsquared/blobsaver"
88
#define MyAppExeName "blobsaver.exe"
@@ -21,6 +21,7 @@ AppPublisherURL={#MyAppURL}
2121
AppSupportURL={#MyAppURL}
2222
AppUpdatesURL={#MyAppURL}
2323
AppCopyright={#MyAppCopyright}
24+
AppMutex=com.airsquared.blobsaver
2425
ArchitecturesAllowed=x64 arm64
2526
ArchitecturesInstallIn64BitMode=x64 arm64
2627
Uninstallable=not IsTaskSelected('portableMode')
@@ -37,9 +38,8 @@ SolidCompression=yes
3738
Name: "english"; MessagesFile: "compiler:Default.isl"
3839

3940
[Tasks]
40-
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
41-
Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 0,6.1
42-
Name: portableMode; Description: "Portable Mode"
41+
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
42+
Name: "portableMode"; Description: "Portable Installation Mode"; Flags: unchecked
4343

4444
[Files]
4545
Source: "build\tmp\innosetup\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
@@ -48,7 +48,6 @@ Source: "build\tmp\innosetup\*"; DestDir: "{app}"; Flags: ignoreversion recurses
4848
[Icons]
4949
Name: "{commonprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
5050
Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
51-
Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
5251

5352
[Run]
5453
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent

build.gradle

+14-8
Original file line numberDiff line numberDiff line change
@@ -27,6 +27,13 @@ plugins {
2727
version null
2828
sourceCompatibility = 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+
3037
repositories {
3138
mavenCentral()
3239
}
@@ -119,18 +126,17 @@ task createLinuxTargz(type: Tar, dependsOn: shadowJar) {
119126
launch4j { // 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
134140
task 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
}

gradle/InnoSetup6/Default.isl

+364
Large diffs are not rendered by default.

gradle/InnoSetup6/ISCC.exe

852 KB
Binary file not shown.

gradle/InnoSetup6/ISCmplr.dll

1.35 MB
Binary file not shown.

gradle/InnoSetup6/ISCrypt.dll

2.5 KB
Binary file not shown.

gradle/InnoSetup6/ISPP.chm

66.3 KB
Binary file not shown.

gradle/InnoSetup6/ISPP.dll

989 KB
Binary file not shown.

0 commit comments

Comments
 (0)