chore: update package action

This commit is contained in:
Lykin
2025-09-13 10:38:39 +08:00
parent f65b075096
commit 1137aa91e0
4 changed files with 11 additions and 15 deletions

View File

@@ -52,7 +52,7 @@ jobs:
fi fi
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v4 uses: actions/setup-go@v6
with: with:
go-version: stable go-version: stable

View File

@@ -52,7 +52,7 @@ jobs:
fi fi
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v4 uses: actions/setup-go@v6
with: with:
go-version: stable go-version: stable

View File

@@ -44,7 +44,7 @@ jobs:
fi fi
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v4 uses: actions/setup-go@v6
with: with:
go-version: stable go-version: stable

View File

@@ -50,7 +50,7 @@ jobs:
fi fi
- name: Setup Go - name: Setup Go
uses: actions/setup-go@v4 uses: actions/setup-go@v6
with: with:
go-version: stable go-version: stable
@@ -104,20 +104,16 @@ jobs:
-nsis -webview2 embed \ -nsis -webview2 embed \
-ldflags "-X main.version=v${{ steps.normalise_version.outputs.version }}" -ldflags "-X main.version=v${{ steps.normalise_version.outputs.version }}"
- name: Codesign Windows NSIS installer - name: Sign the installer
shell: powershell uses: dlemstra/code-sign-action@v1
working-directory: ./build/bin with:
run: | certificate: ${{ secrets.WIN_SIGNING_CERT }}
echo "Creating certificate file" password: ${{ secrets.WIN_SIGNING_CERT_PASSWORD }}
New-Item -ItemType directory -Path certificate folder: ./build/bin
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: Rename installer - name: Rename installer
working-directory: ./build/bin 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) - name: Upload release asset (Installer)
uses: softprops/action-gh-release@v1 uses: softprops/action-gh-release@v1