Skip to content

Commit

Permalink
t
Browse files Browse the repository at this point in the history
  • Loading branch information
Npepperlinux committed Nov 5, 2024
1 parent bf842a0 commit 512b477
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 11 deletions.
3 changes: 2 additions & 1 deletion .github/workflows/snap_deploy.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
name: デプロイ(snap)
on:
workflow_dispatch:
push:
release:
types: [published]

Expand All @@ -14,7 +15,7 @@ jobs:
runs-on: ubuntu-latest
strategy:
matrix:
platform: [amd64, arm64]
platform: [amd64]
outputs:
snap: ${{ steps.snapcraft.outputs.snap }}
steps:
Expand Down
21 changes: 11 additions & 10 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,18 @@ parts:
flutter build linux --release --verbose --target lib/main.dart
cp -r build/linux/*/release/bundle/* $CRAFT_PART_INSTALL/
cleanup:
after: [miria] # Make this part run last; list all your other parts here
plugin: nil
build-snaps: [gnome-42-2204, gtk-common-themes, core22] # List all content-snaps you're using here
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/{}" \;
done
zenity:
after: [miria,zenity]
# Integrate custom dialogs in your snap - doc - snapcraft.io
# https://forum.snapcraft.io/t/integrate-custom-dialogs-in-your-snap/10825
plugin: nil
Expand All @@ -93,16 +104,6 @@ parts:
- usr/share/zenity/*
- usr/share/doc/*/copyright*

cleanup:
after: [miria, zenity] # Make this part run last; list all your other parts here
plugin: nil
build-snaps: [gnome-42-2204, gtk-common-themes, core22] # List all content-snaps you're using here
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/{}" \;
done
layout:
# Fix resource relocation problem of zenity part
/usr/share/zenity:
Expand Down

0 comments on commit 512b477

Please sign in to comment.