Skip to content

armgit / ente

Public Imported from GitHub
0

πŸ’š End-to-end encrypted cloud for everything.

[desktop] Code sign on Windows

Manav Rathie90eb50a5005
diff --git a/desktop/.github/workflows/desktop-release.yml b/desktop/.github/workflows/desktop-release.yml
index 70eedf3ea6..5c54c2c33f 100644
--- a/desktop/.github/workflows/desktop-release.yml
+++ b/desktop/.github/workflows/desktop-release.yml
@@ -54,8 +54,16 @@ jobs:
# https://github.com/electron-userland/electron-builder/issues/4181
run: sudo apt-get install libarchive-tools
- - name: Build
+ - name: Export Windows code signing certificate
+ if: startsWith(matrix.os, 'windows')
+ run: echo "$CSC_LINK_PFX_B64" | base64 -d > windows-csc.pfx
+ shell: bash
+ env:
+ CSC_LINK_PFX_B64: ${{ secrets.WINDOWS_CSC_LINK_PFX_B64 }}
+
+ - name: Build Linux
uses: ente-io/[email protected]
+ if: startsWith(matrix.os, 'ubuntu')
with:
package_root: desktop
build_script_name: build:ci
@@ -68,6 +76,19 @@ jobs:
# create a (draft) release after building. Otherwise upload
# assets to the existing draft named after the version.
release: ${{ startsWith(github.ref, 'refs/tags/v') }}
+ env:
+ # Workaround recommended in
+ # https://github.com/electron-userland/electron-builder/issues/3179
+ USE_HARD_LINKS: false
+
+ - name: Build macOS
+ uses: ente-io/[email protected]
+ if: startsWith(matrix.os, 'macos')
+ with:
+ package_root: desktop
+ build_script_name: build:ci
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ release: ${{ startsWith(github.ref, 'refs/tags/v') }}
mac_certs: ${{ secrets.MAC_CERTS }}
mac_certs_password: ${{ secrets.MAC_CERTS_PASSWORD }}
@@ -78,3 +99,18 @@ jobs:
${{ secrets.APPLE_APP_SPECIFIC_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
USE_HARD_LINKS: false
+
+ - name: Build Windows
+ uses: ente-io/[email protected]
+ if: startsWith(matrix.os, 'windows')
+ with:
+ package_root: desktop
+ build_script_name: build:ci
+ github_token: ${{ secrets.GITHUB_TOKEN }}
+ release: ${{ startsWith(github.ref, 'refs/tags/v') }}
+ env:
+ # Windows signing credentials
+ # https://www.electron.build/code-signing
+ CSC_LINK: "windows-csc.pfx"
+ CSC_KEY_PASSWORD: ${{ secrets.WINDOWS_CSC_KEY_PASSWORD }}
+ USE_HARD_LINKS: false