mirror of
https://github.com/SoftFever/OrcaSlicer.git
synced 2025-12-04 16:21:17 -07:00
fix win cicd
This commit is contained in:
parent
e6269dd852
commit
132056b33b
1 changed files with 7 additions and 10 deletions
17
.github/workflows/build_orca.yml
vendored
17
.github/workflows/build_orca.yml
vendored
|
|
@ -157,11 +157,6 @@ jobs:
|
||||||
run: |
|
run: |
|
||||||
choco install nsis
|
choco install nsis
|
||||||
|
|
||||||
- name: Check signtool.exe
|
|
||||||
if: matrix.os == 'windows-2019'
|
|
||||||
run: |
|
|
||||||
"C:/Program Files (x86)/Microsoft SDKs/ClickOnce/SignTool/signtool.exe/signtool.exe"
|
|
||||||
|
|
||||||
- name: download deps
|
- name: download deps
|
||||||
if: matrix.os == 'windows-2019'
|
if: matrix.os == 'windows-2019'
|
||||||
shell: powershell
|
shell: powershell
|
||||||
|
|
@ -205,6 +200,7 @@ jobs:
|
||||||
|
|
||||||
- name: Create installer Win
|
- name: Create installer Win
|
||||||
if: matrix.os == 'windows-2019'
|
if: matrix.os == 'windows-2019'
|
||||||
|
shell: pwsh
|
||||||
env:
|
env:
|
||||||
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
|
BUILD_CERTIFICATE_BASE64: ${{ secrets.BUILD_CERTIFICATE_BASE64 }}
|
||||||
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
|
P12_PASSWORD: ${{ secrets.P12_PASSWORD }}
|
||||||
|
|
@ -213,12 +209,13 @@ jobs:
|
||||||
# Decode the certificate
|
# Decode the certificate
|
||||||
echo "$BUILD_CERTIFICATE_BASE64" | base64 -d > certificate.p12
|
echo "$BUILD_CERTIFICATE_BASE64" | base64 -d > certificate.p12
|
||||||
# Sign all .exe and .dll files in the specified folder
|
# Sign all .exe and .dll files in the specified folder
|
||||||
for file in OrcaSlicer/*; do
|
# Decode the certificate
|
||||||
if [[ $file == *.exe ]] || [[ $file == *.dll ]]; then
|
[System.Convert]::FromBase64String($env:BUILD_CERTIFICATE_BASE64) | Set-Content -AsByteStream -Path certificate.p12
|
||||||
"C:/Program Files (x86)/Microsoft SDKs/ClickOnce/SignTool/signtool.exe/signtool.exe" sign /fd sha256 /f certificate.p12 /p $P12_PASSWORD "$file"
|
Get-ChildItem -Path OrcaSlicer -Include *.exe,*.dll -Recurse | ForEach-Object {
|
||||||
fi
|
& "C:/Program Files (x86)/Microsoft SDKs/ClickOnce/SignTool/signtool.exe" sign /fd sha256 /f certificate.p12 /p $env:P12_PASSWORD $_.FullName
|
||||||
done
|
}
|
||||||
cpack -G NSIS
|
cpack -G NSIS
|
||||||
|
ls "${{ github.workspace }}/build"
|
||||||
"C:/Program Files (x86)/Microsoft SDKs/ClickOnce/SignTool/signtool.exe/signtool.exe" sign /fd sha256 /f certificate.p12 /p $P12_PASSWORD "${{ github.workspace }}/build/OrcaSlicer_Windows_Installer_${{ env.ver }}.exe"
|
"C:/Program Files (x86)/Microsoft SDKs/ClickOnce/SignTool/signtool.exe/signtool.exe" sign /fd sha256 /f certificate.p12 /p $P12_PASSWORD "${{ github.workspace }}/build/OrcaSlicer_Windows_Installer_${{ env.ver }}.exe"
|
||||||
|
|
||||||
# - name: pack app
|
# - name: pack app
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue