From c81d262d79b311645090071247f8b2d54b01aab7 Mon Sep 17 00:00:00 2001 From: bryan Date: Tue, 15 Apr 2025 19:55:10 -0400 Subject: [PATCH] Switch pack to snap --- installJRMC | 5 +---- 1 file changed, 1 insertion(+), 4 deletions(-) diff --git a/installJRMC b/installJRMC index 6404b96..673c30f 100755 --- a/installJRMC +++ b/installJRMC @@ -1130,9 +1130,6 @@ install_mc_snap() { - removable-media EOF - echo "snapcraft.yaml created at $snap_yaml" - echo "Building snap package..." - # Be careful with snapcraft container paths # The container does not respect the --workdir # Also has incompatible --entrypoint so need to override manually @@ -1141,7 +1138,7 @@ install_mc_snap() { -w /build \ --entrypoint "" \ 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 echo "Snap package built successfully: $snap_dir/${MC_PKG}_${MC_VERSION}-${MC_RELEASE}.snap" else