From 75203d2e4e14f3e01d6e30eea3c7b8a84159e5eb Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 14 Feb 2023 18:20:05 +0800 Subject: [PATCH 1/4] sign --- .github/workflows/build.yaml | 28 ++++++++++++++++++++-------- 1 file 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 From 467298efa72c62024c4035b137b1503c4fe787c9 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 14 Feb 2023 19:02:46 +0800 Subject: [PATCH 2/4] fix sign --- .github/workflows/build.yaml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index 7ffe35a..a44178c 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -109,7 +109,7 @@ jobs: run: | rustup default nightly cargo build --release - xcopy /y target\x86_64-pc-windows-msvc\release\*.exe setup\bin\ + 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 From d0841f7558419893d1c7c5a14193122c9c5803b2 Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 14 Feb 2023 19:19:38 +0800 Subject: [PATCH 3/4] more lang in setup.nsi --- ui/setup.nsi | 69 ++++++++++++++++++++++++++++++++++++++++++++++++++-- 1 file changed, 67 insertions(+), 2 deletions(-) diff --git a/ui/setup.nsi b/ui/setup.nsi index 8bdfdf2..6c49af8 100644 --- a/ui/setup.nsi +++ b/ui/setup.nsi @@ -56,8 +56,73 @@ InstallDir "$PROGRAMFILES64\${APP_NAME}" #################################################################### # Language -!insertmacro MUI_LANGUAGE "English" +!insertmacro MUI_LANGUAGE "English" ; The first language is the default language +!insertmacro MUI_LANGUAGE "French" +!insertmacro MUI_LANGUAGE "German" +!insertmacro MUI_LANGUAGE "Spanish" +!insertmacro MUI_LANGUAGE "SpanishInternational" !insertmacro MUI_LANGUAGE "SimpChinese" +!insertmacro MUI_LANGUAGE "TradChinese" +!insertmacro MUI_LANGUAGE "Japanese" +!insertmacro MUI_LANGUAGE "Korean" +!insertmacro MUI_LANGUAGE "Italian" +!insertmacro MUI_LANGUAGE "Dutch" +!insertmacro MUI_LANGUAGE "Danish" +!insertmacro MUI_LANGUAGE "Swedish" +!insertmacro MUI_LANGUAGE "Norwegian" +!insertmacro MUI_LANGUAGE "NorwegianNynorsk" +!insertmacro MUI_LANGUAGE "Finnish" +!insertmacro MUI_LANGUAGE "Greek" +!insertmacro MUI_LANGUAGE "Russian" +!insertmacro MUI_LANGUAGE "Portuguese" +!insertmacro MUI_LANGUAGE "PortugueseBR" +!insertmacro MUI_LANGUAGE "Polish" +!insertmacro MUI_LANGUAGE "Ukrainian" +!insertmacro MUI_LANGUAGE "Czech" +!insertmacro MUI_LANGUAGE "Slovak" +!insertmacro MUI_LANGUAGE "Croatian" +!insertmacro MUI_LANGUAGE "Bulgarian" +!insertmacro MUI_LANGUAGE "Hungarian" +!insertmacro MUI_LANGUAGE "Thai" +!insertmacro MUI_LANGUAGE "Romanian" +!insertmacro MUI_LANGUAGE "Latvian" +!insertmacro MUI_LANGUAGE "Macedonian" +!insertmacro MUI_LANGUAGE "Estonian" +!insertmacro MUI_LANGUAGE "Turkish" +!insertmacro MUI_LANGUAGE "Lithuanian" +!insertmacro MUI_LANGUAGE "Slovenian" +!insertmacro MUI_LANGUAGE "Serbian" +!insertmacro MUI_LANGUAGE "SerbianLatin" +!insertmacro MUI_LANGUAGE "Arabic" +!insertmacro MUI_LANGUAGE "Farsi" +!insertmacro MUI_LANGUAGE "Hebrew" +!insertmacro MUI_LANGUAGE "Indonesian" +!insertmacro MUI_LANGUAGE "Mongolian" +!insertmacro MUI_LANGUAGE "Luxembourgish" +!insertmacro MUI_LANGUAGE "Albanian" +!insertmacro MUI_LANGUAGE "Breton" +!insertmacro MUI_LANGUAGE "Belarusian" +!insertmacro MUI_LANGUAGE "Icelandic" +!insertmacro MUI_LANGUAGE "Malay" +!insertmacro MUI_LANGUAGE "Bosnian" +!insertmacro MUI_LANGUAGE "Kurdish" +!insertmacro MUI_LANGUAGE "Irish" +!insertmacro MUI_LANGUAGE "Uzbek" +!insertmacro MUI_LANGUAGE "Galician" +!insertmacro MUI_LANGUAGE "Afrikaans" +!insertmacro MUI_LANGUAGE "Catalan" +!insertmacro MUI_LANGUAGE "Esperanto" +!insertmacro MUI_LANGUAGE "Asturian" +!insertmacro MUI_LANGUAGE "Basque" +!insertmacro MUI_LANGUAGE "Pashto" +!insertmacro MUI_LANGUAGE "ScotsGaelic" +!insertmacro MUI_LANGUAGE "Georgian" +!insertmacro MUI_LANGUAGE "Vietnamese" +!insertmacro MUI_LANGUAGE "Welsh" +!insertmacro MUI_LANGUAGE "Armenian" +!insertmacro MUI_LANGUAGE "Corsican" +!insertmacro MUI_LANGUAGE "Tatar" +!insertmacro MUI_LANGUAGE "Hindi" #################################################################### # Sections @@ -105,4 +170,4 @@ SectionEnd Function CreateStartupShortcut CreateShortCut "$DESKTOP\${APP_NAME}.lnk" "$INSTDIR\${PRODUCT_NAME}.exe" -FunctionEnd \ No newline at end of file +FunctionEnd From 14301a7d5f5a04597ec9e93b0b07772cc131fcae Mon Sep 17 00:00:00 2001 From: rustdesk Date: Tue, 14 Feb 2023 19:56:27 +0800 Subject: [PATCH 4/4] sign all exe --- .github/workflows/build.yaml | 16 +++++++++++++--- 1 file changed, 13 insertions(+), 3 deletions(-) diff --git a/.github/workflows/build.yaml b/.github/workflows/build.yaml index a44178c..b172b8e 100644 --- a/.github/workflows/build.yaml +++ b/.github/workflows/build.yaml @@ -105,6 +105,15 @@ jobs: scoop bucket add extras scoop install nsis + - name: Sign exe files + uses: GermanBluefox/code-sign-action@v7 + with: + certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}' + password: '${{ secrets.WINDOWS_PFX_PASSWORD }}' + certificatesha1: '${{ secrets.WINDOWS_PFX_SHA1_THUMBPRINT }}' + folder: 'target\x86_64-pc-windows-msvc\release' + recursive: false + - name: Build UI setup file run: | rustup default nightly @@ -115,6 +124,7 @@ jobs: makensis /V1 setup.nsi mkdir SignOutput mv RustDeskServer.Setup.exe SignOutput\ + mv ..\target\x86_64-pc-windows-msvc\release\*.exe SignOutput\ working-directory: ./ui - name: Sign UI setup file @@ -131,9 +141,9 @@ jobs: with: name: binaries-windows-x86_64 path: | - 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\SignOutput\hbbr.exe + ui\SignOutput\hbbs.exe + ui\SignOutput\rustdesk-utils.exe ui\SignOutput\RustDeskServer.Setup.exe if-no-files-found: error