Skip to content

Commit 035c952

Browse files
committed
Code signing on Windows.
1 parent 5add8fc commit 035c952

File tree

2 files changed

+32
-7
lines changed

2 files changed

+32
-7
lines changed

.github/workflows/cd.yml

Lines changed: 31 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -17,15 +17,40 @@ jobs:
1717
include:
1818
- name: Windows
1919
os: windows-latest
20-
- name: Linux
21-
os: ubuntu-latest
22-
- name: macOS (Intel)
23-
os: macos-13
24-
- name: macOS (ARM)
25-
os: macos-latest
20+
# - name: Linux
21+
# os: ubuntu-latest
22+
# - name: macOS (Intel)
23+
# os: macos-13
24+
# - name: macOS (ARM)
25+
# os: macos-latest
26+
env:
27+
EV_CERTIFICATE_BASE64: ${{ secrets.EV_CERTIFICATE_BASE64 }}
2628
steps:
29+
- name: Set the timezone to New Zealand
30+
uses: szenius/set-timezone@v2.0
31+
with:
32+
timezoneWindows: "New Zealand Standard Time"
33+
timezoneLinux: "Pacific/Auckland"
34+
timezoneMacos: "Pacific/Auckland"
2735
- name: Check out OpenCOR
2836
uses: actions/checkout@v4
37+
- name: Retrieve the EV certificate (Windows only)
38+
if: matrix.name == 'Windows'
39+
shell: bash
40+
run: echo -n $EV_CERTIFICATE_BASE64 | base64 -d - > EVCertificate.pfx
41+
- name: Make sure that the EV certificate is available (Windows only)
42+
if: matrix.name == 'Windows'
43+
run: dir
44+
- name: Copy EV_CERTIFICATE_BASE64 to EVCertificate.pfx (Windows only)
45+
if: matrix.name == 'Windows'
46+
shell: bash
47+
run: echo $EV_CERTIFICATE_BASE64 > EVCertificate.pfx
48+
- name: Output EV_CERTIFICATE_BASE64
49+
shell: bash
50+
run: echo $EV_CERTIFICATE_BASE64
51+
- name: Make sure that the EV certificate is available (Windows only)
52+
if: matrix.name == 'Windows'
53+
run: dir
2954
- name: Install Node.js
3055
uses: actions/setup-node@v4
3156
with:

electron-builder.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ productName: OpenCOR
33
win:
44
artifactName: ${productName}-${version}-Windows.${ext}
55
target:
6-
- nsis
6+
# - nsis
77
- zip
88
nsis:
99
uninstallDisplayName: ${productName}

0 commit comments

Comments
 (0)