Skip to content

Commit

Permalink
Add snap packaging
Browse files Browse the repository at this point in the history
  • Loading branch information
Phqen1x committed Jan 10, 2025
1 parent 6b33d84 commit 874f23c
Show file tree
Hide file tree
Showing 4 changed files with 67 additions and 0 deletions.
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*

0 comments on commit 874f23c

Please sign in to comment.