~hristoast/ares-appimage

1bc1e961b9c81cb2fb3fb3f9ba9e0cdbc837d5bc — Hristos N. Triantafillou 1 year, 8 months ago b9b6ab5
Add AppStream data
2 files changed, 27 insertions(+), 4 deletions(-)

M Dockerfile
M make-appimage.sh
M Dockerfile => Dockerfile +1 -1
@@ 6,7 6,7 @@ ENV DEBIAN_FRONTEND=noninteractive
RUN apt-get update && \
    apt-get upgrade -y && \
	apt-get install -y \
    fuse git make g++ pkg-config libgtk2.0-dev libcanberra-gtk-module libgl-dev libasound2-dev libpulse-dev libsdl2-dev
    appstream fuse git make g++ pkg-config libgtk2.0-dev libcanberra-gtk-module libgl-dev libasound2-dev libpulse-dev libsdl2-dev

# Cleanup
RUN apt-get clean autoclean && \

M make-appimage.sh => make-appimage.sh +26 -3
@@ 1,5 1,5 @@
#!/usr/bin/env bash
set -ex
set -x
export VERSION="${ares_version}"

# Create a patched linuxdeploy with a newer patchelf


@@ 9,14 9,37 @@ OUTPUT=linuxdeploy-patchd.AppImage ./linuxdeploy-x86_64.AppImage --appdir squash

# Prepare the AppDir
mkdir -p /AppDir/usr/bin
mkdir -p /AppDir/usr/share/metainfo
cp /src/desktop-ui/out/ares /AppDir/usr/bin/
cat > /AppDir/usr/share/metainfo/net.ares.emu.appdata.xml <<EOF
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
	<id>net.ares.emu</id>
	<metadata_license>MIT</metadata_license>
	<project_license>ISC</project_license>
	<name>ares</name>
	<summary>ares is a cross-platform, open source, multi-system emulator, focusing on accuracy and preservation</summary>
	<description>
		<p>Multi System Emulator: ares is a cross-platform, open source, multi-system emulator, focusing on accuracy and preservation.</p>
	</description>
	<launchable type="desktop-id">net.ares.emu.desktop</launchable>
	<url type="homepage">https://ares-emu.net/</url>
	<provides>
		<id>net.ares.emu</id>
	</provides>
</component>
EOF

mv /src/desktop-ui/resource/ares.desktop /src/desktop-ui/resource/net.ares.emu.desktop

# Create the AppImage
/linuxdeploy-patchd.AppImage \
    --appdir=/AppDir --output=appimage \
    --desktop-file=/src/desktop-ui/resource/ares.desktop \
    --desktop-file=/src/desktop-ui/resource/net.ares.emu.desktop \
    --deploy-deps-only=/AppDir/usr/bin \
    --icon-file=/src/desktop-ui/resource/ares.png \
    > linuxdeploy.log

# Copy stuff to the expected out dir
cp ares-${ares_version}-x86_64.AppImage linuxdeploy.log /mnt/
mv linuxdeploy.log /mnt/
mv ares-${ares_version}-x86_64.AppImage /mnt/