full path of signtool

This commit is contained in:
SoftFever 2023-09-12 23:03:30 +08:00
parent e3f36c8a06
commit 7e66d8d231

View file

@ -160,7 +160,7 @@ jobs:
- name: Check signtool.exe - name: Check signtool.exe
if: matrix.os == 'windows-2019' if: matrix.os == 'windows-2019'
run: | run: |
signtool.exe "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'
@ -215,11 +215,11 @@ jobs:
# 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 for file in OrcaSlicer/*; do
if [[ $file == *.exe ]] || [[ $file == *.dll ]]; then if [[ $file == *.exe ]] || [[ $file == *.dll ]]; then
signtool.exe sign /fd sha256 /f certificate.p12 /p $P12_PASSWORD "$file" "C:/Program Files (x86)/Microsoft SDKs/ClickOnce/SignTool/signtool.exe/signtool.exe" sign /fd sha256 /f certificate.p12 /p $P12_PASSWORD "$file"
fi fi
done done
cpack -G NSIS cpack -G NSIS
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
# if: matrix.os == 'windows-2019' # if: matrix.os == 'windows-2019'