rustdesk лет назад: 3
Родитель
Сommit
75203d2e4e
1 измененных файлов с 20 добавлено и 8 удалено
  1. 20 8
      .github/workflows/build.yaml

+ 20 - 8
.github/workflows/build.yaml

@@ -105,15 +105,27 @@ jobs:
105 105
           scoop bucket add extras
106 106
           scoop install nsis
107 107
 
108
-      - run: rustup default nightly
109
-      - run: cargo build --release
110
-        working-directory: ./ui
111
-      - run: xcopy /y target\x86_64-pc-windows-msvc\release\*.exe ui\setup\bin\
112
-      - run: xcopy /y ui\target\release\*.exe ui\setup\
113
-      - run: mkdir ui\setup\logs
114
-      - run: makensis /V1 setup.nsi
108
+      - name: Build UI setup file
109
+        run: |
110
+          rustup default nightly
111
+          cargo build --release
112
+          xcopy /y target\x86_64-pc-windows-msvc\release\*.exe setup\bin\
113
+          xcopy /y target\release\*.exe setup\
114
+          mkdir setup\logs
115
+          makensis /V1 setup.nsi
116
+          mkdir SignOutput
117
+          mv RustDeskServer.Setup.exe SignOutput\
115 118
         working-directory: ./ui
116 119
 
120
+      - name: Sign UI setup file 
121
+        uses: GermanBluefox/code-sign-action@v7
122
+        with:
123
+          certificate: '${{ secrets.WINDOWS_PFX_BASE64 }}'
124
+          password: '${{ secrets.WINDOWS_PFX_PASSWORD }}'
125
+          certificatesha1: '${{ secrets.WINDOWS_PFX_SHA1_THUMBPRINT }}'
126
+          folder: './ui/SignOutput'
127
+          recursive: false
128
+
117 129
       - name: Publish Artifacts
118 130
         uses: actions/upload-artifact@v3
119 131
         with:
@@ -122,7 +134,7 @@ jobs:
122 134
             target\x86_64-pc-windows-msvc\release\hbbr.exe
123 135
             target\x86_64-pc-windows-msvc\release\hbbs.exe
124 136
             target\x86_64-pc-windows-msvc\release\rustdesk-utils.exe
125
-            ui\RustDeskServer.Setup.exe
137
+            ui\SignOutput\RustDeskServer.Setup.exe
126 138
           if-no-files-found: error
127 139
 
128 140
   # github (draft) release with all binaries