Skip to content

Commit 8e28d0f

Browse files
committed
Updated README.md
1 parent f97bc2f commit 8e28d0f

File tree

2 files changed

+32
-51
lines changed

2 files changed

+32
-51
lines changed

README.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,14 @@
11
# Font Setup Creator for Windows (FSCW)
22

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
3+
Font Setup Creator for Windows (FSCW) is a a toolkit to create a Windows desktop setup for fonts.
4+
5+
It is driven by a [DATA.ini](https://github.com/source-foundry/fscw/blob/master/src/Data.ini) file that includes all necessary information about the font(s) to be installed. The Setup EXE file is automatically generated using [Inno Setup](http://www.jrsoftware.org/isinfo.php). If you do not run Windows, a build script for [AppVeyor](https://www.appveyor.com/) is also included. This allows AppVeyor to build the Setup EXE for you each time you push to your repository.
6+
7+
## Why this project exists
8+
9+
FSCW includes all best practises for font installation on Windows we have learned while creating the [Windows installer](https://github.com/source-foundry/Hack-windows-installer) for the [Hack typeface](https://github.com/chrissimpkins/Hack).
10+
11+
Although it might seem like overkill to use a Windows installer for fonts, there is good reason for this on the Windows platform. A number of things can go wrong when one tries to install or update frequently updated fonts manually (see [issue #152](https://github.com/chrissimpkins/Hack/issues/152) and [issue #129](https://github.com/chrissimpkins/Hack/issues/129) in the [Hack repository](https://github.com/chrissimpkins/Hack/)).
412

513

614
## License

appveyor.yml

Lines changed: 23 additions & 50 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
# Appveyor build script
22
# List of installed tools/SDKs etc.: https://www.appveyor.com/docs/installed-software
33

4-
version: 1.1.{build}
4+
version: 2.0.{build}
55

66
# Do not run when just a tag is pushed (which we do automatically by adding a release)
77
skip_tags: true
@@ -11,69 +11,42 @@ branches:
1111
- gh-pages
1212

1313
environment:
14-
WORK_PATH: .
15-
TEST_FONTS_BASE_URL: https://github.com/chrissimpkins/Hack/raw/master/build/test_builds
14+
INNOSETUP_DOWNLOAD_URL: https://github.com/source-foundry/fscw/releases/download/v0.0.1/innosetup.exe
1615

1716

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')
17+
install:
18+
# Download and install Inno Setup.
19+
- ps: (new-object net.webclient).DownloadFile('$env:INNOSETUP_DOWNLOAD_URL', 'c:\temp\innosetup.exe')
4720
- c:\temp\innosetup.exe TYPE=full /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /CLOSEAPPLICATIONS /NORESTARTAPPLICATIONS
4821
# Add Inno Setup to PATH so the ISCC command is found
4922
- set PATH="C:\Program Files (x86)\Inno Setup 5";%PATH%
5023

5124

5225

5326
build_script:
54-
- iscc.exe /DEXTERNAL_VERSION=%APPVEYOR_BUILD_VERSION% %APPVEYOR_BUILD_FOLDER%\src\HackWindowsInstaller.iss
55-
# - dir
56-
27+
- iscc.exe /DEXTERNAL_VERSION=%APPVEYOR_BUILD_VERSION% %APPVEYOR_BUILD_FOLDER%\src\FSCW.iss
28+
5729

5830
artifacts:
5931
- path: 'out\*.exe'
6032
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))
33+
34+
35+
#deploy:
36+
# provider: GitHub
37+
# auth_token:
38+
# secure: 6Ez1BkZ4iDyoY17CZAwbOcQJcKnn8ZWK3vV2QINglWqgkOFRkN4JCtdMu0fyBFMc
39+
# artifact: SetupExe
40+
# prerelease: true
41+
# tag: v$(appveyor_build_version)
42+
# release: Version $(appveyor_build_version)
43+
# description: $(APPVEYOR_REPO_COMMIT_MESSAGE) ($(APPVEYOR_REPO_COMMIT_TIMESTAMP))
7144

7245

73-
notifications:
74-
- provider: Slack
75-
auth_token:
76-
secure: ElggvPLQdlcU9+djZsLDZpZLjOOpYg5Y2DRFQGN2yuSrZqoOP/1PCAmUSd8RJjrukymK1FQNrKuSpiw0hLHEeg==
77-
channel: '#release-info'
46+
#notifications:
47+
# - provider: Slack
48+
# auth_token:
49+
# secure: ElggvPLQdlcU9+djZsLDZpZLjOOpYg5Y2DRFQGN2yuSrZqoOP/1PCAmUSd8RJjrukymK1FQNrKuSpiw0hLHEeg==
50+
# channel: '#release-info'
7851

7952
#done

0 commit comments

Comments
 (0)