-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add shared modules to use libcanberra in Flatpak
- Loading branch information
Showing
6 changed files
with
32 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -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 | ||
|
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 |
---|---|---|
|
@@ -9,3 +9,4 @@ gschemas.compiled | |
windows-installer/win64-dist/ | ||
*.exe | ||
*.dll | ||
.flatpak-builder |
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,3 @@ | ||
[submodule "shared-modules"] | ||
path = shared-modules | ||
url = https://github.com/flathub/shared-modules.git |
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,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 |
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
Submodule shared-modules
added at
d02299