Skip to content

Commit

Permalink
debug
Browse files Browse the repository at this point in the history
  • Loading branch information
filfreire committed Sep 5, 2024
1 parent 3166333 commit 5ea1261
Showing 1 changed file with 19 additions and 2 deletions.
21 changes: 19 additions & 2 deletions .github/workflows/release-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -101,9 +101,17 @@ jobs:
shell: pwsh
run: |
New-Item -Path "packages/insomnia/dist/win-unpacked/tosign" -ItemType Directory -Force
New-Item -Path "packages/insomnia/dist/win-unpacked/signed" -ItemType Directory -Force
Get-ChildItem -Path "packages/insomnia/dist/win-unpacked" -Filter *.dll | Move-Item -Destination "packages/insomnia/dist/win-unpacked/tosign"
Get-ChildItem -Path "packages/insomnia/dist/win-unpacked" -Filter *.exe | Move-Item -Destination "packages/insomnia/dist/win-unpacked/tosign"
- name: debug before
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
ls packages/insomnia/dist/win-unpacked/tosign
ls packages/insomnia/dist/win-unpacked/signed
# signs unpacked electron-builder contents, in this case only the .exe
- name: Code-sign unpacked .exe (Windows only)
if: matrix.os == 'windows-latest'
Expand All @@ -115,15 +123,24 @@ jobs:
credential_id: ${{secrets.ES_CREDENTIAL_ID}}
totp_secret: ${{secrets.ES_TOTP_SECRET}}
dir_path: packages/insomnia/dist/win-unpacked/tosign
output_path: packages/insomnia/dist/win-unpacked/signed
override: true

- name: debug after
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
ls packages/insomnia/dist/win-unpacked/tosign
ls packages/insomnia/dist/win-unpacked/signed
- name: Move .dll and .exe files back to win-unpacked and delete /tosign
if: matrix.os == 'windows-latest'
shell: pwsh
run: |
Get-ChildItem -Path "packages/insomnia/dist/win-unpacked/tosign" -Filter *.dll | Move-Item -Destination "packages/insomnia/dist/win-unpacked"
Get-ChildItem -Path "packages/insomnia/dist/win-unpacked/tosign" -Filter *.exe | Move-Item -Destination "packages/insomnia/dist/win-unpacked"
Get-ChildItem -Path "packages/insomnia/dist/win-unpacked/signed" -Filter *.dll | Move-Item -Destination "packages/insomnia/dist/win-unpacked"
Get-ChildItem -Path "packages/insomnia/dist/win-unpacked/signed" -Filter *.exe | Move-Item -Destination "packages/insomnia/dist/win-unpacked"
Remove-Item -Path "packages/insomnia/dist/win-unpacked/tosign" -Recurse -Force
Remove-Item -Path "packages/insomnia/dist/win-unpacked/signed" -Recurse -Force
# re-packages the now code-signed electron-builder contents into a squirrel installer
- name: Package dist app (Windows only)
Expand Down

0 comments on commit 5ea1261

Please sign in to comment.