From 1137aa91e0120bf94f683b88c79dc168453a6a6d Mon Sep 17 00:00:00 2001 From: Lykin <137850705+tiny-craft@users.noreply.github.com> Date: Sat, 13 Sep 2025 10:38:39 +0800 Subject: [PATCH] chore: update package action --- .../workflows/release-linux-webkit2-41.yaml | 2 +- .github/workflows/release-linux.yaml | 2 +- .github/workflows/release-macos.yaml | 2 +- .github/workflows/release-windows.yaml | 20 ++++++++----------- 4 files changed, 11 insertions(+), 15 deletions(-) diff --git a/.github/workflows/release-linux-webkit2-41.yaml b/.github/workflows/release-linux-webkit2-41.yaml index 14a215e..2b056eb 100644 --- a/.github/workflows/release-linux-webkit2-41.yaml +++ b/.github/workflows/release-linux-webkit2-41.yaml @@ -52,7 +52,7 @@ jobs: fi - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v6 with: go-version: stable diff --git a/.github/workflows/release-linux.yaml b/.github/workflows/release-linux.yaml index 08059db..a5f5031 100644 --- a/.github/workflows/release-linux.yaml +++ b/.github/workflows/release-linux.yaml @@ -52,7 +52,7 @@ jobs: fi - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v6 with: go-version: stable diff --git a/.github/workflows/release-macos.yaml b/.github/workflows/release-macos.yaml index 88aeb68..b38ed3a 100644 --- a/.github/workflows/release-macos.yaml +++ b/.github/workflows/release-macos.yaml @@ -44,7 +44,7 @@ jobs: fi - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v6 with: go-version: stable diff --git a/.github/workflows/release-windows.yaml b/.github/workflows/release-windows.yaml index 60f5afb..d98d197 100644 --- a/.github/workflows/release-windows.yaml +++ b/.github/workflows/release-windows.yaml @@ -50,7 +50,7 @@ jobs: fi - name: Setup Go - uses: actions/setup-go@v4 + uses: actions/setup-go@v6 with: go-version: stable @@ -104,20 +104,16 @@ jobs: -nsis -webview2 embed \ -ldflags "-X main.version=v${{ steps.normalise_version.outputs.version }}" - - name: Codesign Windows NSIS installer - shell: powershell - working-directory: ./build/bin - run: | - echo "Creating certificate file" - New-Item -ItemType directory -Path certificate - Set-Content -Path certificate\certificate.txt -Value '${{ secrets.WIN_SIGNING_CERT }}' - certutil -decode certificate\certificate.txt certificate\certificate.pfx - echo "Signing TinyRDM installer" - & 'C:/Program Files (x86)/Windows Kits/10/bin/10.0.17763.0/x86/signtool.exe' sign /td sha256 /tr http://timestamp.sectigo.com/?td=sha256 /f certificate\certificate.pfx /p '${{ secrets.WIN_SIGNING_CERT_PASSWORD }}' 'TinyRDM-${{ steps.normalise_platform_name.outputs.pname }}-installer.exe' + - name: Sign the installer + uses: dlemstra/code-sign-action@v1 + with: + certificate: ${{ secrets.WIN_SIGNING_CERT }} + password: ${{ secrets.WIN_SIGNING_CERT_PASSWORD }} + folder: ./build/bin - name: Rename installer working-directory: ./build/bin - run: Rename-Item -Path "TinyRDM-${{ steps.normalise_platform_name.outputs.pname }}-installer.exe" -NewName "TinyRDM_Setup_${{ steps.normalise_version.outputs.version }}_${{ steps.normalise_platform.outputs.tag }}.exe" + run: Rename-Item -Path "Tiny RDM.exe" -NewName "TinyRDM_Setup_${{ steps.normalise_version.outputs.version }}_${{ steps.normalise_platform.outputs.tag }}.exe" - name: Upload release asset (Installer) uses: softprops/action-gh-release@v1