Skip to content

Commit 8e8c8c2

Browse files
committed
Updated script to use UniqueID instead of SetupID
1 parent 8e28d0f commit 8e8c8c2

File tree

4 files changed

+917
-84
lines changed

4 files changed

+917
-84
lines changed

appveyor.yml

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,41 +1,41 @@
1-
# Appveyor build script
2-
# List of installed tools/SDKs etc.: https://www.appveyor.com/docs/installed-software
1+
# Appveyor build script for FSCW
32

43
version: 2.0.{build}
54

6-
# Do not run when just a tag is pushed (which we do automatically by adding a release)
5+
# Do not run when just a tag is pushed
76
skip_tags: true
87

98
branches:
109
except:
1110
- gh-pages
1211

12+
1313
environment:
1414
INNOSETUP_DOWNLOAD_URL: https://github.com/source-foundry/fscw/releases/download/v0.0.1/innosetup.exe
15-
16-
15+
16+
1717
install:
18+
# Create TEMP folder
19+
- md C:\temp
1820
# Download and install Inno Setup.
1921
- ps: (new-object net.webclient).DownloadFile('$env:INNOSETUP_DOWNLOAD_URL', 'c:\temp\innosetup.exe')
2022
- c:\temp\innosetup.exe TYPE=full /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /CLOSEAPPLICATIONS /NORESTARTAPPLICATIONS
2123
# Add Inno Setup to PATH so the ISCC command is found
2224
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
2325

24-
25-
26+
2627
build_script:
2728
- iscc.exe /DEXTERNAL_VERSION=%APPVEYOR_BUILD_VERSION% %APPVEYOR_BUILD_FOLDER%\src\FSCW.iss
2829

2930

3031
artifacts:
3132
- path: 'out\*.exe'
3233
name: SetupExe
33-
3434
3535
#deploy:
3636
# provider: GitHub
3737
# auth_token:
38-
# secure: 6Ez1BkZ4iDyoY17CZAwbOcQJcKnn8ZWK3vV2QINglWqgkOFRkN4JCtdMu0fyBFMc
38+
# secure: <Yoursecuretoken>
3939
# artifact: SetupExe
4040
# prerelease: true
4141
# tag: v$(appveyor_build_version)
@@ -46,7 +46,7 @@ artifacts:
4646
#notifications:
4747
# - provider: Slack
4848
# auth_token:
49-
# secure: ElggvPLQdlcU9+djZsLDZpZLjOOpYg5Y2DRFQGN2yuSrZqoOP/1PCAmUSd8RJjrukymK1FQNrKuSpiw0hLHEeg==
49+
# secure: <Yoursecuretoken>
5050
# channel: '#release-info'
5151

5252
#done

src/Data.ini

Lines changed: 53 additions & 58 deletions
Original file line numberDiff line numberDiff line change
@@ -1,85 +1,82 @@
1-
;DATA file (INI based) for the Inno Setup based installer
1+
; FSCW Data File
22

33
[ID]
4-
;Internal ID for this setup, never displayed.
5-
;Whitespaces are NOT allowed, only a-z, A-Z, 0-9.
6-
UniqueID=HackTestWinInstaller
7-
;IMPORTANT: DO NOT CHANGE THIS VALUE *EVER* ONCE YOU HAVE SET IT
8-
; AND THE INSTALLER HAS BEEN USED BY USERS!
4+
; Internal ID for this setup, never displayed.
5+
; Whitespaces are NOT allowed, only a-z, A-Z, 0-9.
6+
UniqueID=TenGallonHatSetup
7+
; IMPORTANT: DO NOT CHANGE THIS VALUE *EVER* ONCE YOU HAVE SETUP HAS BEEN USED!
98

109

1110
[Version]
12-
;Version of the Setup (*NOT* for the Font release).
11+
; Version of the Setup (*NOT* for the Font release).
1312
Version=1.0.0
14-
;This value can be overwritten by an CI tool during build like this (param EXTERNAL_VERSION):
15-
;iscc.exe /DEXTERNAL_VERSION=%APPVEYOR_BUILD_VERSION% src/YourScriptFile.iss
13+
; This value can be overwritten by an CI tool during build like this (param EXTERNAL_VERSION):
14+
; iscc.exe /DEXTERNAL_VERSION=%APPVEYOR_BUILD_VERSION% src/YourScriptFile.iss
1615

17-
;Version of FONT release
18-
FontVersion=2.020
19-
;This value can be overwritten by an CI tool during build like this (param EXTERNAL_FONT_VERSION):
20-
;iscc.exe /DEXTERNAL_FONT_VERSION=%MY_FONT_BUILD_VERSION% src/YourScriptFile.iss
16+
; Version of the FONT release
17+
FontVersion=1.02
18+
; This value can be overwritten by an CI tool during build like this (param EXTERNAL_FONT_VERSION):
19+
; iscc.exe /DEXTERNAL_FONT_VERSION=%MY_FONT_BUILD_VERSION% src/YourScriptFile.iss
2120

