Updated release scripts of snapcraft pack command syntax.

Thanks to xet7 !
This commit is contained in:
Lauri Ojansivu 2025-10-11 03:11:32 +03:00
parent 2a24918a9c
commit d88d197de9

View file

@ -15,7 +15,7 @@ if [[ "$OSTYPE" == "linux-gnu" ]]; then
multipass delete ubu multipass delete ubu
multipass purge multipass purge
multipass launch --name ubu multipass launch --name ubu
snapcraft snapcraft pack
exit; exit;
elif [[ "$OSTYPE" == "darwin"* ]]; then elif [[ "$OSTYPE" == "darwin"* ]]; then
echo "macOS" echo "macOS"
@ -26,12 +26,10 @@ elif [[ "$OSTYPE" == "darwin"* ]]; then
multipass launch --name ubu multipass launch --name ubu
fi fi
# Build with platform specified for macOS # Build with platform specified for macOS
snapcraft --use-lxd --platform=amd64 --build-for=amd64 snapcraft pack --use-lxd --platform=amd64 --build-for=amd64
exit; exit;
else else
echo "Unknown OS: $OSTYPE" echo "Unknown OS: $OSTYPE"
echo "Please install snapcraft and multipass manually." echo "Please install snapcraft and multipass manually."
exit; exit;
fi fi