Added flatpak autobuild (#19)
This commit is contained in:
parent
aaa7c8ee75
commit
ce9d848388
32
.github/workflows/build.yml
vendored
32
.github/workflows/build.yml
vendored
|
@ -31,11 +31,27 @@ jobs:
|
||||||
image: bilelmoussaoui/flatpak-github-actions:gnome-44
|
image: bilelmoussaoui/flatpak-github-actions:gnome-44
|
||||||
options: --privileged
|
options: --privileged
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v2
|
- uses: actions/checkout@v4
|
||||||
with:
|
with:
|
||||||
fetch-depth: 0
|
fetch-depth: 0
|
||||||
submodules: true
|
submodules: true
|
||||||
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1
|
- run: flatpak repair --user
|
||||||
with:
|
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6.1
|
||||||
manifest-path: im.dino.Dino.json
|
with:
|
||||||
build-bundle: false
|
manifest-path: im.dino.Dino.json
|
||||||
|
build-bundle: true
|
||||||
|
- name: Git describe
|
||||||
|
if: ${{ github.ref_type == 'tag' }}
|
||||||
|
id: ghd
|
||||||
|
uses: proudust/gh-describe@v2
|
||||||
|
with:
|
||||||
|
default: ''
|
||||||
|
- name: Release Dino installer
|
||||||
|
if: ${{ github.ref_type == 'tag' }}
|
||||||
|
uses: svenstaro/upload-release-action@2.9.0
|
||||||
|
with:
|
||||||
|
repo_token: ${{ secrets.GITHUB_TOKEN }}
|
||||||
|
file: app.flatpak
|
||||||
|
asset_name: app.flatpak
|
||||||
|
tag: ${{ github.ref }}
|
||||||
|
release_name: Dino ${{ steps.ghd.outputs.describe }}
|
|
@ -45,7 +45,7 @@ build()
|
||||||
{
|
{
|
||||||
msg "Build commencing!"
|
msg "Build commencing!"
|
||||||
rm -rf $BUILD_TEMP_DIR
|
rm -rf $BUILD_TEMP_DIR
|
||||||
flatpak-builder $BUILD_TEMP_DIR "${APP_NAME}.json"
|
flatpak-builder --install-deps-from=flathub $BUILD_TEMP_DIR "${APP_NAME}.json"
|
||||||
flatpak build-export $BUILD_EXPORT_DIR $BUILD_TEMP_DIR
|
flatpak build-export $BUILD_EXPORT_DIR $BUILD_TEMP_DIR
|
||||||
flatpak build-bundle $BUILD_EXPORT_DIR $DIST_NAME $APP_NAME
|
flatpak build-bundle $BUILD_EXPORT_DIR $DIST_NAME $APP_NAME
|
||||||
msg "Flatpack bundle ready and saved to ${DIST_NAME}"
|
msg "Flatpack bundle ready and saved to ${DIST_NAME}"
|
||||||
|
|
Loading…
Reference in a new issue