clients/apps/desktop/scripts
Todd Martin 195e5cd1ee
feat: [PM-39427] build desktop beta artifacts
* [PM-39427] Add desktop beta build artifacts

Mirrors the extension PR's config-loader change on the desktop side so
CHANNEL=beta merges beta.json (prereleaseBuild: true) on top of the prod
config. Retools the windows-beta job and adds a new macos-beta job to
produce beta build artifacts alongside the existing prod ones.

- config/beta.json + config/config.js: channel argument on load()
- webpack.base.js: passes process.env.CHANNEL to the config loader
- electron-builder.beta.json: adds mac + dmg blocks (mirrors prod mac;
  explicit Bitwarden- artifactName so productName's "Bitwarden Beta"
  doesn't leak into filenames)
- package.json: pack:mac:beta script
- build-desktop.yml windows-beta job: appends -beta to
  apps/desktop/src/package.json version before packaging (so
  electron-updater emits beta.yml directly rather than latest-beta.yml
  via the old rename hack); CHANNEL=beta on Build; artifact paths
  updated to the -beta-suffixed version; the latest.yml -> latest-beta.yml
  rename is dropped
- build-desktop.yml: new macos-beta job (mirrors macos-package-github's
  setup, no Safari), uploads Bitwarden-<version>-beta-universal-mac.zip,
  .dmg, and beta-mac.yml

* [PM-39427] Fix codesign call for productNames with spaces

after-pack.js was building the codesign command as a template string
and letting the shell parse it, which broke on the beta productName
"Bitwarden Beta" (space in the path). Wrap the entitlements and
proxy paths in double quotes so the shell treats them as one argument.

Also swap the hardcoded "com.bitwarden.desktop" packageId for
context.packager.appInfo.id so the codesigned proxy binary carries
the correct identifier (com.bitwarden.desktop.beta on beta builds).
Both are no-ops for prod.
2026-07-09 15:06:24 -04:00
..
dev Move desktop into apps/desktop 2022-05-05 17:20:34 +02:00
after-pack.js feat: [PM-39427] build desktop beta artifacts 2026-07-09 15:06:24 -04:00
after-sign.js [BRE-1845] Setting the id in the keyvault for easier rotation (#20414) 2026-04-28 10:04:07 -07:00
appx-cross-build.ps1 [BRE-1621] Fix Appx Release (#19043) 2026-02-18 06:57:29 -06:00
before-pack.js [bre-1650] update electron-builder and update MacOS installer UI background (#19558) 2026-03-26 08:59:46 -04:00
build-macos-extension.js [BRE-266] Fixes autofill extension signing (#13229) 2025-04-22 09:24:18 -05:00
cask-update.ps1 Move desktop into apps/desktop 2022-05-05 17:20:34 +02:00
choco-update.ps1 Fix download URL on choco update script (#3029) 2022-07-06 10:50:59 +02:00
nx-serve.js Rename deprecated killOthers to killOthersOn (#17856) 2025-12-09 09:55:25 +01:00
safari-build.ps1 Move desktop into apps/desktop 2022-05-05 17:20:34 +02:00
snap-update.ps1 Move desktop into apps/desktop 2022-05-05 17:20:34 +02:00
start.js [BEEEP] [PM-38497] Dev-ex: Add attach VSCode debugger to desktop, web configs (#21016) 2026-06-03 19:33:05 +09:00
validate-chromium-importer-thumbprint.ps1 [BRE-1724] Validating importer thumbprint (#19643) 2026-03-24 15:46:45 -05:00