Skip to content

Commit

Permalink
Manage .desktop .metainfo.xml and icon upstream
Browse files Browse the repository at this point in the history
  • Loading branch information
pietrygamat committed May 12, 2024
1 parent b6c70d3 commit 9d5dc71
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 1 deletion.
7 changes: 6 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -43,14 +43,19 @@ compileJava {
}

jlink {
options = ['--strip-debug', '--compress', '2', '--no-header-files', '--no-man-pages']
options = ['--strip-debug', '--no-header-files', '--no-man-pages']
addExtraDependencies('org.slf4j')
launcher {
name = 'Kulki'
}

jpackage {
skipInstaller = true
icon = 'flatpak/Kulki.png'
imageOptions += [
'--app-content', 'flatpak/Kulki.desktop',
'--app-content', 'flatpak/Kulki.metainfo.xml'
]
}

}
11 changes: 11 additions & 0 deletions flatpak/Kulki.desktop
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
[Desktop Entry]
Version=1.0
Type=Application

Name=Kulki
Comment=Simple logic game of matching marbles
Categories=Game;LogicGame;

Icon=net.jockx.Kulki
Exec=Kulki
Terminal=false
47 changes: 47 additions & 0 deletions flatpak/Kulki.metainfo.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop-application">
<id>net.jockx.Kulki</id>

<name>Kulki</name>
<summary>A simple game of matching marbles</summary>

<metadata_license>CC0-1.0</metadata_license>
<project_license>MIT</project_license>

<developer id="net.jockx">
<name>Mateusz Pietryga</name>
</developer>

<supports>
<control>pointing</control>
<control>keyboard</control>
</supports>
<categories>
<category>Game</category>
</categories>

<description>
<p>
Move marbles around the board and try to match the same colors until you inevitably run out of space or get
bored.
</p>
</description>

<screenshots>
<screenshot type="default">
<image>https://kulki.jockx.net/img/screenshot.png</image>
</screenshot>
</screenshots>

<releases>
<release version="1.0.0" date="2024-05-11"></release>
</releases>

<content_rating type="oars-1.1" />

<url type="homepage">https://kulki.jockx.net/</url>
<url type="vcs-browser">https://github.com/jockx-net/kulki.git</url>


<launchable type="desktop-id">net.jockx.Kulki.desktop</launchable>
</component>
Binary file added flatpak/Kulki.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 9d5dc71

Please sign in to comment.