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