diff options
author | rustdesk <[email protected]> | 2023-02-14 18:20:05 +0800 |
---|---|---|
committer | rustdesk <[email protected]> | 2023-02-14 18:20:05 +0800 |
commit | 75203d2e4e14f3e01d6e30eea3c7b8a84159e5eb (patch) | |
tree | d127f466836619fe567148783f5acb5fa9674a57 | |
parent | 27d8f9cbb498dd5b3bffd8b2596b134fb38fc937 (diff) | |
download | rustdesk-server-75203d2e4e14f3e01d6e30eea3c7b8a84159e5eb.tar.gz rustdesk-server-75203d2e4e14f3e01d6e30eea3c7b8a84159e5eb.zip |
sign
-rw-r--r-- | .github/workflows/build.yaml | 28 |
1 files changed, 20 insertions, 8 deletions
diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index fdd221f..7ffe35a 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -105,15 +105,27 @@ jobs: scoop bucket add extras scoop install nsis - - run: rustup default nightly - - run: cargo build --release - working-directory: ./ui - - run: xcopy /y target\x86_64-pc-windows-msvc\release\*.exe ui\setup\bin\ - - run: xcopy /y ui\target\release\*.exe ui\setup\ - - run: mkdir ui\setup\logs - - run: makensis /V1 setup.nsi + - name: Build UI setup file + run: | + rustup default nightly + cargo build --release + xcopy /y target\x86_64-pc-windows-msvc\release\*.exe setup\bin\ + xcopy /y target\release\*.exe setup\ + mkdir setup\logs + makensis /V1 setup.nsi + mkdir SignOutput + mv RustDeskServer.Setup.exe SignOutput\ working-directory: ./ui + - name: Sign UI setup file + uses: GermanBluefox/code-sign-action@v7 + with: + certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}' + password: '${{ secrets.WINDOWS_PFX_PASSWORD }}' + certificatesha1: '${{ secrets.WINDOWS_PFX_SHA1_THUMBPRINT }}' + folder: './ui/SignOutput' + recursive: false + - name: Publish Artifacts uses: actions/upload-artifact@v3 with: @@ -122,7 +134,7 @@ jobs: target\x86_64-pc-windows-msvc\release\hbbr.exe target\x86_64-pc-windows-msvc\release\hbbs.exe target\x86_64-pc-windows-msvc\release\rustdesk-utils.exe - ui\RustDeskServer.Setup.exe + ui\SignOutput\RustDeskServer.Setup.exe if-no-files-found: error # github (draft) release with all binaries |