Skip to content

Commit

Permalink
Add flatpak manifest and github action
Browse files Browse the repository at this point in the history
  • Loading branch information
bkneis committed Jan 15, 2025
1 parent fafc66a commit 9cbe3bf
Show file tree
Hide file tree
Showing 5 changed files with 60 additions and 1 deletion.
19 changes: 19 additions & 0 deletions .github/workflows/flatpak.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
name: Flatpak build
on:
push:
branches: [feature/flatpak-manifest]
pull_request:
jobs:
flatpak:
name: "Flatpak"
runs-on: ubuntu-latest
container:
image: bilelmoussaoui/flatpak-github-actions:gnome-46
options: --privileged
steps:
- uses: actions/checkout@v4
- uses: flatpak/flatpak-github-actions/flatpak-builder@v6
with:
bundle: devpod.flatpak
manifest-path: desk/src-tauri/flatpak.yml
cache-key: flatpak-builder-${{ github.sha }}
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,4 +9,6 @@ devpod-cli
main
profile.out
package-lock.json
tags
tags
desktop/src-tauri/.flatpak-builder/
desktop/src-tauri/repo/
3 changes: 3 additions & 0 deletions .gitmodules
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[submodule "desktop/src-tauri/shared-modules"]
path = desktop/src-tauri/shared-modules
url = https://github.com/flathub/shared-modules.git
34 changes: 34 additions & 0 deletions desktop/src-tauri/flatpak.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
id: org.loft.devpod

runtime: org.gnome.Platform
runtime-version: '46'
sdk: org.gnome.Sdk

command: DevPod
finish-args:
- --socket=wayland # Permission needed to show the window
- --socket=fallback-x11 # Permission needed to show the window
- --device=dri # OpenGL, not necessary for all projects
- --share=ipc

modules:
- shared-modules/libayatana-appindicator/libayatana-appindicator-gtk3.json
- name: binary
buildsystem: simple
sources:
- type: file
url: https://github.com/loft-sh/devpod/releases/download/v0.6.9%2Btest2/DevPod_0.6.9+test2_amd64.deb
sha256: 26ba2aad8a04dfaed6382ee3f6ac806f6c586dc7f276de3113cd3ebc98fa4834 # This is required if you are using a remote source
only-arches: [x86_64] #This source is only used on x86_64 Computers
# This path points to the binary file which was created in the .deb bundle.
# Tauri also creates a folder which corresponds to the content of the unpacked .deb.
build-commands:
- ar -x *.deb
- tar -xf data.tar.gz
- 'install -Dm755 usr/bin/devpod-cli /app/bin/devpod'
- 'install -Dm755 usr/bin/DevPod /app/bin/DevPod'
- install -Dm644 usr/share/applications/DevPod.desktop /app/share/applications/org.loft.devpod.desktop
- install -Dm644 usr/share/icons/hicolor/128x128/apps/DevPod.png /app/share/icons/hicolor/128x128/apps/org.loft.devpod.png
- install -Dm644 usr/share/icons/hicolor/32x32/apps/DevPod.png /app/share/icons/hicolor/32x32/apps/org.loft.devpod.png
- install -Dm644 usr/share/icons/hicolor/256x256@2/apps/DevPod.png /app/share/icons/hicolor/256x256@2/apps/org.loft.devpod.png
# - install -Dm644 org.loft.devpod.metainfo.xml /app/share/metainfo/org.loft.devpod.rosary.metainfo.xml
1 change: 1 addition & 0 deletions desktop/src-tauri/shared-modules
Submodule shared-modules added at f1ad05

0 comments on commit 9cbe3bf

Please sign in to comment.