refactor: Flatpak update (#1465)

* refactor: updating flatpak files based on new changes

[skip ci]
This commit is contained in:
Dimitris Panokostas 2024-10-09 16:24:47 +02:00 committed by GitHub
parent 270490da7d
commit 7882b2c8fc
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
4 changed files with 36 additions and 38 deletions

Binary file not shown.

Before

Width:  |  Height:  |  Size: 42 KiB

View File

@ -1,13 +1,33 @@
[Desktop Entry]
Version=1.0
Type=Application
Name=Amiberry
Comment=An Amiga emulator for Linux
Categories=Game;Emulator;
# The type of the Desktop Entry, usually Application
Type = Application
Icon=amiberry
Exec=amiberry.sh
Terminal=false
# The version of the Desktop Entry specification to which this file complies
Version = 1.0
Keywords=emulator;raspberry-pi;rpi;emulation;amiga;amiga-emulator;
# The name of the application
Name = Amiberry
GenericName = Amiga Emulator
# A comment which can/will be used as a tooltip
Comment = Optimized Amiga Emulator
# The executable of the application, possibly with arguments
Exec = /usr/bin/amiberry %f
TryExec = /usr/bin/amiberry
# The name of the icon that will be used to display this entry
Icon = com.blitterstudio.Amiberry
# Describes whether this application needs to be run in a terminal or not
Terminal = false
# Describes the categories in which this entry should be shown
Categories = Game;Emulator;
MimeType=application/x-amiga-disk-image;application/x-cue;application/octet-stream;
# Describes the encoding for the desktop entry
Encoding=UTF-8

View File

@ -25,12 +25,16 @@
</supports>
<description>
<p>Amiberry is an optimized Amiga emulator for Linux (ARM, ARM64 and x86-64).</p>
<p>Amiberry is an optimized multi-platform Amiga emulator (ARM, ARM64, x86-64 and RISC-V).</p>
<p>It is based on the latest WinUAE, with several unique features on top of it,
like a WHDLoad booter, custom controls, Host-Run functionality and more.</p>
</description>
<screenshots>
<screenshot type="default">
<image>https://github.com/user-attachments/assets/79586083-be34-4002-a19a-dbed7582d1d0</image>
<caption>Amiberry running AmiKit</caption>
</screenshot>
<screenshot>
<image>https://user-images.githubusercontent.com/3877365/282777854-399ca178-18a1-4e1a-ab7b-9163d5835b51.png</image>
<caption>Amiberry GUI (Quickstart panel)</caption>
</screenshot>

View File

@ -2,9 +2,8 @@ app-id: com.blitterstudio.amiberry
runtime: org.freedesktop.Platform
runtime-version: "23.08"
sdk: org.freedesktop.Sdk
command: amiberry.sh
command: amiberry
rename-icon: amiberry
copy-icon: true
finish-args:
- --device=all
# X11 + XShm access
@ -71,38 +70,13 @@ modules:
- name: amiberry
buildsystem: cmake-ninja
config-opts:
- -DCMAKE_BUILD_TYPE=Release
builddir: true
post-install:
- install -Dp -m 755 amiberry /app/bin/amiberry
- install -D -m644 -t /app/share/applications/ flatpak/${FLATPAK_ID}.desktop
- install -D -m644 -t /app/share/metainfo/ flatpak/${FLATPAK_ID}.metainfo.xml
- install -D -m755 -t /app/bin/ ./amiberry.sh
- install -Dm644 flatpak/256x256.png /app/share/icons/hicolor/256x256/apps/amiberry.png
- mkdir -p /app/data
- cp -R abr /app/data
- cp -R cdroms /app/data
- cp -R conf /app/data
- cp -R controllers /app/data
- cp -R data /app/data
- cp -R floppies /app/data
- cp -R harddrives /app/data
- cp -R inputrecordings /app/data
- cp -R kickstarts /app/data
- cp -R lha /app/data
- cp -R nvram /app/data
- cp -R plugins /app/data
- cp -R savestates /app/data
- cp -R screenshots /app/data
- cp -R whdboot /app/data
sources:
- type: git
url: https://github.com/BlitterStudio/amiberry
tag: flatpak-preview
commit: 730906a44483d922b2db3c7642c61b675543a70f
- type: script
dest-filename: amiberry.sh
commands:
- "if [ ! -e \"$XDG_DATA_HOME/amiberry/data\" ]; then mkdir -p \"$XDG_DATA_HOME/amiberry\"; cp -R /app/data/* \"$XDG_DATA_HOME/amiberry\"; fi; exec /app/bin/amiberry"