Skip to content

Commit

Permalink
Added AppStream file, using rDNS name, and simplified yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
it-is-final authored Nov 15, 2024
1 parent 463b8bf commit 0193a78
Show file tree
Hide file tree
Showing 3 changed files with 35 additions and 15 deletions.
30 changes: 16 additions & 14 deletions .github/workflows/ubuntu.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -40,34 +40,36 @@ jobs:
mkdir upload
mv build/Source/PokeFinder .
tar czf PokeFinder-linux.tar.gz PokeFinder
- uses: actions/upload-artifact@v4
with:
name: PokeFinder-linux
path: PokeFinder

- name: Fetch AppImage tools
run: |
sudo apt install appstream
sudo apt install libfuse2
wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage
wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage
chmod a+x linuxdeploy-*.AppImage
- name: Build AppImage
run: |
mkdir -p AppDir/usr/bin AppDir/usr/share/applications \
AppDir/usr/share/icons/hicolor/16x16/apps \
AppDir/usr/share/icons/hicolor/24x24/apps \
AppDir/usr/share/icons/hicolor/32x32/apps \
AppDir/usr/share/icons/hicolor/48x48/apps \
AppDir/usr/share/icons/hicolor/256x256/apps
cp PokeFinder AppDir/usr/bin/
cp Source/Form/PokeFinder.desktop AppDir/usr/share/applications/
cp Source/Form/Images/Icon/pokefinder_16x16.png AppDir/usr/share/icons/hicolor/16x16/apps/pokefinder.png
cp Source/Form/Images/Icon/pokefinder_24x24.png AppDir/usr/share/icons/hicolor/24x24/apps/pokefinder.png
cp Source/Form/Images/Icon/pokefinder_32x32.png AppDir/usr/share/icons/hicolor/32x32/apps/pokefinder.png
cp Source/Form/Images/Icon/pokefinder_48x48.png AppDir/usr/share/icons/hicolor/48x48/apps/pokefinder.png
cp Source/Form/Images/Icon/pokefinder_256x256.png AppDir/usr/share/icons/hicolor/256x256/apps/pokefinder.png
QMAKE=$QT_ROOT_DIR/bin/qmake ./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin qt --output appimage
export QMAKE=$QT_ROOT_DIR/bin/qmake
./linuxdeploy-x86_64.AppImage --appdir AppDir --plugin qt \
-e PokeFinder \
-d Source/Form/io.github.admiral_fish.pokefinder.desktop \
-i Source/Form/Images/Icon/pokefinder_16x16.png \
-i Source/Form/Images/Icon/pokefinder_24x24.png \
-i Source/Form/Images/Icon/pokefinder_32x32.png \
-i Source/Form/Images/Icon/pokefinder_48x48.png \
-i Source/Form/Images/Icon/pokefinder_256x256.png \
--icon-filename io.github.admiral_fish.pokefinder
mkdir AppDir/usr/share/metainfo
cp Source/Form/io.github.admiral_fish.pokefinder.appdata.xml AppDir/usr/share/metainfo/
./linuxdeploy-x86_64.AppImage --appdir AppDir --output appimage
- uses: actions/upload-artifact@v4
with:
name: PokeFinder-linux-appimage
Expand Down
18 changes: 18 additions & 0 deletions Source/Form/io.github.admiral_fish.pokefinder.appdata.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>io.github.admiral_fish.pokefinder</id>

<name>PokéFinder</name>
<summary>Cross platform Pokémon RNG tool </summary>

<metadata_license>CC-BY-SA-4.0</metadata_license>
<project_license>GPL-3.0-or-later</project_license>

<description>
<p>
This will be a RNG Tool for all main Pokémon games generations 3-8. It currently supports generations 3/4 and parts of generation 5/8.
</p>
</description>

<launchable type="desktop-id">io.github.admiral_fish.pokefinder.desktop</launchable>
</component>
Original file line number Diff line number Diff line change
Expand Up @@ -5,5 +5,5 @@ Exec=PokeFinder %f
Type=Application
Categories=Game;Utility;
Terminal=false
Icon=pokefinder
Icon=io.github.admiral_fish.pokefinder
Keywords=pokemon;RNG;tool;

0 comments on commit 0193a78

Please sign in to comment.