Switch pack to snap
This commit is contained in:
@@ -1130,9 +1130,6 @@ install_mc_snap() {
|
|||||||
- removable-media
|
- removable-media
|
||||||
EOF
|
EOF
|
||||||
|
|
||||||
echo "snapcraft.yaml created at $snap_yaml"
|
|
||||||
echo "Building snap package..."
|
|
||||||
|
|
||||||
# Be careful with snapcraft container paths
|
# Be careful with snapcraft container paths
|
||||||
# The container does not respect the --workdir
|
# The container does not respect the --workdir
|
||||||
# Also has incompatible --entrypoint so need to override manually
|
# Also has incompatible --entrypoint so need to override manually
|
||||||
@@ -1141,7 +1138,7 @@ install_mc_snap() {
|
|||||||
-w /build \
|
-w /build \
|
||||||
--entrypoint "" \
|
--entrypoint "" \
|
||||||
ghcr.io/canonical/snapcraft:8_core24 \
|
ghcr.io/canonical/snapcraft:8_core24 \
|
||||||
snapcraft pack -o "/build/snap/${MC_PKG}_${MC_VERSION}-${MC_RELEASE}.snap" --destructive-mode \
|
snapcraft snap -o "/build/snap/${MC_PKG}_${MC_VERSION}-${MC_RELEASE}.snap" --destructive-mode \
|
||||||
&& [[ -f "$snap_dir/${MC_PKG}_${MC_VERSION}-${MC_RELEASE}.snap" ]]; then
|
&& [[ -f "$snap_dir/${MC_PKG}_${MC_VERSION}-${MC_RELEASE}.snap" ]]; then
|
||||||
echo "Snap package built successfully: $snap_dir/${MC_PKG}_${MC_VERSION}-${MC_RELEASE}.snap"
|
echo "Snap package built successfully: $snap_dir/${MC_PKG}_${MC_VERSION}-${MC_RELEASE}.snap"
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user