Last active
March 20, 2023 00:50
-
-
Save joshua-stone/a8fab26c64f4589baaef912cf34108e9 to your computer and use it in GitHub Desktop.
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
# Build and run with the following: | |
# flatpak-builder --user --install _build --install-deps-from=flathub --force-clean com.github.muellerberndt.ladybug-love2d.yml | |
# flatpak run com.github.muellerberndt.ladybug-love2d | |
app-id: com.github.dulsi.ladybug-love2d | |
base: org.love2d.love2d | |
base-version: stable | |
runtime: org.freedesktop.Platform | |
runtime-version: '22.08' | |
sdk: org.freedesktop.Sdk | |
command: run-ladybug | |
finish-args: | |
- --socket=fallback-x11 | |
- --socket=wayland | |
- --device=all | |
- --socket=pulseaudio | |
- --share=ipc | |
- --share=network | |
modules: | |
- name: ladybug | |
buildsystem: simple | |
build-commands: | |
- mv run-ladybug ${FLATPAK_DEST}/bin/run-ladybug | |
- mkdir ${FLATPAK_DEST}/bin/ladybug | |
- mv * ${FLATPAK_DEST}/bin/ladybug | |
- mv ${FLATPAK_DEST}/share/applications/org.love2d.love2d.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop | |
- mv ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/org.love2d.love2d.svg ${FLATPAK_DEST}/share/icons/hicolor/scalable/apps/${FLATPAK_ID}.svg | |
- desktop-file-edit --set-key="Name" --set-value="Ladybug LÖVE" | |
--set-key="Comment" --set-value="A LÖVE port of the classic Arcade game Ladybug" | |
--set-key="Exec" --set-value="run-ladybug" | |
--set-icon="${FLATPAK_ID}" | |
${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop | |
sources: | |
- type: git | |
url: https://github.com/dulsi/ladybug-love2d | |
commit: b8ac5ed862f7dcbc3abc902742772ab424b0adf3 | |
- type: script | |
dest-filename: run-ladybug | |
commands: | |
- /app/bin/love /app/bin/ladybug |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment