@@ -41,10 +41,10 @@ jobs:
4141 # Log in to Snap Store
4242 snapcraft_token : ${{ secrets.snapcraft_token }}
4343
44- - name : Install AzureSignTool
45- # Only install Azure Sign Tool on Windows
46- if : startsWith(matrix.os, 'windows')
47- run : dotnet tool install --global AzureSignTool
44+ # - name: Install AzureSignTool
45+ # # Only install Azure Sign Tool on Windows
46+ # if: startsWith(matrix.os, 'windows')
47+ # run: dotnet tool install --global AzureSignTool
4848
4949 - name : Extract current branch name
5050 shell : bash
7676
7777 - name : Build/release Electron app (MacOS, Ubuntu, Windows)
7878 uses : samuelmeuli/action-electron-builder@v1
79- if : startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu')
79+ # if: startsWith(matrix.os, 'macos') || startsWith(matrix.os, 'ubuntu')
8080 with :
8181
8282 build_script_name : electron:pre-build
@@ -96,43 +96,43 @@ jobs:
9696 API_KEY_ID : ${{ secrets.mac_api_key_id }}
9797 API_KEY_ISSUER_ID : ${{ secrets.mac_api_key_issuer_id }}
9898
99- - name : Build Electron app (Windows)
100- if : startsWith(matrix.os, 'windows')
101- run : |
102- yarn run electron:build
103-
104- - name : Sign built binary (Windows)
105- if : startsWith(matrix.os, 'windows')
106- # Instead of pointing to a specific .exe, uses a PowerShell script which iterates through all the files stored in dist folder.
107- # If the file has the .exe extension, then it will use the AzureSignTool command to sign it.
108- run : |
109- cd dist; Get-ChildItem -recurse -Include **.exe | ForEach-Object {
110- $exePath = $_.FullName
111- & AzureSignTool sign -kvu "${{ secrets.azure_key_vault_url }}" -kvi "${{ secrets.azure_key_vault_client_id }}" -kvt "${{ secrets.azure_key_vault_tenant_id }}" -kvs "${{ secrets.azure_key_vault_client_secret }}" -kvc "${{ secrets.azure_key_vault_name }}" -tr http://timestamp.digicert.com -v $exePath
112- }; cd ..
113-
114- - name : Cleanup artifacts (Windows)
115- if : startsWith(matrix.os, 'windows')
116- run : |
117- mkdir dist/temp; Move-Item -Path dist/*.exe, dist/*.blockmap, dist/latest.yml -Destination dist/temp
118- npx rimraf "dist/!(temp)"
119- npx rimraf "dist/.icon-ico"
120- mv dist/temp/* dist
121- npx rimraf "dist/temp"
122-
123- - name : Upload artifacts (Windows)
124- uses : actions/upload-artifact@v2
125- if : startsWith(matrix.os, 'windows')
126- with :
127- name : ${{ matrix.os }}
128- path : dist
129-
130- - name : Release Electron app (Windows)
131- uses : softprops/action-gh-release@v1
132- if : startsWith(matrix.os, 'windows')
133- with :
134- draft : true
135- tag_name : v${{ steps.package_json.outputs.version }}
136- files : " dist/**"
137- env :
138- GITHUB_TOKEN : ${{ secrets.github_token }}
99+ # - name: Build Electron app (Windows)
100+ # if: startsWith(matrix.os, 'windows')
101+ # run: |
102+ # yarn run electron:build
103+
104+ # - name: Sign built binary (Windows)
105+ # if: startsWith(matrix.os, 'windows')
106+ # # Instead of pointing to a specific .exe, uses a PowerShell script which iterates through all the files stored in dist folder.
107+ # # If the file has the .exe extension, then it will use the AzureSignTool command to sign it.
108+ # run: |
109+ # cd dist; Get-ChildItem -recurse -Include **.exe | ForEach-Object {
110+ # $exePath = $_.FullName
111+ # & AzureSignTool sign -kvu "${{ secrets.azure_key_vault_url }}" -kvi "${{ secrets.azure_key_vault_client_id }}" -kvt "${{ secrets.azure_key_vault_tenant_id }}" -kvs "${{ secrets.azure_key_vault_client_secret }}" -kvc "${{ secrets.azure_key_vault_name }}" -tr http://timestamp.digicert.com -v $exePath
112+ # }; cd ..
113+
114+ # - name: Cleanup artifacts (Windows)
115+ # if: startsWith(matrix.os, 'windows')
116+ # run: |
117+ # mkdir dist/temp; Move-Item -Path dist/*.exe, dist/*.blockmap, dist/latest.yml -Destination dist/temp
118+ # npx rimraf "dist/!(temp)"
119+ # npx rimraf "dist/.icon-ico"
120+ # mv dist/temp/* dist
121+ # npx rimraf "dist/temp"
122+
123+ # - name: Upload artifacts (Windows)
124+ # uses: actions/upload-artifact@v2
125+ # if: startsWith(matrix.os, 'windows')
126+ # with:
127+ # name: ${{ matrix.os }}
128+ # path: dist
129+
130+ # - name: Release Electron app (Windows)
131+ # uses: softprops/action-gh-release@v1
132+ # if: startsWith(matrix.os, 'windows')
133+ # with:
134+ # draft: true
135+ # tag_name: v${{ steps.package_json.outputs.version }}
136+ # files: "dist/**"
137+ # env:
138+ # GITHUB_TOKEN: ${{ secrets.github_token }}
0 commit comments