Reintroduce "Switch to a build variant config instead of magic env vars" (#2522)

This commit is contained in:
Michael Telatynski
2025-09-03 15:06:29 +01:00
committed by GitHub
parent 5561e2efa3
commit b8bedd9c22
7 changed files with 107 additions and 54 deletions
+7 -1
View File
@@ -193,8 +193,14 @@ jobs:
- name: Build App
run: yarn build --publish never -w ${{ steps.config.outputs.build-args }}
env:
VARIANT_PATH: variant.json
# Only set for Nightly builds
ED_NIGHTLY: ${{ inputs.version }}
# The windows packager relies on parsing this as semver, so we have to make it look like one.
# This will give our update packages really stupid names, but we probably can't change that either
# because squirrel windows parses them for the version too. We don't really care: nobody sees them.
# We just give the installer a static name, so you'll just see this in the 'about' dialog.
# Turns out if you use 0.0.0 here it makes Squirrel windows crash, so we use 0.0.1.
VERSION: ${{ inputs.version && format('0.0.1-nightly.{0}', inputs.version) || '' }}
- name: Trust eSigner sandbox cert
if: inputs.sign == ''