Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: add snap packaging #12

Merged
merged 1 commit into from
Jan 10, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
16 changes: 16 additions & 0 deletions .github/workflows/snap.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Snap

on:
push: {}
pull_request: {}
workflow_dispatch: {}

jobs:
build:
runs-on: ubuntu-24.04
steps:
- uses: actions/checkout@v4
with:
fetch-depth: 0
fetch-tags: true
- uses: snapcore/action-build@v1
9 changes: 9 additions & 0 deletions snap/gui/nebuchadnezzar.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
[Desktop Entry]
Type=Application
Name=Nebuchadnezzar
Comment=Matrix Client
Exec=nebuchadnezzar %U
Icon=${SNAP}/meta/gui/nebuchadnezzar.png
Terminal=false
Categories=Network;InstantMessaging;Chat;
StartupWMClass=nebuchadnezzar
Binary file added snap/gui/nebuchadnezzar.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
42 changes: 42 additions & 0 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: nebuchadnezzar
base: core24
version: git
summary: Matrix Client
description: |
Matrix Client
grade: stable
confinement: strict
contact: https://github.com/ubuntu-flutter-community/nebuchadnezzar/issues
issues: https://github.com/ubuntu-flutter-community/nebuchadnezzar/issues
website: https://github.com/ubuntu-flutter-community/nebuchadnezzar
license: GPL-3.0+
icon: assets/nebuchadnezzar.png

platforms:
amd64:
arm64:

apps:
nebuchadnezzar:
command: nebuchadnezzar
extensions: [gnome]
plugs:
- home
- network

parts:
nebuchadnezzar:
source: .
plugin: flutter
flutter-target: lib/main.dart
build-packages:
- git

deps:
plugin: nil
stage-packages:
- libsecret-1-0
- libjsoncpp25
- libolm3
prime:
- usr/lib/*/*.so*
Loading