Skip to content

Commit f97bc2f

Browse files
committed
Initil commit for all files
1 parent e13cf33 commit f97bc2f

File tree

10 files changed

+1297
-3
lines changed

10 files changed

+1297
-3
lines changed

LICENSE renamed to LICENSE.txt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) 2016 Source Foundry
3+
Copyright (C) 2016 Michael Hex / Source Foundry
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

README.md

Lines changed: 8 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,8 @@
1-
# fscw
2-
A toolkit to create a Windows desktop setup for fonts.
1+
# Font Setup Creator for Windows (FSCW)
2+
3+
Font Setup Creator for Windows (FSCW) is a a toolkit to create a Windows desktop setup for fonts. It is driven by a DATA.ini file
4+
5+
6+
## License
7+
Copyright © 2016 [Michael 'Tex' Hex](http://www.texhex.info/) / Source Foundry. Licensed under the **MIT License**. For details, please see [LICENSE.txt](https://github.com/source-foundry/Hack-test-win-installer/blob/master/LICENSE.txt).
8+

appveyor.yml

Lines changed: 79 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,79 @@
1+
# Appveyor build script
2+
# List of installed tools/SDKs etc.: https://www.appveyor.com/docs/installed-software
3+
4+
version: 1.1.{build}
5+
6+
# Do not run when just a tag is pushed (which we do automatically by adding a release)
7+
skip_tags: true
8+
9+
branches:
10+
except:
11+
- gh-pages
12+
13+
environment:
14+
WORK_PATH: .
15+
TEST_FONTS_BASE_URL: https://github.com/chrissimpkins/Hack/raw/master/build/test_builds
16+
17+
18+
install:
19+
# We use CURL from Chocolatey for downloading files. However, curl.exe does not trust
20+
# any CA, hence each SSL download would fail. But there is a PEM archive of all
21+
# root CA allowed by Firefox: https://curl.haxx.se/docs/caextract.html
22+
# We will use PowerShell (which is using the Root CAs in Windows) to download this file
23+
# and then instruct CURL to use it.
24+
# I hope this is proper way to ensure that our https connections are really secure
25+
- md C:\temp
26+
27+
# Download CA pem file using PowerShell
28+
- ps: (new-object net.webclient).DownloadFile('https://curl.haxx.se/ca/cacert.pem', 'c:\temp\cacert.pem')
29+
# Install CURL using Chocolatey (https://chocolatey.org/packages/curl)
30+
- choco install -y curl
31+
- cd %APPVEYOR_BUILD_FOLDER%\testfonts
32+
# To be sure, delete all old -DEV.ttf files
33+
- del *-DEV.ttf /Q
34+
- dir
35+
36+
# Download newest version of the font files.
37+
# CURL Options: use our PEM file, follow redirect and use the remote name as the local filename
38+
- curl.exe --cacert C:\temp\cacert.pem --location --remote-name %TEST_FONTS_BASE_URL%/Hack-Regular-DEV.ttf
39+
- curl.exe --cacert C:\temp\cacert.pem --location --remote-name %TEST_FONTS_BASE_URL%/Hack-Italic-DEV.ttf
40+
- curl.exe --cacert C:\temp\cacert.pem --location --remote-name %TEST_FONTS_BASE_URL%/Hack-Bold-DEV.ttf
41+
- curl.exe --cacert C:\temp\cacert.pem --location --remote-name %TEST_FONTS_BASE_URL%/Hack-BoldItalic-DEV.ttf
42+
- dir
43+
44+
# Download (newest version from US site) and install Inno Setup.
45+
# We are using PowerShell to verify the connection by using the Windows root CAs
46+
- ps: (new-object net.webclient).DownloadFile('http://www.jrsoftware.org/download.php/is.exe?site=1', 'c:\temp\innosetup.exe')
47+
- c:\temp\innosetup.exe TYPE=full /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /CLOSEAPPLICATIONS /NORESTARTAPPLICATIONS
48+
# Add Inno Setup to PATH so the ISCC command is found
49+
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
50+
51+
52+
53+
build_script:
54+
- iscc.exe /DEXTERNAL_VERSION=%APPVEYOR_BUILD_VERSION% %APPVEYOR_BUILD_FOLDER%\src\HackWindowsInstaller.iss
55+
# - dir
56+
57+
58+
artifacts:
59+
- path: 'out\*.exe'
60+
name: SetupExe
61+
62+
deploy:
63+
provider: GitHub
64+
auth_token:
65+
secure: 6Ez1BkZ4iDyoY17CZAwbOcQJcKnn8ZWK3vV2QINglWqgkOFRkN4JCtdMu0fyBFMc
66+
artifact: SetupExe
67+
prerelease: true
68+
tag: v$(appveyor_build_version)
69+
release: Version $(appveyor_build_version)
70+
description: $(APPVEYOR_REPO_COMMIT_MESSAGE) ($(APPVEYOR_REPO_COMMIT_TIMESTAMP))
71+
72+
73+
notifications:
74+
- provider: Slack
75+
auth_token:
76+
secure: ElggvPLQdlcU9+djZsLDZpZLjOOpYg5Y2DRFQGN2yuSrZqoOP/1PCAmUSd8RJjrukymK1FQNrKuSpiw0hLHEeg==
77+
channel: '#release-info'
78+
79+
#done

fonts/Hack-Bold-DEV.ttf

387 KB
Binary file not shown.

fonts/Hack-BoldItalic-DEV.ttf

395 KB
Binary file not shown.

fonts/Hack-Italic-DEV.ttf

390 KB
Binary file not shown.

fonts/Hack-Regular-DEV.ttf

390 KB
Binary file not shown.

src/Data.ini

Lines changed: 114 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,114 @@
1+
;DATA file (INI based) for the Inno Setup based installer
2+
3+
[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!
9+
10+
11+
[Version]
12+
;Version of the Setup (*NOT* for the Font release).
13+
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
16+
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
21+
22+
23+
[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
27+
28+
;The entity that releases the font and the setup
29+
Publisher=Michael Hex / Source Foundry
30+
31+
;Copyright for the font/setup.
32+
Copyright=Copyright © 2016 Michael Hex / Source Foundry
33+
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.
36+
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/
40+
41+
42+
[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
46+
47+
;Name of the resulting EXE file.
48+
;*DO NOT* add the extension (.exe), this will be done by the script.
49+
ExeFile=HackTestWinInstaller
50+
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.
53+
DestinationFolder=Hack Test Win Installer
54+
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*.*
66+
LicenseFile=license*.*
67+
68+
69+
;This section defines which fonts should be installed.
70+
[InstallFonts]
71+
;In which sub folder are the font files located (as seen from the base path).
72+
SourceFolder=testfonts
73+
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
76+
Count=4
77+
78+
;For Name.X *DO NOT* append "(TrueType)" - The setup will add it automatically.
79+
File.1=Hack-Bold-DEV.ttf
80+
Name.1=Hack Bold
81+
82+
;For any font that is named "Regular", *DO NOT* add "Regular". Windows assumes "Regular" to not be used.
83+
File.2=Hack-Regular-DEV.ttf
84+
Name.2=Hack
85+
86+
File.3=Hack-BoldItalic-DEV.ttf
87+
Name.3=Hack Bold Italic
88+
89+
File.4=Hack-Italic-DEV.ttf
90+
Name.4=Hack Italic
91+
92+
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.
95+
[RemoveFonts]
96+
Count=4
97+
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
102+
Name.1=Hack Bold Oblique
103+
104+
File.2=Hack-RegularOblique.ttf
105+
Name.2=Hack Oblique
106+
107+
File.3=Hack-BoldOblique.otf
108+
Name.3=Hack Bold Oblique
109+
110+
File.4=Hack-RegularOblique.otf
111+
Name.4=Hack Oblique
112+
113+
114+

0 commit comments

Comments
 (0)