Skip to content

Commit

Permalink
wip: flatpak
Browse files Browse the repository at this point in the history
  • Loading branch information
Adis Durakovic committed Mar 24, 2024
1 parent 24d4e40 commit 920e756
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ run-name: ${{ github.ref_name }} - Building Flatpak
on:
push:
tags:
- "*"
- "flatpak"
jobs:
flatpak:
name: "Flatpak"
Expand All @@ -14,7 +14,7 @@ jobs:
steps:
- uses: actions/checkout@v4
with:
submodules: 'true'
submodules: 'recursive'
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
manifest-path: packaging/flatpak/io.github.ad_on_is.Resticity.yml
Expand Down
9 changes: 6 additions & 3 deletions packaging/flatpak/io.github.ad_on_is.Resticity.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,8 @@ runtime-version: '45'
sdk: org.gnome.Sdk




command: resticity
finish-args:
- --share=ipc # Share IPC namespace with the host (necessary for X11).
Expand All @@ -27,10 +29,10 @@ build-options:


modules:
- shared-modules/libappindicator/libappindicator-gtk3-12.10.json
# - shared-modules/libappindicator/libappindicator-gtk3-12.10.json
# - shared-modules/libsoup/libsoup-2.4.json
# - ./unifdef.yaml
- ./webkit2.yaml
# - ./webkit2.yaml
# - ./restic.yaml
# - ./rclone.yaml

Expand All @@ -43,7 +45,8 @@ modules:
- name: resticity
buildsystem: simple
build-commands:
- PATH=$PATH:$GOROOT/bin $GOBIN/wails build -s -webview2 embed
- install -Dm00755 packaging/flatpak/lib/* $FLATPAK_DEST/lib/
- PATH=$PATH:$GOROOT/bin $GOBIN/wails build -s
- install -Dm00755 build/bin/resticity $FLATPAK_DEST/bin/resticity
- install -Dm00644 packaging/$FLATPAK_ID.png $FLATPAK_DEST/share/icons/hicolor/256x256/apps/$FLATPAK_ID.png
- install -Dm00644 packaging/$FLATPAK_ID.desktop $FLATPAK_DEST/share/applications/$FLATPAK_ID.desktop
Expand Down
1 change: 1 addition & 0 deletions packaging/flatpak/webkit2.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ sources:
version-pattern: LATEST-STABLE-(\d[\.\d]+\d)
url-template: https://webkitgtk.org/releases/webkitgtk-$version.tar.xz
buildsystem: cmake-ninja

config-opts:
- -DPORT=GTK
- -DCMAKE_BUILD_TYPE=RelWithDebInfo
Expand Down

0 comments on commit 920e756

Please sign in to comment.