File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919 description : ' Create a release after build is done'
2020 default : false
2121
22+ env :
23+ WINSPARKLE_ED_KEY : ${{ vars.WINSPARKLE_ED_KEY }}
24+ WINSPARKLE_AUTHENTICODE_ORG : ${{ vars.WINSPARKLE_AUTHENTICODE_ORG }}
25+
2226jobs :
2327 build-1 :
2428 runs-on : ${{ github.event.inputs.runner }}
Original file line number Diff line number Diff line change 1717 description: 'Create a release after build is done'
1818 default: false
1919
20+ env:
21+ WINSPARKLE_ED_KEY: {% raw %} ${{ vars.WINSPARKLE_ED_KEY }}{% endraw %}
22+ WINSPARKLE_AUTHENTICODE_ORG: {% raw %} ${{ vars.WINSPARKLE_AUTHENTICODE_ORG }}{% endraw %}
23+
2024jobs:
2125{% - for arch in ["" , "arm" ] %}
2226{% - set prefix = "build" ~ ('-arm' if arch == 'arm' else '' ) %}
Original file line number Diff line number Diff line change @@ -328,6 +328,13 @@ def main():
328328 else :
329329 gn_flags += 'is_official_build=true\n '
330330
331+ winsparkle_ed_key = os .environ .get ('WINSPARKLE_ED_KEY' , '' )
332+ authenticode_org = os .environ .get ('WINSPARKLE_AUTHENTICODE_ORG' , '' )
333+ if winsparkle_ed_key and authenticode_org :
334+ gn_flags += 'enable_winsparkle=true\n '
335+ gn_flags += f'winsparkle_ed_key="{ winsparkle_ed_key } "\n '
336+ gn_flags += f'winsparkle_authenticode_org="{ authenticode_org } "\n '
337+
331338 (source_tree / 'out/Default/args.gn' ).write_text (gn_flags , encoding = ENCODING )
332339
333340 # Enter source tree to run build commands
You can’t perform that action at this time.
0 commit comments