Files
kestrove-desktop/scripts/snap.sh
T
samiandClaude Opus 5.5 a818a83a9c
ci / build (ubuntu-22.04) (push) Waiting to run
ci / build (windows-2025) (push) Waiting to run
ci / deny (push) Waiting to run
Local vaults without a server; Snap package; version 1.2.2
The New vault tab can now skip the server, as Apple and Android already do. The snap
writes its browser manifests on start, since a strict snap can't install them itself.

Co-Authored-By: Claude Opus 5.5 <[email protected]>
2026-10-31 08:24:59 +04:00

16 lines
759 B
Bash
Executable File

#!/bin/sh
# Builds the Snap Store package. Needs snapcraft and LXD. Run from anywhere; kestrove-core must sit next to this repo.
# The snap is built from a copy, because snapcraft only sees files under the project and the app needs both repos.
#
# scripts/snap.sh writes kestrove_<version>_amd64.snap to ../release/desktop
set -eu
cd "$(dirname "$0")/../.."
OUT=$(pwd)/release/desktop
WORK=$(mktemp -d "${TMPDIR:-$HOME}/kestrove-snap.XXXXXX")
trap 'rm -rf "$WORK"' EXIT
tar --exclude=node_modules --exclude=target --exclude=dist --exclude=.git -cf - kestrove-core kestrove-desktop | tar -xf - -C "$WORK"
cp -r kestrove-desktop/snap "$WORK/snap"
mkdir -p "$OUT"
(cd "$WORK" && snapcraft pack && cp kestrove_*.snap "$OUT/")
ls -la "$OUT"/kestrove_*.snap