Skip to content

Commit f029bfc

Browse files
authored
Build with Flatpak (#306)
* Build with Flatpak * Create ci.yml * Add sandbox holes * Filesystem perms back to docs * don't run tests * Drop inhibit hole * Fix custom mime
1 parent 302f378 commit f029bfc

19 files changed

+110
-37
lines changed

.github/ISSUE_TEMPLATE.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@
2525
<!--- Providing context helps us come up with a solution that is most useful in the real world -->
2626
<!--- If you have a terminal output you can share with us that would also be great! -->
2727

28-
<!--- To get debug messages: G_MESSAGES_DEBUG=all com.github.philip-scott.spice-up -->
28+
<!--- To get debug messages: G_MESSAGES_DEBUG=all com.github.philip_scott.spice-up -->
2929

3030
<!--- Sharing the .spice file where the problem is at will also be super helpful. -->
3131

.github/workflows/ci.yml

Lines changed: 35 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -8,32 +8,51 @@ on:
88
- synchronize
99

1010
jobs:
11-
build:
11+
flatpak:
12+
name: Flatpak
1213
runs-on: ubuntu-latest
1314

15+
strategy:
16+
matrix:
17+
arch: [x86_64, aarch64]
18+
# Don't fail the whole workflow if one architecture fails
19+
fail-fast: false
20+
1421
container:
15-
image: elementary/docker:unstable
22+
image: ghcr.io/elementary/flatpak-platform/runtime:6.1-${{ matrix.arch }}
23+
options: --privileged
1624

1725
steps:
18-
- uses: actions/checkout@v1
19-
- name: Install Dependencies
20-
run: |
21-
apt update
22-
apt install -y libgtk-3-dev libgranite-dev libjson-glib-dev libgudev-1.0-dev libevdev-dev libsoup2.4-dev meson valac
23-
- name: Build
24-
env:
25-
DESTDIR: out
26-
run: |
27-
meson build
28-
ninja -C build install
26+
- name: Checkout
27+
uses: actions/checkout@v2
28+
29+
- name: Set up QEMU for aarch64 emulation
30+
if: ${{ matrix.arch != 'x86_64' }}
31+
uses: docker/setup-qemu-action@v1
32+
with:
33+
platforms: arm64
34+
35+
- name: Build
36+
uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v4
37+
with:
38+
bundle: spice-up.flatpak
39+
manifest-path: com.github.philip_scott.spice-up.yml
40+
run-tests: false
41+
repository-name: appcenter
42+
repository-url: https://flatpak.elementary.io/repo.flatpakrepo
43+
cache-key: "flatpak-builder-${{ github.sha }}"
44+
arch: ${{ matrix.arch }}
2945

3046
lint:
47+
name: Lint
3148
runs-on: ubuntu-latest
3249

3350
container:
3451
image: valalang/lint
3552

3653
steps:
37-
- uses: actions/checkout@v1
38-
- name: Lint
39-
run: io.elementary.vala-lint -d .
54+
- name: Checkout
55+
uses: actions/checkout@v2
56+
57+
- name: Lint
58+
run: io.elementary.vala-lint -d .

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -84,5 +84,5 @@ make && sudo make all test install
8484

8585

8686
<p align="center">
87-
<img src="data/icons/128/com.github.philip-scott.spice-up.svg" alt="Spice-Up's Icon">
87+
<img src="data/icons/128/com.github.philip_scott.spice-up.svg" alt="Spice-Up's Icon">
8888
</p>
Lines changed: 63 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,63 @@
1+
app-id: com.github.philip_scott.spice-up
2+
3+
runtime: io.elementary.Platform
4+
runtime-version: '6.1'
5+
sdk: io.elementary.Sdk
6+
7+
command: com.github.philip_scott.spice-up
8+
9+
finish-args:
10+
- '--share=ipc'
11+
- '--socket=fallback-x11'
12+
- '--socket=wayland'
13+
14+
- '--device=all' # Required for Controllers
15+
- '--filesystem=xdg-documents' # Required for library
16+
17+
modules:
18+
- name: gudev
19+
config-opts:
20+
- '--disable-umockdev'
21+
- '--disable-gtk-doc'
22+
sources:
23+
- type: git
24+
url: https://gitlab.gnome.org/GNOME/libgudev.git
25+
tag: '234'
26+
27+
- name: libevdev
28+
buildsystem: meson
29+
config-opts:
30+
- -Dtests=disabled
31+
- -Ddocumentation=disabled
32+
cleanup:
33+
- /bin
34+
- /include
35+
- /lib/pkgconfig
36+
- /share
37+
sources:
38+
- type: archive
39+
url: https://www.freedesktop.org/software/libevdev/libevdev-1.12.0.tar.xz
40+
sha256: 2f729e3480695791f9482e8388bd723402b89f0eaf118057bbdea3cecee9b237
41+
x-checker-data:
42+
type: anitya
43+
project-id: 20540
44+
stable-only: true
45+
url-template: https://www.freedesktop.org/software/libevdev/libevdev-$version.tar.xz
46+
47+
- name: libsoup
48+
builddir: true
49+
buildsystem: meson
50+
config-opts:
51+
- "-Dtests=false"
52+
- "-Dvapi=disabled"
53+
- "-Dintrospection=disabled"
54+
sources:
55+
- type: archive
56+
url: https://gitlab.gnome.org/GNOME/libsoup/-/archive/2.68.2/libsoup-2.68.2.tar.gz
57+
sha256: a2a44f8b8eb5e145c5dff473f6d8c5b8f1addcf4e6f12223b4705c7fcc6c29b6
58+
59+
- name: spice-up
60+
buildsystem: meson
61+
sources:
62+
- type: dir
63+
path: .

data/com.github.philip-scott.spice-up.appdata.xml renamed to data/com.github.philip_scott.spice-up.appdata.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22
<!-- Copyright (c) 2016-2018 Felipe Escoto (https://github.com/Philip-Scott/Spice-up) -->
33
<component type="desktop">
4-
<id>com.github.philip-scott.spice-up</id>
4+
<id>com.github.philip_scott.spice-up</id>
55
<metadata_license>CC0-1.0</metadata_license>
66
<project_license>GPL-3.0+</project_license>
77
<name>Spice-Up</name>

data/com.github.philip-scott.spice-up.desktop renamed to data/com.github.philip_scott.spice-up.desktop

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,8 +5,8 @@ Comment[ca]=Assaoneu les vostres presentacions
55
Comment[es]=Dele vida a sus presentaciones
66
Comment[fr]=Épicer vos présentations
77
Comment[pt_BR]=Tempere os seus slides
8-
Exec=com.github.philip-scott.spice-up %u
9-
Icon=com.github.philip-scott.spice-up
8+
Exec=com.github.philip_scott.spice-up %u
9+
Icon=com.github.philip_scott.spice-up
1010
Terminal=false
1111
Type=Application
1212
StartupNotify=true

data/com.github.philip-scott.spice-up.mime.xml renamed to data/com.github.philip_scott.spice-up.mime.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<mime-info xmlns="http://www.freedesktop.org/standards/shared-mime-info">
33
<mime-type type="application/x-spiceup">
44
<comment>Spice-Up Presentation</comment>
5-
<icon name="application-x-spiceup"/>
5+
<icon name="com.github.philip_scott.spice-up"/>
66
<glob-deleteall/>
77
<glob pattern="*.spice"/>
88
</mime-type>
File renamed without changes.
File renamed without changes.
File renamed without changes.

0 commit comments

Comments
 (0)