From 0b5b71ed1cb062b55dc6019f11a5ac73ad2bb5ac Mon Sep 17 00:00:00 2001 From: Muffin Date: Mon, 22 Jan 2024 12:39:35 -0600 Subject: [PATCH] more --- .github/workflows/build.yml | 4 ++++ .github/workflows/release.yml | 24 +++++++++++++++++------- release-automation/README.md | 2 +- release-automation/build.js | 11 ++++++----- 4 files changed, 28 insertions(+), 13 deletions(-) diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index 4f1a8092..d9d08007 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -40,6 +40,8 @@ jobs: if: runner.os == 'macOS' run: | node release-automation/build.js --mac --universal + env: + USE_HARD_LINKS: "false" - name: Package Linux if: runner.os == 'Linux' run: | @@ -52,3 +54,5 @@ jobs: node release-automation/build.js --appimage --x64 node release-automation/build.js --appimage --armv7l node release-automation/build.js --appimage --arm64 + env: + USE_HARD_LINKS: "false" diff --git a/.github/workflows/release.yml b/.github/workflows/release.yml index 7e5d6a97..7ed19421 100644 --- a/.github/workflows/release.yml +++ b/.github/workflows/release.yml @@ -36,9 +36,13 @@ jobs: - name: Package Windows if: runner.os == 'Windows' run: | - node release-automation/build.js --production --windows - node release-automation/build.js --production --windows-legacy - node release-automation/build.js --production --microsoft-store + node release-automation/build.js --windows --x64 --production + node release-automation/build.js --windows --ia32 --production + node release-automation/build.js --windows --arm64 --production + node release-automation/build.js --windows-legacy --x64 --production + node release-automation/build.js --microsoft-store --x64 --production + node release-automation/build.js --microsoft-store --ia32 --production + node release-automation/build.js --microsoft-store --arm64 --production env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} - name: Upload Microsoft Store Artifact @@ -51,7 +55,7 @@ jobs: - name: Package macOS if: runner.os == 'macOS' run: | - node release-automation/build.js --production --mac + node release-automation/build.js --mac --universal --production env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} USE_HARD_LINKS: "false" @@ -63,9 +67,15 @@ jobs: - name: Package Linux if: runner.os == 'Linux' run: | - node release-automation/build.js --production --debian - node release-automation/build.js --production --tarball - node release-automation/build.js --production --appimage + node release-automation/build.js --debian --x64 --production + node release-automation/build.js --debian --armv7l --production + node release-automation/build.js --debian --arm64 --production + node release-automation/build.js --tarball --x64 --production + node release-automation/build.js --tarball --armv7l --production + node release-automation/build.js --tarball --arm64 --production + node release-automation/build.js --appimage --x64 --production + node release-automation/build.js --appimage --armv7l --production + node release-automation/build.js --appimage --arm64 --production env: GH_TOKEN: ${{ secrets.GITHUB_TOKEN }} USE_HARD_LINKS: "false" diff --git a/release-automation/README.md b/release-automation/README.md index 3922fb0b..337cb297 100644 --- a/release-automation/README.md +++ b/release-automation/README.md @@ -4,7 +4,7 @@ These are the bespoke scripts that we use to automate various aspects of releasi ## build.js -This is what creates most of the downloads that are up on our website and on GitHub. +This is what creates most of the downloads that are up on our website and on GitHub. Each run of the build script will generate one file, so if you want to package as multiple things, you'll have to run it multiple times. Doing multiple builds concurrently won't work; just run one at a time. You must specify which type of file you want to build: diff --git a/release-automation/build.js b/release-automation/build.js index 4734c265..01841f8e 100644 --- a/release-automation/build.js +++ b/release-automation/build.js @@ -42,7 +42,7 @@ const getPublish = () => process.env.GH_TOKEN ? ({ /** * Recursively copy properties from newValues to resultInPlace, in place. * Properties in resultInPlcae but not in newValues are left unchanged. - * @param {object} resultInPlace + * @param {object} resultInPlace * @param {object} newValues */ const applyExtraProperties = (resultInPlace, newValues) => { @@ -89,6 +89,7 @@ const build = ({ } applyExtraProperties(config, extraConfig); + console.log(config); return builder.build({ targets: target, @@ -176,13 +177,13 @@ const buildMac = () => build({ console.log('Not notarizing: not --production'); return; } - + const {electronPlatformName, appOutDir} = context; if (electronPlatformName !== 'darwin') { console.log('Not notarizing: not macOS'); return; } - + const appleId = process.env.APPLE_ID_USERNAME const appleIdPassword = process.env.APPLE_ID_PASSWORD; const teamId = process.env.APPLE_TEAM_ID; @@ -198,11 +199,11 @@ const buildMac = () => build({ console.log('Not notarizing: no APPLE_TEAM_ID'); return; } - + console.log('Sending app to Apple for notarization, this will take a while...'); const appId = packageJSON.build.appId; const appPath = `${appOutDir}/${context.packager.appInfo.productFilename}.app`; - + return await electronNotarize.notarize({ tool: 'notarytool', appBundleId: appId,