Skip to content

Commit

Permalink
flatpak: Improve Flatpak manifest
Browse files Browse the repository at this point in the history
- Move manifest to `build-aux`
- Combine src file
- Convert main manifest to json
  • Loading branch information
TheEvilSkeleton committed Dec 6, 2024
1 parent f5f2f88 commit acf9b8f
Show file tree
Hide file tree
Showing 9 changed files with 413 additions and 301 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/build_flatpak.yml
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ jobs:
name: "build-packages"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-44
image: bilelmoussaoui/flatpak-github-actions:gnome-nightly
options: --privileged
steps:
- uses: actions/checkout@v4
- uses: bilelmoussaoui/flatpak-github-actions/flatpak-builder@v6
with:
bundle: bottles.flatpak
manifest-path: com.usebottles.bottles.yml
manifest-path: build-aux/com.usebottles.bottles.json
cache-key: flatpak-builder-${{ github.sha }}
4 changes: 2 additions & 2 deletions .github/workflows/update-manifest.yml
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ on:

env:
PR_BRANCH: pr/ci-manifest/${{ github.ref_name }}
FEDC_ARGS: --update --require-important-update --commit-only --never-fork "bottles-repository/com.usebottles.bottles.yml"
FEDC_ARGS: --update --require-important-update --commit-only --never-fork "bottles-repository/build-aux/com.usebottles.bottles.json"
UPDATE_PYTHON: false

jobs:
Expand Down Expand Up @@ -69,7 +69,7 @@ jobs:
run: |
git checkout -B ${{ env.PR_BRANCH }}
git push -f --set-upstream origin ${{ env.PR_BRANCH }}
git diff ${{ github.ref_name }} --exit-code com.usebottles.bottles.yml
git diff ${{ github.ref_name }} --exit-code build-aux/com.usebottles.bottles.json
updated=$?
if [ $updated -ne 0 ] || [ "${{ env.UPDATE_PYTHON }}" = true ]; then
gh pr create --title ":robot:: Update manifest (important)" --body ":wrench: One or more modules marked as 'important' have been updated." --head ${{ env.PR_BRANCH }} --base ${{ github.ref_name }}
Expand Down
2 changes: 1 addition & 1 deletion CODING_GUIDE.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
#### Build & install

```bash
flatpak-builder --install --user --force-clean ./.flatpak-builder/out com.usebottles.bottles.yml
flatpak-builder --install --user --force-clean ./.flatpak-builder/out ./build-aux/com.usebottles.bottles.json
```

#### Run
Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,7 @@ There are two methods to build Bottles. The first and longer method is using `or

1. Install [`org.flatpak.Builder`](https://github.com/flathub/org.flatpak.Builder) from Flathub
1. Clone `https://github.com/bottlesdevs/Bottles.git` (or your fork)
1. Run `flatpak run org.flatpak.Builder --install --install-deps-from=flathub --default-branch=master --force-clean build-dir com.usebottles.bottles.yml` in the terminal from the root of the repository (use `--user` if necessary)
1. Run `flatpak run org.flatpak.Builder --install --install-deps-from=flathub --default-branch=master --force-clean build-dir build-aux/com.usebottles.bottles.json` in the terminal from the root of the repository (use `--user` if necessary)
1. Run `flatpak run com.usebottles.bottles//master` to launch it

### Meson
Expand Down
Loading

0 comments on commit acf9b8f

Please sign in to comment.