mirror of
https://github.com/dolphin-emu/dolphin.git
synced 2025-08-26 04:06:32 +00:00
ci: fix windows code signing
This commit is contained in:
parent
a71483584e
commit
0f7186c48f
1 changed files with 17 additions and 5 deletions
22
.github/workflows/main.yml
vendored
22
.github/workflows/main.yml
vendored
|
@ -71,6 +71,12 @@ jobs:
|
||||||
with:
|
with:
|
||||||
toolchain: ${{ steps.rust_ver.outputs.rust_ver }} # Pin to our specific Rust version.
|
toolchain: ${{ steps.rust_ver.outputs.rust_ver }} # Pin to our specific Rust version.
|
||||||
rustflags: "" # Disable default injection of warnings = errors.
|
rustflags: "" # Disable default injection of warnings = errors.
|
||||||
|
- name: Cache Utils
|
||||||
|
uses: actions/cache@v3
|
||||||
|
with:
|
||||||
|
path: |
|
||||||
|
./CodeSignTool/
|
||||||
|
key: ${{ runner.os }}-${{ secrets.CACHE_CONTROL }}
|
||||||
- name: 'Fetch Git Tags'
|
- name: 'Fetch Git Tags'
|
||||||
shell: bash
|
shell: bash
|
||||||
run: |
|
run: |
|
||||||
|
@ -99,13 +105,19 @@ jobs:
|
||||||
Xcopy /Y /E /I .\Data\PlaybackGeckoCodes\* .\Binary\x64\Sys\GameSettings\
|
Xcopy /Y /E /I .\Data\PlaybackGeckoCodes\* .\Binary\x64\Sys\GameSettings\
|
||||||
- name: "Codesign ${{ matrix.build_type}} Dolphin"
|
- name: "Codesign ${{ matrix.build_type}} Dolphin"
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
|
shell: powershell
|
||||||
env:
|
env:
|
||||||
CERTIFICATE_WINDOWS_APPLICATION: ${{ secrets.CERTIFICATE_WINDOWS_APPLICATION }}
|
ES_USERNAME: ${{ secrets.ES_USERNAME }}
|
||||||
if: env.CERTIFICATE_WINDOWS_APPLICATION != null
|
if: env.ES_USERNAME != null
|
||||||
run: |
|
run: |
|
||||||
echo "${{ secrets.CERTIFICATE_WINDOWS_APPLICATION }}" > slippi_llc.b64
|
if (!(Test-Path ".\CodeSignTool\CodeSignTool.bat" -PathType Leaf)) {
|
||||||
certutil -decode slippi_llc.b64 slippi_llc.p12
|
Invoke-WebRequest -Uri https://www.ssl.com/download/codesigntool-for-windows/ -UseBasicParsing -OutFile ".\CodeSignTool.zip"
|
||||||
signtool sign /f slippi_llc.p12 /p "${{ secrets.CERTIFICATE_WINDOWS_PASSWORD }}" /fd SHA256 /tr http://ts.ssl.com /td SHA256 "Binary\x64\Slippi_Dolphin.exe"
|
7z x CodeSignTool.zip
|
||||||
|
Remove-Item CodeSignTool.zip
|
||||||
|
Get-ChildItem -Path . | Where-Object { $_.Name -like "CodeSignTool*" } | %{ Rename-Item -LiteralPath $_.FullName -NewName "CodeSignTool" }
|
||||||
|
}
|
||||||
|
cd .\CodeSignTool
|
||||||
|
./CodeSignTool.bat sign -credential_id="${{ secrets.ES_CREDENTIAL_ID }}" -username="${{ secrets.ES_USERNAME }}" -password="${{ secrets.ES_PASSWORD }}" -totp_secret="${{ secrets.ES_TOTP_SECRET }}" -input_file_path="${{ github.workspace }}\Binary\x64\Slippi_Dolphin.exe" -override="true"
|
||||||
- name: Package Artifact
|
- name: Package Artifact
|
||||||
working-directory: ${{ github.workspace }}
|
working-directory: ${{ github.workspace }}
|
||||||
run: |
|
run: |
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue