π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Inline desktop release commands
Manav Rathi9c593170266f
diff --git a/desktop/.github/workflows/desktop-release.yml b/desktop/.github/workflows/desktop-release.ymlindex acf3783ef4..9bd9839ef7 100644--- a/desktop/.github/workflows/desktop-release.yml+++ b/desktop/.github/workflows/desktop-release.yml@@ -59,7 +59,7 @@ jobs:run: yarn config set network-timeout 900000 -g- name: Install dependencies- run: yarn install+ run: yarn install --frozen-lockfile- name: Create universal ffmpeg binaries for macOSif: startsWith(matrix.os, 'macos')@@ -92,7 +92,15 @@ jobs:run: sudo apt-get update && sudo apt-get install libarchive-tools- name: Build- run: node scripts/ci-electron-builder.js+ shell: bash+ run: |+ if [ "${RUNNER_OS}" = "macOS" ]; then+ export CSC_LINK="${MAC_CERTS}"+ export CSC_KEY_PASSWORD="${MAC_CERTS_PASSWORD}"+ fi++ yarn run build:ci+ yarn run electron-builder --${{ startsWith(matrix.os, 'macos') && 'mac' || startsWith(matrix.os, 'windows') && 'windows' || 'linux' }} --publish alwaysenv:GH_TOKEN: ${{ secrets.GITHUB_TOKEN }}MAC_CERTS: ${{ secrets.MAC_CERTS }}diff --git a/desktop/scripts/ci-electron-builder.js b/desktop/scripts/ci-electron-builder.jsdeleted file mode 100644index fb4efef37d..0000000000--- a/desktop/scripts/ci-electron-builder.js+++ /dev/null@@ -1,45 +0,0 @@-const { execSync } = require("child_process");--const log = (message) => console.log(`\n${message}`);--const fail = (message) => {- console.error(message);- process.exit(1);-};--const run = (command) => execSync(command, { stdio: "inherit" });--const platform = () => {- switch (process.platform) {- case "darwin":- return "mac";- case "win32":- return "windows";- default:- return "linux";- }-};--const setEnv = (name, value) => {- if (value) process.env[name] = value;-};--if (!process.env.GH_TOKEN) fail("GH_TOKEN is not set");--const target = platform();--if (target == "mac") {- setEnv("CSC_LINK", process.env.MAC_CERTS);- setEnv("CSC_KEY_PASSWORD", process.env.MAC_CERTS_PASSWORD);-}--process.env.ADBLOCK = "true";--log("Installing dependencies...");-run("yarn");--log("Running the build script...");-run("yarn run build:ci");--log("Building and releasing the Electron app...");-run(`yarn run electron-builder --${target} --publish always`);