Compare commits

...

1 Commits

Author SHA1 Message Date
Florian Rival
6bd607c09c [WIP] Add manifest to build a Flatpak for GDevelop 2022-03-27 20:32:46 +00:00
4 changed files with 135 additions and 0 deletions

View File

@@ -0,0 +1,2 @@
build-dir
.flatpak-builder

View File

@@ -0,0 +1,17 @@
# Flatpak for GDevelop
This is the Flatpak manifest and XML to build a Flatpak for GDevelop.
To build it from a clean Ubuntu based distro:
* `sudo apt install flatpak`
* `sudo apt-get install -y flatpak-builder`
* `sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo`
* `sudo flatpak install flathub org.freedesktop.Platform//21.08 org.freedesktop.Sdk//21.08`
* `sudo flatpak install flathub org.electronjs.Electron2.BaseApp//21.08`
* `flatpak-builder build-dir io.gdevelop.ide.yml`
To try installing it and running it:
* `flatpak-builder --user --install --force-clean build-dir io.gdevelop.ide.yml`
* `flatpak run io.gdevelop.ide`

View File

@@ -0,0 +1,52 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>io.gdevelop.ide</id>
<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license>
<name>gdevelop</name>
<summary>Free and Easy Game-Making App</summary>
<description>
<p>Make games with GDevelop, a no-code, open-source, free, and easy game-making app.</p>
</description>
<url type="homepage">https://gdevelop.io</url>
<url type="help">https://wiki.gdevelop.io/</url>
<url type="bugtracker">https://forum.gdevelop.io/</url>
<launchable type="desktop-id">io.gdevelop.ide.desktop</launchable>
<releases>
<release version="5.0.130" date="2022-03-28">
<description>
<ul>
<li>First release as a Flatpak</li>
</ul>
</description>
</release>
</releases>
<developer_name>GDevelop Team</developer_name>
<screenshots>
<screenshot type="default">
<image type="source">https://raw.githubusercontent.com/4ian/GDevelop/master/newIDE/GDevelop%20screenshot.png</image>
</screenshot>
</screenshots>
<content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">none</content_attribute>
<content_attribute id="violence-fantasy">none</content_attribute>
<content_attribute id="violence-realistic">none</content_attribute>
<content_attribute id="violence-bloodshed">none</content_attribute>
<content_attribute id="violence-sexual">none</content_attribute>
<content_attribute id="drugs-alcohol">none</content_attribute>
<content_attribute id="drugs-narcotics">none</content_attribute>
<content_attribute id="drugs-tobacco">none</content_attribute>
<content_attribute id="sex-nudity">none</content_attribute>
<content_attribute id="sex-themes">none</content_attribute>
<content_attribute id="language-profanity">none</content_attribute>
<content_attribute id="language-humor">none</content_attribute>
<content_attribute id="language-discrimination">none</content_attribute>
<content_attribute id="social-chat">none</content_attribute>
<content_attribute id="social-info">none</content_attribute>
<content_attribute id="social-audio">none</content_attribute>
<content_attribute id="social-location">none</content_attribute>
<content_attribute id="social-contacts">none</content_attribute>
<content_attribute id="money-purchasing">none</content_attribute>
<content_attribute id="money-gambling">none</content_attribute>
</content_rating>
</component>

View File

@@ -0,0 +1,64 @@
# This is the Flatpak manifest.
# To build it from a clean Ubuntu based distro:
# `sudo apt install flatpak`
# `sudo apt-get install -y flatpak-builder`
# `sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo`
# `sudo flatpak install flathub org.freedesktop.Platform//21.08 org.freedesktop.Sdk//21.08`
# `sudo flatpak install flathub org.electronjs.Electron2.BaseApp//21.08`
# `flatpak-builder build-dir io.gdevelop.ide.yml`
# `flatpak-builder --user --install --force-clean build-dir io.gdevelop.ide.yml`
app-id: io.gdevelop.ide
base: org.electronjs.Electron2.BaseApp
base-version: '21.08'
runtime: org.freedesktop.Platform
runtime-version: '21.08'
sdk: org.freedesktop.Sdk
command: run.sh
separate-locales: false
finish-args:
- --share=ipc
- --socket=wayland
- --socket=x11
- --socket=pulseaudio
- --share=network
- --device=all
- --filesystem=home
- --filesystem=xdg-run/dconf
- --filesystem=~/.config/dconf:ro
- --filesystem=xdg-run/pipewire-0
- --env=DCONF_USER_CONFIG_DIR=.config/dconf
- --talk-name=ca.desrt.dconf
- --talk-name=org.kde.StatusNotifierWatcher
- --talk-name=org.freedesktop.Notifications
- --talk-name=org.gtk.Notifications
- --env=XDG_CURRENT_DESKTOP=Unity
modules:
- name: gdevelop-ide
buildsystem: simple
sources:
- type: file
url: https://gdevelop-releases.s3.amazonaws.com/master/latest/gdevelop_5.0.130_amd64.deb
sha256: 2111869f9442fd7a20bf3bd85bfbf8513ccb013194c19ae06b221c613def82ef
- type: file
path: io.gdevelop.ide.appdata.xml
- type: script
dest-filename: run.sh
commands:
- zypak-wrapper.sh /app/gdevelop/gdevelop "$@"
build-commands:
- ar x gdevelop_5.0.130_amd64.deb
- tar -xf data.tar.xz
- cp -r ./opt/* /app/
- cp -r ./usr/share/* /app/share/
- ln -s /app/gdevelop/gdevelop /app/bin
- install -Dm644 io.gdevelop.ide.appdata.xml -t /app/share/metainfo
- mv ${FLATPAK_DEST}/share/applications/gdevelop.desktop ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- desktop-file-edit --set-key Exec --set-value "run.sh gdevelop %U" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- desktop-file-edit --set-key Icon --set-value "io.gdevelop.ide" ${FLATPAK_DEST}/share/applications/${FLATPAK_ID}.desktop
- rm -rf ${FLATPAK_DEST}/share/icons/hicolor/1024x1024/
- find ${FLATPAK_DEST}/share/icons -type f -name *.png -exec rename gdevelop.png ${FLATPAK_ID}.png '{}' \;
- install -Dm755 -t /app/bin/ run.sh