Skip to content

Commit 885b461

Browse files
committed
Added a version file to change easily version when generating installers
1 parent fe3930e commit 885b461

4 files changed

Lines changed: 14 additions & 13 deletions

File tree

Installer/create_installer_x64.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
@echo ===== Deploying Qt libraries =====
22
%QT_PATH%\msvc2017_64\bin\windeployqt.exe --release ./x64/
33
@echo ===== Creating setup wizard =====
4-
iscc /Dx64 "/DBuildDir=%CD%" soundgenerator_installer.iss
4+
@set /p VERSION=<version.txt
5+
iscc /Dx64 "/DBuildDir=%CD%" "/DMyAppVersion=%VERSION%" soundgenerator_installer.iss
56
@echo ===== Generate Hash =====
67
@SET PowerShellScriptPath=%~dp0create_hash.ps1
7-
@SET InputFile=installs/soundgenerator_0.0.1_x64.exe
8+
@SET InputFile=installs/soundgenerator_%VERSION%_x64.exe
89
@SET OutputFile=installs/sha2.x64.txt
910
@PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%PowerShellScriptPath%' '%InputFile%' -output '%OutputFile%'";
1011
@echo ===== End =====

Installer/create_installer_x86.bat

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,11 @@
11
@echo ===== Deploying Qt libraries =====
22
%QT_PATH%\msvc2017\bin\windeployqt.exe --release ./x86/
33
@echo ===== Creating setup wizard =====
4-
iscc "/DBuildDir=%CD%" soundgenerator_installer.iss
4+
@set /p VERSION=<version.txt
5+
iscc "/DBuildDir=%CD%" "/DMyAppVersion=%VERSION%" soundgenerator_installer.iss
56
@echo ===== Generate Hash =====
67
@SET PowerShellScriptPath=%~dp0create_hash.ps1
7-
@SET InputFile=installs/soundgenerator_0.0.1_x86.exe
8+
@SET InputFile=installs/soundgenerator_%VERSION%_x86.exe
89
@SET OutputFile=installs/sha2.x86.txt
910
@PowerShell -NoProfile -ExecutionPolicy Bypass -Command "& '%PowerShellScriptPath%' '%InputFile%' -output '%OutputFile%'";
1011
@echo ===== End =====

Installer/soundgenerator_installer.iss

Lines changed: 7 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,4 @@
11
; Inno setup script to generate Windows 32 bits and 64 bits installers
2-
3-
#define MyAppName "Sound Generator"
4-
#define MyAppVersion "0.0.1"
5-
#define MyAppPublisher "Ben Pyton"
6-
#define MyAppURL "https://github.com/BenPyton/SoundGenerator"
7-
#define MyAppExeName "SoundGenerator.exe"
8-
#define OutputDir "installs"
9-
#define RedistDir "vcredist"
10-
112
#ifdef x64
123
#define Arch "x64"
134
#define RegKey ""
@@ -18,6 +9,13 @@
189
#define ArchMode ""
1910
#endif
2011

12+
#define MyAppName "Sound Generator"
13+
#define MyAppPublisher "Ben Pyton"
14+
#define MyAppURL "https://github.com/BenPyton/SoundGenerator"
15+
#define MyAppExeName "SoundGenerator.exe"
16+
#define OutputDir "installs"
17+
#define RedistDir "vcredist"
18+
2119
[Setup]
2220
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
2321
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)

Installer/version.txt

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
0.0.2

0 commit comments

Comments
 (0)