Skip to content

Commit

Permalink
chore(ci): use PowerShell on windows ci (#833)
Browse files Browse the repository at this point in the history
  • Loading branch information
stavares843 authored Nov 9, 2024
1 parent ef3021a commit 2fa6b3d
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions .github/workflows/build-release-windows.yml
Original file line number Diff line number Diff line change
Expand Up @@ -69,17 +69,17 @@ jobs:
- name: Signing using Signtool
run: |
signtool.exe sign /sha1 ${{ secrets.SM_CODE_SIGNING_CERT_SHA1_HASH }} /tr http://timestamp.digicert.com /td SHA256 /fd SHA256 "./src-tauri/target/release/bundle/msi/*.msi"
- name: Delete Cert File
run: Remove-Item -Force certificate.p12

- name: Rename MSI File
run: |
# Find and rename the .msi file to include the release version
MSI_FILE=$(find src-tauri/target/release/bundle/msi -name "*.msi" | head -n 1)
NEW_MSI_FILE="src-tauri/target/release/bundle/msi/Uplink_${{ env.RELEASE_VERSION }}.msi"
mv "$MSI_FILE" "$NEW_MSI_FILE"
# Use PowerShell syntax to find and rename the .msi file
$MSI_FILE = Get-ChildItem "src-tauri/target/release/bundle/msi" -Filter "*.msi" | Select-Object -First 1
$NEW_MSI_FILE = "src-tauri/target/release/bundle/msi/Uplink_${{ env.RELEASE_VERSION }}.msi"
Move-Item -Path $MSI_FILE.FullName -Destination $NEW_MSI_FILE
- name: Upload Signed Windows Installer
uses: actions/[email protected]
with:
Expand Down

0 comments on commit 2fa6b3d

Please sign in to comment.