Skip to content

Commit 7984586

Browse files
committed
Ensure signing certificates are not included in build output
1 parent 1b90bf5 commit 7984586

File tree

4 files changed

+6
-3
lines changed

4 files changed

+6
-3
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,4 +2,4 @@ node_modules
22
out
33
httptoolkit-server/
44
appveyor-tools/
5-
encrypted-win-certificate.pfx
5+
certificates/encrypted-win-cert.pfx

appveyor.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ branches:
1616

1717
install:
1818
- ps: iex ((New-Object Net.WebClient).DownloadString('https://raw.githubusercontent.com/appveyor/secure-file/master/install.ps1'))
19-
- cmd: appveyor-tools\secure-file -decrypt encrypted-win-certificate.pfx.enc -secret %CERTIFICATE_FILE_KEY%
19+
- cmd: appveyor-tools\secure-file -decrypt certificates/encrypted-win-cert.pfx.enc -secret %CERTIFICATE_FILE_KEY%
2020
- ps: Install-Product node $env:nodejs_version $env:platform
2121
- set PATH=%APPDATA%\npm;%PATH%
2222
- npm install

package.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,9 @@
3636
"executableName": "httptoolkit",
3737
"packageManager": "npm",
3838
"icon": "./src/icon",
39+
"ignore": [
40+
"certificates"
41+
],
3942
"afterCopy": [
4043
"./src/after-copy.js"
4144
]
@@ -46,7 +49,7 @@
4649
"exe": "httptoolkit.exe",
4750
"iconUrl": "https://httptoolkit.tech/favicon.ico",
4851
"setupIcon": "./src/icon.ico",
49-
"certificateFile": "./encrypted-win-certificate.pfx"
52+
"certificateFile": "./certificates/encrypted-win-cert.pfx"
5053
},
5154
"electronInstallerDMG": {
5255
"name": "HTTP Toolkit",

0 commit comments

Comments
 (0)