Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add basic flatpak support #69

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Add icon and desktop file in flatpak manifest build
agorgl committed Nov 5, 2024
commit 1abb9e821733c4cc6dc67de3747c9a4f93a7e35b
11 changes: 11 additions & 0 deletions flatpak/audio.mod.mod-desktop.yaml
Original file line number Diff line number Diff line change
@@ -24,13 +24,19 @@ finish-args:
- --device=all
# Documents (data folder) access
- --filesystem=xdg-documents/MOD Desktop:create
rename-desktop-file: mod-desktop.desktop
rename-icon: mod-desktop
modules:
- name: mod-desktop
buildsystem: simple
build-commands:
- mkdir -p ${FLATPAK_DEST}/opt
- mv mod-desktop ${FLATPAK_DEST}/opt/.
- install -Dm755 mod-desktop.sh ${FLATPAK_DEST}/bin/mod-desktop
- install -Dm644 mod-desktop-git/res/mod-logo.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/mod-desktop.svg
- install -Dm644 mod-desktop-git/utils/linux/mod-desktop.desktop ${FLATPAK_DEST}/share/applications/mod-desktop.desktop
- desktop-file-edit --set-key Exec --set-value "mod-desktop" ${FLATPAK_DEST}/share/applications/mod-desktop.desktop
- desktop-file-edit --set-key Icon --set-value "mod-desktop" ${FLATPAK_DEST}/share/applications/mod-desktop.desktop
sources:
- type: archive
url: https://github.com/mod-audio/mod-desktop/releases/download/0.0.12/mod-desktop-0.0.12-linux-x86_64.tar.xz
@@ -42,6 +48,11 @@ modules:
url: https://api.github.com/repos/ibancg/lingot/releases
version-query: '.[].tag_name | sub("^v"; "")'
url-query: '.[].assets.[] | select(.name=="mod-desktop-" + $version + "-linux-x86_64.tar.xz") | .browser_download_url'
- type: git
url: https://github.com/mod-audio/mod-desktop.git
commit: 86bcaa3daa854440f707b15ad10a1aaaff4b54b1
tag: 0.0.12
dest: mod-desktop-git
- type: script
dest-filename: mod-desktop.sh
commands: