Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

add shared modules to use libcanberra in Flatpak #4

Merged
merged 2 commits into from
Mar 15, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ jobs:
- uses: actions/checkout@v2
with:
fetch-depth: 0
submodules: true
- uses: flatpak/flatpak-github-actions/[email protected]
with:
manifest-path: im.dino.Dino.json
Expand Down
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,4 @@ gschemas.compiled
windows-installer/win64-dist/
*.exe
*.dll
.flatpak-builder
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "shared-modules"]
path = shared-modules
url = https://github.com/flathub/shared-modules.git
25 changes: 25 additions & 0 deletions build-flatpack.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
#!/bin/bash
set -e

getFlatpackDependencies(){
flatpak remote-add --if-not-exists flathub https://dl.flathub.org/repo/flathub.flatpakrepo
flatpak install flathub org.gnome.Sdk//44
flatpak install flathub org.gnome.Platform//44
}

prepareModules(){
git submodule init
git submodule update
}

build(){
FP_TEMP_BUILD_DIR=$(mktemp -d)
FP_OUTDIR="builds"
flatpak-builder ${FP_TEMP_BUILD_DIR} im.dino.Dino.json
flatpak build-export $FP_OUTDIR $FP_TEMP_BUILD_DIR
flatpak build-bundle $FP_OUTDIR dino.flatpak
}

getFlatpackDependencies
prepareModules
build
1 change: 1 addition & 0 deletions im.dino.Dino.json
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,7 @@
"--talk-name=org.freedesktop.Notifications"
],
"modules": [
"shared-modules/libcanberra/libcanberra.json",
{
"name": "libsignal-protocol-c",
"buildsystem": "cmake-ninja",
Expand Down
1 change: 1 addition & 0 deletions shared-modules
Submodule shared-modules added at d02299
Loading