Skip to content

Commit

Permalink
one more snap attempt
Browse files Browse the repository at this point in the history
  • Loading branch information
waozixyz committed Jul 22, 2024
1 parent 905f577 commit 127c4a0
Show file tree
Hide file tree
Showing 2 changed files with 33 additions and 13 deletions.
22 changes: 13 additions & 9 deletions .github/workflows/flutter_build_release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -233,17 +233,21 @@ jobs:
- name: Install Dependencies
run: flutter pub get

- name: Build Snap
uses: snapcore/action-build@v1
id: build
- name: Install Snapcraft
run: |
sudo snap install snapcraft --classic
echo "${{ secrets.SNAPCRAFT_LOGIN_FILE }}" | base64 --decode > snapcraft.login
snapcraft login --with snapcraft.login
rm snapcraft.login
- uses: snapcore/action-publish@v1
env:
SNAPCRAFT_STORE_CREDENTIALS: ${{ secrets.SNAPCRAFT_STORE_CREDENTIALS }}
with:
snap: ${{ steps.build.outputs.snap }}
release: ${{ startsWith(github.ref, 'refs/tags/') && 'stable' || 'beta' }}
- name: Build Snap
run: snapcraft --use-lxd

- name: Publish Snap
if: startsWith(github.ref, 'refs/tags/')
run: |
snapcraft push *.snap --release=${{ startsWith(github.ref, 'refs/tags/') && 'stable' || 'beta' }}
windows:
needs: cancel
name: Build Windows
Expand Down
24 changes: 20 additions & 4 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -10,21 +10,37 @@ icon: snap/gui/io.naox.InnerBreeze.png

apps:
inner-breeze:
command: inner_breeze
command: bin/inner_breeze
common-id: io.naox.InnerBreeze
extensions: [gnome]
plugs:
- network
- desktop
- wayland
- x11
- opengl
- audio-playback

parts:
inner-breeze:
source: .
plugin: flutter
flutter-target: lib/main.dart
source: .
flutter-target: lib/main.dart
build-packages:
- libgtk-3-dev
- libglu1-mesa-dev
stage-packages:
- libgtk-3-0
- libglib2.0-0
- libpango-1.0-0
- libcairo2
- libx11-6
- libgl1
- libglu1-mesa
parse-info: [metadata/io.naox.InnerBreeze.metainfo.xml]

metainfo:
source: .
plugin: dump
organize:
metainfo.xml: metadata/io.naox.InnerBreeze.metainfo.xml

0 comments on commit 127c4a0

Please sign in to comment.