Skip to content

Commit f37e780

Browse files
authored
Merge 03a0e92 into a5874b9
2 parents a5874b9 + 03a0e92 commit f37e780

File tree

3 files changed

+10
-3
lines changed

3 files changed

+10
-3
lines changed

.github/workflows/testAndPublish.yml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,7 +37,7 @@ env:
3737
feature_buildSymbols: configured
3838
feature_uploadSymbolsToMozilla: configured
3939
feature_crowdinSync: configured
40-
# feature_signing: configured
40+
feature_signing: configured
4141
# feature_buildAppx: configured
4242

4343
jobs:
@@ -197,7 +197,12 @@ jobs:
197197
run: ci/scripts/setBuildVersionVars.ps1
198198
- name: Set scons args
199199
run: ci/scripts/setSconsArgs.ps1
200-
- name: Prepare source code for launcher
200+
env:
201+
apiSigningToken: ${{ (github.event_name == 'push' && env.feature_signing) && secrets.API_SIGNING_TOKEN || '' }}
202+
- name: Install SignPath
203+
if: ${{ github.event_name == 'push' && env.feature_signing }}
204+
run: Install-Module -Name SignPath -Force
205+
- name: Create launcher
201206
shell: cmd
202207
run: scons %sconsOutTargets% %sconsArgs% ${{ !runner.debug && '--all-cores' || '-j1'}}
203208
- name: Upload launcher

appveyor/scripts/sign.ps1

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,4 +8,5 @@ param(
88
[string]$FileToSign
99
)
1010

11+
Import-Module -Name SignPath
1112
Submit-SigningRequest -ApiToken $ApiToken -InputArtifactPath $FileToSign -OutputArtifactPath $FileToSign -OrganizationId "12147e94-bba9-4fef-b29b-300398e90c5a" -ProjectSlug "NVDA" -SigningPolicySlug "release_signing_policy" -WaitForCompletion -Force

ci/scripts/setSconsArgs.ps1

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,8 @@ if ($env:versionType) {
1111
$sconsArgs += " updateVersionType=$env:versionType"
1212
}
1313
$sconsArgs += " publisher=`"$env:scons_publisher`""
14-
if ($env:GITHUB_EVENT_NAME -eq "push" -and $env:feature_signing) {
14+
if ($env:GITHUB_EVENT_NAME -eq "push" -and $env:feature_signing -and $env:apiSigningToken) {
15+
# Note must be a single line variable
1516
$sconsArgs += " apiSigningToken=$env:apiSigningToken"
1617
}
1718
$sconsArgs += " version_build=$([int]$env:GITHUB_RUN_NUMBER + [int]$env:START_BUILD_NUMBER)"

0 commit comments

Comments
 (0)