Add shared modules to use libcanberra in Flatpak
This commit is contained in:
parent
78d8dabf39
commit
1612ee7472
1
.github/workflows/build.yml
vendored
1
.github/workflows/build.yml
vendored
|
@ -34,6 +34,7 @@ jobs:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v2
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
|
submodules: true
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1
|
||||||
with:
|
with:
|
||||||
manifest-path: im.dino.Dino.json
|
manifest-path: im.dino.Dino.json
|
||||||
|
|
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -9,3 +9,4 @@ gschemas.compiled
|
||||||
windows-installer/win64-dist/
|
windows-installer/win64-dist/
|
||||||
*.exe
|
*.exe
|
||||||
*.dll
|
*.dll
|
||||||
|
.flatpak-builder
|
3
.gitmodules
vendored
Normal file
3
.gitmodules
vendored
Normal file
|
@ -0,0 +1,3 @@
|
||||||
|
[submodule "shared-modules"]
|
||||||
|
path = shared-modules
|
||||||
|
url = https://github.com/flathub/shared-modules.git
|
25
build-flatpack.sh
Normal file
25
build-flatpack.sh
Normal file
|
@ -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
|
|
@ -16,6 +16,7 @@
|
||||||
"--talk-name=org.freedesktop.Notifications"
|
"--talk-name=org.freedesktop.Notifications"
|
||||||
],
|
],
|
||||||
"modules": [
|
"modules": [
|
||||||
|
"shared-modules/libcanberra/libcanberra.json",
|
||||||
{
|
{
|
||||||
"name": "libsignal-protocol-c",
|
"name": "libsignal-protocol-c",
|
||||||
"buildsystem": "cmake-ninja",
|
"buildsystem": "cmake-ninja",
|
||||||
|
|
1
shared-modules
Submodule
1
shared-modules
Submodule
|
@ -0,0 +1 @@
|
||||||
|
Subproject commit d0229951ac23967c4f5697bd7b5c1bd7e641b8c3
|
Loading…
Reference in a new issue