2221

2322
[About]
24-
;Name of the font release. Will be displayed during setup like this:
25-
;Setup is now ready to install the {#FontName} v{#FontVersion} on your system.
26-
FontName=Hack TEST fonts
23+
; Name of the font release. Will be displayed during setup like this:
24+
; Setup is now ready to install the {#FontName} v{#FontVersion} on your system.
25+
FontName=Ten Gallon Hat fonts
2726

28-
;The entity that releases the font and the setup
27+
; The entity that releases the font and the setup
2928
Publisher=Michael Hex / Source Foundry
3029

31-
;Copyright for the font/setup.
30+
; Copyright for the font
3231
Copyright=Copyright © 2016 Michael Hex / Source Foundry
3332

34-
;This URL will be created as web shortcut [Website.lnk} in the destination folder and
35-
;also displayed in the Add/Remove Programs applet.
33+
; This URL will be created as web shortcut (Website.lnk) in the destination folder and
34+
; is also displayed in the Add/Remove Programs applet.
3635
Website=http://sourcefoundry.org/hack/
37-
;Internal notice:
38-
;In the old setup, Add/Remove Programs -> Support (AppSupportURL) pointed to https://github.com/source-foundry/Hack-windows-installer'
39-
;File Hack Homepage.lnk (Section ICONS) pointed to http://sourcefoundry.org/hack/
4036

4137

4238
[General]
43-
;Name of the installer, can be changed at any time and is displayed to the user during setup.
44-
;This is also the name that is displayed inside the Add/Remove Programs Applet.
45-
Name=Hack Test Win Installer
39+
; Name of the installer, can be changed at any time and is displayed to the user during setup.
40+
; This is also the name that is displayed inside the Add/Remove Programs Applet.
41+
Name=Ten Gallon Hat Font
4642

47-
;Name of the resulting EXE file.
48-
;*DO NOT* add the extension (.exe), this will be done by the script.
49-
ExeFile=HackTestWinInstaller
43+
; Name of the resulting EXE file.
44+
; *DO NOT* add the extension .exe, this will be done by the script.
45+
ExeFile=TenGallonHatSetup
5046

51-
;Folder name generated in C:\Program Files\.
52-
;This is required as the uninstall information and the log files needs to be stored somewhere.
47+
; Name of the folder generated in C:\Program Files\.
48+
; This is required as the uninstall information and the log files needs to be stored somewhere.
5349
DestinationFolder=Hack Test Win Installer
5450

55-
;Icon that will be applied to the resulting setup exe and displayed in Add/Remove Programs applet.
56-
;Can be empty.
57-
Icon=
58-
59-
;The license file(s) that will be copied to the destination folder (optional, but highly recommended).
60-
;Can be a single file:
61-
;LicenseFile=License.txt
62-
;A single file from a sub folder:
63-
;LicenseFile=lic\License.md
64-
;Several files at once by using wildcards:
65-
;LicenseFile=license*.*
51+
; Icon that will be applied to the resulting setup exe and displayed in Add/Remove Programs applet.
52+
; Can be empty.
53+
Icon=src\Hack-installer-icon.ico
54+
55+
; The license file(s) that will be copied to the destination folder (optional, but highly recommended).
56+
; Can be a single file:
57+
;LicenseFile=License.txt
58+
; A single file from a sub folder:
59+
;LicenseFile=lic\License.md
60+
; Several files at once from a sub folder by using wildcards:
61+
;LicenseFile=lic\license*.*
62+
; Several files at once from the base folder
6663
LicenseFile=license*.*
6764

6865

69-
;This section defines which fonts should be installed.
66+
; This section defines which fonts should be installed.
7067
[InstallFonts]
71-
;In which sub folder are the font files located (as seen from the base path).
72-
SourceFolder=testfonts
68+
; In which sub folder are the font files located, from the base folder of the repository.
69+
SourceFolder=fonts
7370

74-
;How many fonts are in this section we should install.
75-
;This must be number of the last File.X and Name.X entry
71+
; How many fonts are in this section we should install.
72+
; This must be number of the last File.X and Name.X entry
7673
Count=4
7774

78-
;For Name.X *DO NOT* append "(TrueType)" - The setup will add it automatically.
75+
; For Name.X *DO NOT* append "(TrueType)" - The setup will add it automatically.
7976
File.1=Hack-Bold-DEV.ttf
8077
Name.1=Hack Bold
8178

82-
;For any font that is named "Regular", *DO NOT* add "Regular". Windows assumes "Regular" to not be used.
79+
; For any font that is named "Regular", *DO NOT* add "Regular". Windows assumes "Regular" to not be used.
8380
File.2=Hack-Regular-DEV.ttf
8481
Name.2=Hack
8582

@@ -90,24 +87,22 @@ File.4=Hack-Italic-DEV.ttf
9087
Name.4=Hack Italic
9188

9289

93-
;Use this section to remove fonts upon installation, e.g. old versions of your files
94-
;that had different file names or font names. The Count for this section can be zero.
90+
; Use this section to remove fonts upon installation, e.g. old versions of your files
91+
; that had different file names or font names. The Count for this section can be zero.
9592
[RemoveFonts]
9693
Count=4
9794

98-
;These files are left overs from Hack 2.10 which used different names for italic
99-
100-
;Again, *DO NOT* append "(TrueType)" for any Name.X entry
101-
File.1=Hack-BoldOblique.ttf
95+
; Again, *DO NOT* append "(TrueType)" for any Name.X entry
96+
File.1=Hack-BoldOblique-DEV.ttf
10297
Name.1=Hack Bold Oblique
10398

104-
File.2=Hack-RegularOblique.ttf
99+
File.2=Hack-RegularOblique-DEV.ttf
105100
Name.2=Hack Oblique
106101

107-
File.3=Hack-BoldOblique.otf
102+
File.3=Hack-BoldOblique-DEV.otf
108103
Name.3=Hack Bold Oblique
109104

110-
File.4=Hack-RegularOblique.otf
105+
File.4=Hack-RegularOblique-DEV.otf
111106
Name.4=Hack Oblique
112107

113108

src/FSCW.iss

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,13 +1,14 @@
1-
//Hack Windows Installer
2-
//Copyright (C) 2016 Michael Hex
1+
//Font Setup Creator for Windows (FSCW)
2+
//Copyright (C) 2016 Michael 'Tex' Hex / Source Foundry
33
//Licensed under the MIT License
4-
//https://github.com/source-foundry/Hack-windows-installer
4+
//https://github.com/source-foundry/fscw
55

6-
//We require InnoSetup 5.5.8
7-
#if VER < EncodeVer(5,5,8)
8-
#error A more recent version of Inno Setup is required to compile this script (5.5.8 or newer)
6+
//We require InnoSetup 5.5.9
7+
#if VER < EncodeVer(5,5,9)
8+
#error A more recent version of Inno Setup is required to compile this script (5.5.9 or newer)
99
#endif
1010

11+
//Set ISPP options
1112
#pragma option -v+
1213
#pragma verboselevel 9
1314

@@ -18,12 +19,12 @@
1819
#define base_path StringChange(SourcePath,'src\','')
1920
#emit '; ISPP Base Path: ' + base_path
2021

21-
2222
//The name of the data.ini to be used. Default is data.ini in the same path as this file
2323
#define public DataIni AddBackslash(base_path) + 'src\Data.ini'
2424

2525
//-------------------------------------------------
2626

27+
2728
//Start processing data from 'DATA.ini'
2829
#if !FileExists(DataIni)
2930
#pragma error 'Data.ini not found'
@@ -32,11 +33,9 @@
3233
#define public SectionAbout 'About'
3334
#define public SectionGeneral 'General'
3435
#define public SectionVersion 'Version'
35-
//#define public SectionSupplementary 'Supplementary'
3636
#define public SectionInstallFonts 'InstallFonts'
3737
#define public SectionRemoveFonts 'RemoveFonts'
3838

39-
4039
//Reads a value from the Data.ini
4140
#define public GetDataIniValue(str sectionName, str valueName) \
4241
ReadIni(DataIni, sectionName, valueName, '')
@@ -46,9 +45,9 @@
4645
GetDataIniValue(sectionName, valueName + '.' + Str(Counter))
4746

4847

49-
//Retrieve SetupID
50-
#define public SetupID GetDataIniValue('ID', 'UniqueID')
51-
#if len(SetupID)==0
48+
//Retrieve UniqueID
49+
#define public UniqueID GetDataIniValue('ID', 'UniqueID')
50+
#if len(UniqueID)==0
5251
#pragma error 'UniqueID is empty'
5352
#endif
5453

@@ -256,7 +255,7 @@
256255

257256
//--------------------------------------------------------
258257
//Version of this installer script. Please do not change.
259-
#define public ScriptVersion '2.01'
258+
#define public ScriptVersion '2.03'
260259
//--------------------------------------------------------
261260

262261

@@ -290,8 +289,8 @@
290289

291290

292291
[Setup]
293-
AppId={#SetupID}
294-
SetupMutex={#SetupID}_Mutex
292+
AppId={#UniqueID}
293+
SetupMutex={#UniqueID}_Mutex
295294

296295
AppName={#InstallerName}
297296

@@ -1092,4 +1091,4 @@ end;
10921091
10931092
10941093
//Save the result of the preprocessor to a file for review
1095-
#expr SaveToFile(AddBackslash(SourcePath) + "zz_Preprocessor_Result.iss")
1094+
#expr SaveToFile(AddBackslash(SourcePath) + "zz_FSCW_Preprocessed.iss")

0 commit comments

Comments
 (0)