Skip to content

Commit

Permalink
Refactor GitHub Actions workflow by removing Windows certificate impo…
Browse files Browse the repository at this point in the history
…rt step and update Tauri configuration with new public key for the updater. This streamlines the CI process and enhances application update capabilities.
  • Loading branch information
blinko-space committed Jan 6, 2025
1 parent 87665c1 commit ce828ca
Show file tree
Hide file tree
Showing 2 changed files with 1 addition and 13 deletions.
12 changes: 0 additions & 12 deletions .github/workflows/publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -64,18 +64,6 @@ jobs:
echo "EOF" >> $GITHUB_OUTPUT
shell: bash

- name: import windows certificate
if: matrix.platform == 'windows-latest'
env:
WINDOWS_CERTIFICATE: ${{ secrets.WINDOWS_CERTIFICATE }}
WINDOWS_CERTIFICATE_PASSWORD: ${{ secrets.WINDOWS_CERTIFICATE_PASSWORD }}
run: |
New-Item -ItemType directory -Path certificate
Set-Content -Path certificate/tempCert.txt -Value $env:WINDOWS_CERTIFICATE
certutil -decode certificate/tempCert.txt certificate/certificate.pfx
Remove-Item -path certificate -include tempCert.txt
Import-PfxCertificate -FilePath certificate/certificate.pfx -CertStoreLocation Cert:\CurrentUser\My -Password (ConvertTo-SecureString -String $env:WINDOWS_CERTIFICATE_PASSWORD -Force -AsPlainText)
- name: install frontend dependencies
run: pnpm install # change this to npm, pnpm or bun depending on which one you use.

Expand Down
2 changes: 1 addition & 1 deletion src-tauri/tauri.conf.json
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@
},
"updater": {
"active": true,
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDJGRjkxRUZDMkQ5REI2NDIKUldSQ3RwMHQvQjc1THpMMmVhWmczb1ZJRDFlSXQxOWlGSDRqeHhSWFVDQlhJUnFzbndUeGRxUWQK",
"pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDcyNDQ5QTA2Nzc3RkQ1RkIKUldUNzFYOTNCcHBFY29TY0ZycHVkNnlWemVGeU5kTU5CTVlRY3hlMDNxbk9QZXVJV3puS3BVeHAK",
"endpoints": [
"https://github.com/blinko-space/blinko-snap/releases/latest/download/latest.json"
]
Expand Down

0 comments on commit ce828ca

Please sign in to comment.