diff --git a/v2.6.3/harbor-portal/rockcraft.yaml b/v2.6.3/harbor-portal/rockcraft.yaml index 1238699..b3c0050 100644 --- a/v2.6.3/harbor-portal/rockcraft.yaml +++ b/v2.6.3/harbor-portal/rockcraft.yaml @@ -83,7 +83,11 @@ parts: cd "$OUTDIR" mkdir -p "$OUTDIR/dist" - npm install --unsafe-perm + nodecmd="npm install --unsafe-perm" + if [ "$CRAFT_TARGET_ARCH" == "arm64" ]; then + nodecmd="$nodecmd --ignore-scripts" + fi + $nodecmd npm run generate-build-timestamp node --max_old_space_size=2048 'node_modules/@angular/cli/bin/ng' build --configuration production