Skip to content

Commit 98209b3

Browse files
author
Vector
committed
Attempt to allow windows installer generation without signing
1 parent 0f53ff4 commit 98209b3

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

sign-pkg-windows/action.yaml

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -5,19 +5,19 @@ description:
55
inputs:
66
vault_uri:
77
description: "Azure key vault URI"
8-
required: true
8+
required: false
99
cert_name:
1010
description: "Name of certificate on Azure"
11-
required: true
11+
required: false
1212
client_id:
1313
description: "Azure signer app clientId"
14-
required: true
14+
required: false
1515
client_secret:
1616
description: "Azure signer app clientSecret"
17-
required: true
17+
required: false
1818
tenant_id:
1919
description: "Azure signer app tenantId"
20-
required: true
20+
required: false
2121

2222
runs:
2323
using: composite
@@ -33,10 +33,12 @@ runs:
3333
run: pip install pyng
3434

3535
- name: Install AzureSignTool
36+
if: inputs.vault_uri && inputs.cert_name && inputs.client_id && inputs.client_secret && inputs.tenant_id
3637
shell: bash
3738
run: dotnet tool install --global AzureSignTool
3839

3940
- name: Sign the executables
41+
if: inputs.vault_uri && inputs.cert_name && inputs.client_id && inputs.client_secret && inputs.tenant_id
4042
shell: bash
4143
run: |
4244
for exe in .app/SecondLifeViewer.exe \
@@ -87,6 +89,7 @@ runs:
8789
run: cat '.app/secondlife_setup_tmp.nsi'
8890

8991
- name: Sign the installer
92+
if: inputs.vault_uri && inputs.cert_name && inputs.client_id && inputs.client_secret && inputs.tenant_id
9093
shell: bash
9194
run: |
9295
installer="$(ls -t .app/*_Setup.exe | head -n 1)"

0 commit comments

Comments
 (0)