From ce828ca44498105b9696cde27693db90e896665e Mon Sep 17 00:00:00 2001 From: blinko Date: Mon, 6 Jan 2025 17:10:09 +0800 Subject: [PATCH] Refactor GitHub Actions workflow by removing Windows certificate import step and update Tauri configuration with new public key for the updater. This streamlines the CI process and enhances application update capabilities. --- .github/workflows/publish.yml | 12 ------------ src-tauri/tauri.conf.json | 2 +- 2 files changed, 1 insertion(+), 13 deletions(-) diff --git a/.github/workflows/publish.yml b/.github/workflows/publish.yml index ca85a88..08d83d5 100644 --- a/.github/workflows/publish.yml +++ b/.github/workflows/publish.yml @@ -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. diff --git a/src-tauri/tauri.conf.json b/src-tauri/tauri.conf.json index 2ce37f2..f419c5d 100644 --- a/src-tauri/tauri.conf.json +++ b/src-tauri/tauri.conf.json @@ -60,7 +60,7 @@ }, "updater": { "active": true, - "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDJGRjkxRUZDMkQ5REI2NDIKUldSQ3RwMHQvQjc1THpMMmVhWmczb1ZJRDFlSXQxOWlGSDRqeHhSWFVDQlhJUnFzbndUeGRxUWQK", + "pubkey": "dW50cnVzdGVkIGNvbW1lbnQ6IG1pbmlzaWduIHB1YmxpYyBrZXk6IDcyNDQ5QTA2Nzc3RkQ1RkIKUldUNzFYOTNCcHBFY29TY0ZycHVkNnlWemVGeU5kTU5CTVlRY3hlMDNxbk9QZXVJV3puS3BVeHAK", "endpoints": [ "https://github.com/blinko-space/blinko-snap/releases/latest/download/latest.json" ]