-
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
2 changed files
with
64 additions
and
5 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,60 @@ | ||
name: fedistar | ||
base: core22 | ||
version: '1.10.0' | ||
summary: Multi-column Fediverse client for desktop. | ||
description: | | ||
Multi-column Fediverse client for desktop. Supporting Mastodon, Pleroma, Friendica, Gotosocial, and Firefish | ||
grade: stable | ||
confinement: strict | ||
|
||
layout: | ||
/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/webkit2gtk-4.1: | ||
bind: $SNAP/usr/lib/$SNAPCRAFT_ARCH_TRIPLET/webkit2gtk-4.1 | ||
|
||
apps: | ||
fedistar: | ||
command: usr/bin/fedistar | ||
desktop: usr/share/applications/fedistar.desktop | ||
extensions: [gnome] | ||
#plugs: | ||
# - network | ||
# Add whatever plugs you need here, see https://snapcraft.io/docs/snapcraft-interfaces for more info. | ||
# The gnome extension already includes [ desktop, desktop-legacy, gsettings, opengl, wayland, x11, mount-observe, calendar-service ] | ||
|
||
package-repositories: | ||
- type: apt | ||
components: [main] | ||
suites: [noble] | ||
key-id: 78E1918602959B9C59103100F1831DDAFC42E99D | ||
url: http://ppa.launchpad.net/snappy-dev/snapcraft-daily/ubuntu | ||
|
||
parts: | ||
build-app: | ||
plugin: dump | ||
build-snaps: | ||
- node/20/stable | ||
- rustup/latest/stable | ||
build-packages: | ||
- libwebkit2gtk-4.1-dev | ||
- build-essential | ||
- curl | ||
- wget | ||
- file | ||
- libxdo-dev | ||
- libssl-dev | ||
- libayatana-appindicator3-dev | ||
- librsvg2-dev | ||
- dpkg | ||
stage-packages: | ||
- libwebkit2gtk-4.1-0 | ||
- libayatana-appindicator3-1 | ||
source: . | ||
override-build: | | ||
set -eu | ||
rustup default stable | ||
npm install -g pnpm | ||
pnpm install | ||
pnpm tauri build | ||
dpkg -x src-tauri/target/release/bundle/deb/*.deb $SNAPCRAFT_PART_INSTALL/ | ||
sed -i -e "s|Icon=fedistar|Icon=/usr/share/icons/hicolor/32x32/apps/fedistar.png|g" $SNAPCRAFT_PART_INSTALL/usr/share/applications/fedistar.desktop |