Skip to content

Commit 9d7489d

Browse files
committed
Add git hash to Windows installer
1 parent 8497d03 commit 9d7489d

File tree

2 files changed

+4
-2
lines changed

2 files changed

+4
-2
lines changed

.github/workflows/windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ jobs:
7878
$Filename = $current_date + "_" + $git_hash + "_Windows_welle-io-setup_x64"
7979
8080
echo ""*** Run InnoSetup "***"
81-
& ISCC /O.\ /F$Filename windows_installer.iss
81+
& ISCC /O.\ /F$Filename /DGitHash=$git_hash windows_installer.iss
8282
8383
- name: Archive artifacts (welle.io Windows installer)
8484
if: always() && steps.create_installer.outcome == 'success'

windows_installer.iss

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,11 @@
66

77
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING .ISS SCRIPT FILES!
88

9+
#define GitHash "unkonwn_git_hash"
10+
911
[Setup]
1012
AppName=welle.io
11-
AppVersion=2.5-dev
13+
AppVersion=2.5-{#GitHash}
1214
WizardStyle=modern
1315
DefaultDirName={autopf}\welle.io
1416
DefaultGroupName=welle.io

0 commit comments

Comments
 (0)