mirror of
https://git.quad4.io/RNS-Things/MeshChatX.git
synced 2026-09-26 04:54:03 +00:00
fix(snap): update make:snap command to include debug environment variable and remove unnecessary build environment setting
This commit is contained in:
@@ -1,16 +1,6 @@
|
||||
#!/usr/bin/env bash
|
||||
# Build a Snap via electron-forge's @electron-forge/maker-snap.
|
||||
#
|
||||
# Expects ``meshchatx/public/`` to already contain a prebuilt frontend bundle
|
||||
# (downloaded from the reusable Frontend build workflow), so this script only
|
||||
# rebuilds the cx_Freeze backend before running ``electron-forge make``.
|
||||
#
|
||||
# Required system packages (installed by the workflow):
|
||||
# - snapcraft (installed via ``snap install snapcraft --classic``)
|
||||
# - LXD or multipass when building outside ``--use-lxd``/``--destructive-mode``
|
||||
# (electron-forge invokes snapcraft itself; we set
|
||||
# ``SNAPCRAFT_BUILD_ENVIRONMENT=host`` so the snap is built directly on the
|
||||
# runner without needing a build VM).
|
||||
|
||||
set -euo pipefail
|
||||
|
||||
ROOT="$(cd "$(dirname "$0")/../.." && pwd)"
|
||||
@@ -27,6 +17,6 @@ pnpm run electron-postinstall
|
||||
pnpm run version:sync
|
||||
pnpm run build-backend
|
||||
|
||||
SNAPCRAFT_BUILD_ENVIRONMENT="${SNAPCRAFT_BUILD_ENVIRONMENT:-host}" \
|
||||
FORGE_MAKE_SNAP=1 \
|
||||
node scripts/electron-forge-local-tmp.js make --targets @electron-forge/maker-snap
|
||||
export DEBUG="${DEBUG:+$DEBUG,}electron-installer-snap:snapcraft"
|
||||
|
||||
FORGE_MAKE_SNAP=1 node scripts/electron-forge-local-tmp.js make --targets @electron-forge/maker-snap
|
||||
|
||||
Reference in New Issue
Block a user