Skip to content

Commit

Permalink
snap(arm64)のビルド時間短縮
Browse files Browse the repository at this point in the history
  • Loading branch information
4ster1sk committed Nov 6, 2024
1 parent b022d54 commit 0e50966
Showing 1 changed file with 6 additions and 1 deletion.
7 changes: 6 additions & 1 deletion snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -100,7 +100,12 @@ parts:
override-prime: |
set -eux
for snap in "gnome-42-2204" "gtk-common-themes" "core22"; do # List all content-snaps you're using here
cd "/snap/$snap/current" && find . -type f,l -exec rm -f "$SNAPCRAFT_PRIME/{}" "$SNAPCRAFT_PRIME/usr/{}" \;
cd "/snap/${snap}/current"
find . -type f,l ! -xtype d -print0 > "/tmp/${snap}.log"
cd "${SNAPCRAFT_PRIME}"
cat "/tmp/${snap}.log" | xargs -0 rm -f
cd "${SNAPCRAFT_PRIME}/usr"
cat "/tmp/${snap}.log" | xargs -0 rm -f
done
layout:
Expand Down

0 comments on commit 0e50966

Please sign in to comment.