forked from meebey/smuxi
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
build,snap,CI: create a snap package
This commit also removes the Debian-unstable CI job since it was failing (due to meebeyGH-297). Had to change smuxi-frontend-gnome launcher script to bash in order for env var checks to work, because am not sure if this alternative works: https://stackoverflow.com/a/26317390/544947 Closes meebeyGH-297
- Loading branch information
Showing
6 changed files
with
177 additions
and
36 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,8 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
DEBIAN_FRONTEND=noninteractive apt install --yes \ | ||
intltool \ | ||
pkg-config \ | ||
libstfl-dev \ | ||
libgtk2.0-cil-dev |
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,14 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
sudo apt install -y snapd | ||
snap version | ||
|
||
# we can switch to a newer channel when we're ready to upgrade | ||
# to use SNAPCRAFT_STORE_CREDENTIALS instead of --with when pushing | ||
sudo snap install --classic snapcraft | ||
|
||
# workaround for GithubActionsCI+snapcraft, see https://forum.snapcraft.io/t/permissions-problem-using-snapcraft-in-azure-pipelines/13258/14?u=knocte | ||
sudo chown root:root / | ||
|
||
snapcraft --version |
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,13 @@ | ||
#!/usr/bin/env bash | ||
set -euxo pipefail | ||
|
||
sudo ./build/install-deps-ubuntu.sh | ||
|
||
# just in case this is a retry-run, we want to clean artifacts from previous try | ||
rm -rf ./staging | ||
|
||
./autogen.sh --prefix=`pwd`/staging "$@" | ||
make | ||
make install | ||
|
||
snapcraft --destructive-mode |
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,99 @@ | ||
name: smuxi | ||
base: core22 # the base snap is the execution environment for this snap | ||
version: '1.2.1' # just for humans, typically '1.2+git' or '1.3.2' | ||
summary: User-friendly and free IRC client for Linux/Windows/macOS based on GNOME/GTK+ # 79 char long summary | ||
description: | | ||
Smuxi is an irssi-inspired, flexible, user-friendly and | ||
cross-platform IRC client for sophisticated users, targeting the GNOME desktop. | ||
Smuxi is based on the client-server model: The core application (engine) can be | ||
placed onto a server which is connected to the Internet around-the-clock; one | ||
or more frontends then connect to the core. This way, the connection to IRC can | ||
be kept up even when all frontends have been closed. The combination of screen | ||
and irssi served as example for this architecture. | ||
Smuxi also supports the regular single application mode. This behaves like a | ||
typical IRC client; it doesn't need separate core management and utilizes a | ||
local engine that is used by the local frontend client. | ||
Smuxi's GNOME homepage: https://wiki.gnome.org/Apps/Smuxi | ||
license: GPL-2.0 | ||
icon: ./images/icon.svg | ||
|
||
# grade must be 'stable' (without the quotes) to release into candidate/stable channels | ||
grade: stable | ||
confinement: strict | ||
|
||
layout: | ||
/usr/share/.mono: | ||
symlink: $SNAP/etc/mono/certstore | ||
/usr/lib/cli: | ||
symlink: $SNAP/usr/lib/cli | ||
|
||
apps: | ||
smuxi: | ||
command: bin/desktop-launch $SNAP/bin/smuxi-frontend-gnome | ||
plugs: | ||
- network | ||
- desktop | ||
- desktop-legacy | ||
- wayland | ||
- unity7 | ||
|
||
parts: | ||
smuxi: | ||
plugin: dump | ||
source: ./staging | ||
stage-packages: | ||
- mono-devel | ||
- libgtk2.0-cil | ||
- liblog4net-cil-dev | ||
- libnini-cil-dev | ||
|
||
certs: | ||
plugin: dump | ||
source: /etc/mono | ||
organize: | ||
certstore: etc/mono/certstore | ||
|
||
gtk2: | ||
source: https://github.com/ubuntu/snapcraft-desktop-helpers.git | ||
source-subdir: gtk | ||
plugin: make | ||
make-parameters: ["FLAVOR=gtk2"] | ||
build-packages: | ||
- libgtk2.0-dev | ||
stage-packages: | ||
- libxkbcommon0 # XKB_CONFIG_ROOT | ||
- dmz-cursor-theme | ||
- light-themes | ||
- adwaita-icon-theme | ||
- gnome-themes-standard | ||
- shared-mime-info | ||
- libgtk2.0-0 | ||
- libgdk-pixbuf2.0-0 | ||
- libglib2.0-bin | ||
- libgtk2.0-bin | ||
- unity-gtk2-module | ||
- libappindicator1 | ||
- locales-all | ||
- ibus-gtk | ||
- libibus-1.0-5 | ||
|
||
plugs: | ||
gtk-2-engines: | ||
interface: content | ||
target: $SNAP/lib/gtk-2.0 | ||
default-provider: gtk2-common-themes | ||
gtk-2-themes: | ||
interface: content | ||
target: $SNAP/data-dir/themes | ||
default-provider: gtk-common-themes | ||
icon-themes: | ||
interface: content | ||
target: $SNAP/data-dir/icons | ||
default-provider: gtk-common-themes | ||
sound-themes: | ||
interface: content | ||
target: $SNAP/data-dir/sounds | ||
default-provider: gtk-common-themes |
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