Add necessary metadata for publication to Flathub.

parent f92458d6
......@@ -16,5 +16,6 @@ bin/
# For the flatpak
.flatpak-builder/
flatpak
flatpak-*/
flatpak-repo/
[package]
name = "gdiceroller"
name = "gDiceRoller"
version = "1.0.0"
authors = ["Leonora Tindall <nora@nora.codes>"]
edition = "2018"
......
......@@ -16,37 +16,45 @@ sharedir=$(DESTDIR)$(PREFIX)/share
.PHONY : clean clean-all install uninstall
# Build the application
target/release/gdiceroller : src
target/release/gDiceRoller : src
cargo build --release
# Install onto the system
install : target/release/gdiceroller
install : target/release/gDiceRoller
# Create the bindir, if need be
mkdir -p $(bindir)
# Install binary
$(INSTALL_PROGRAM) target/release/gdiceroller $(bindir)/codes.nora.gdiceroller
$(INSTALL_PROGRAM) target/release/gDiceRoller $(bindir)/codes.nora.gDiceRoller
# Create the sharedir and subfolders, if need be
mkdir -p $(sharedir)/icons/hicolor/scalable/apps/
mkdir -p $(sharedir)/icons/hicolor/64x64/apps/
mkdir -p $(sharedir)/icons/hicolor/128x128/apps/
mkdir -p $(sharedir)/applications/
# Install icon
$(INSTALL_DATA) data/codes.nora.gdiceroller.svg $(sharedir)/icons/hicolor/scalable/apps/codes.nora.gdiceroller.svg
# Install icons
$(INSTALL_DATA) data/codes.nora.gDiceRoller.svg $(sharedir)/icons/hicolor/scalable/apps/codes.nora.gDiceRoller.svg
$(INSTALL_DATA) data/codes.nora.gDiceRoller.64.png $(sharedir)/icons/hicolor/64x64/apps/codes.nora.gDiceRoller.svg
$(INSTALL_DATA) data/codes.nora.gDiceRoller.128.png $(sharedir)/icons/hicolor/128x128/apps/codes.nora.gDiceRoller.svg
touch $(sharedir)/icons/hicolor
# Install desktop file
$(INSTALL_DATA) data/codes.nora.gdiceroller.desktop $(sharedir)/applications/codes.nora.gdiceroller.desktop
$(INSTALL_DATA) data/codes.nora.gDiceRoller.desktop $(sharedir)/applications/codes.nora.gDiceRoller.desktop
# Remove an existing install from the system
uninstall :
# Remove the desktop file
rm -f $(sharedir)/applications/codes.nora.gdiceroller.desktop
rm -f $(sharedir)/applications/codes.nora.gDiceRoller.desktop
# Remove the icon
rm -f $(sharedir)/icons/hicolor/scalable/apps/codes.nora.gdiceroller.svg
rm -f $(sharedir)/icons/hicolor/scalable/apps/codes.nora.gDiceRoller.svg
# Remove the binary
rm -f $(bindir)/bin/codes.nora.gdiceroller
rm -f $(bindir)/bin/codes.nora.gDiceRoller
# Build a Flatpak package
flatpak : target/release/gdiceroller
flatpak-development: target/release/gDiceRoller
mkdir -p flatpak-development
flatpak-builder flatpak-nightly data/codes.nora.gDiceRoller-development.json
flatpak-release : target/release/gDiceRoller
mkdir -p flatpak
flatpak-builder flatpak data/codes.nora.gdiceroller.json
flatpak-builder flatpak data/codes.nora.gDiceRoller.json
# Remove all files
clean-all : clean
......@@ -54,6 +62,6 @@ clean-all : clean
# Remove supplemental build files
clean :
rm -rf flatpak/
rm -rf flatpak/ flatpak-development/
rm -rf snap/ *.snap
......@@ -33,7 +33,7 @@ flatpak install --user flathub org.freedesktop.Sdk.Extension.rust-stable//18.08
```
Then, simply `make flatpak`. The package is built into `flatpak/` so you can
`flatpak-build --run flatpak/ data/codes.nora.gdiceroller.json codes.nora.gdiceroller`
`flatpak-builder --run flatpak/ data/codes.nora.gdiceroller.json codes.nora.gdiceroller`
or publish to a repo.
## TODO
......
{
"app-id" : "codes.nora.gDiceRoller",
"runtime" : "org.gnome.Platform",
"runtime-version" : "3.32",
"sdk" : "org.gnome.Sdk",
"sdk-extensions" : [
"org.freedesktop.Sdk.Extension.rust-stable"
],
"command" : "codes.nora.gDiceRoller",
"tags" : [
"development"
],
"desktop-file-name-suffix" : " ☢️",
"finish-args" : [
"--socket=x11",
"--socket=wayland",
"--device=dri"
],
"build-options" : {
"append-path" : "/usr/lib/sdk/rust-stable/bin",
"build-args" : [
"--share=network"
],
"env" : {
"CARGO_HOME" : "/run/build/gRiceRoller/cargo",
"RUSTFLAGS" : "--error-format=short --remap-path-prefix =../",
"RUST_BACKTRACE" : "1"
}
},
"modules" : [
{
"name" : "gDiceRoller",
"buildsystem" : "simple",
"build-commands": [
"make",
"make install PREFIX=/app"
],
"sources" : [
{
"type" : "dir",
"path" : "../"
}
]
}
]
}
<?xml version="1.0" encoding="UTF-8"?>
<component type="desktop">
<id>sm.puri.hellorustgtk.desktop</id>
<name>HelloRustGTK</name>
<id>codes.nora.gDiceRoller</id>
<name>Dice Roller</name>
<project_license>GPL-3.0</project_license>
<metadata_license>CC0-1.0</metadata_license>
<developer_name>Thomas Markiewicz</developer_name>
<summary>Rust GTK flatpak template app</summary>
<url type="homepage">https://source.puri.sm/ThomasMarkiewicz/HelloRustGTK</url>
<developer_name>Leonora Tindall</developer_name>
<summary>Roll dice of many different shapes and sizes in all possible combinations.</summary>
<url type="homepage">https://gitlab.gnome.org/NoraCodes/gDiceRoller/</url>
<description>
<p>
Rust GTK flatpak template app
Roll dice of many different shapes and sizes in all possible combinations.
gDiceRoller provides several kinds of dice, from a d4 to a d100, which can be
rolled with a simple button press. In addition, users can enter their own
dice with any number of sides, and perform arbitrary arithemtic on their
results.
</p>
</description>
<!-- <screenshots>
<launchable type="desktop-id">codes.nora.gDiceRoller.desktop</launchable>
<categories>
<category>Game</category>
<category>GTK</category>
</categories>
<screenshots>
<screenshot type="default">
<image type="source">https://gitlab.gnome.org/World/fractal/raw/master/screenshots/fractal.png</image>
<image type="source">https://gitlab.gnome.org/NoraCodes/gDiceRoller/raw/master/data/screenshot.png</image>
</screenshot>
</screenshots> -->
</screenshots>
<releases>
<release version="0.1.0" date="2019-02-01"/>
<release version="1.1" date="2019-06-27"/>
</releases>
<update_contact>thomas.markiewicz@puri.sm</update_contact>
<update_contact>nora@nora.codes</update_contact>
<provides>
<binary>codes.nora.gDiceRoller</binary>
</provides>
<content_rating type="oars-1.0">
<content_attribute id="violence-cartoon">none</content_attribute>
<content_attribute id="violence-fantasy">none</content_attribute>
......
......@@ -2,8 +2,8 @@
Name=Dice Roller
GenericName=Dice Roller
Comment=Roll dice of many different shapes and sizes in all possible combinations.
Categories=Games
Icon=codes.nora.gdiceroller
Exec=codes.nora.gdiceroller
Categories=Game;GTK
Icon=codes.nora.gDiceRoller
Exec=codes.nora.gDiceRoller
Terminal=false
Type=Application
{
"app-id" : "codes.nora.gdiceroller",
"app-id" : "codes.nora.gDiceRoller",
"runtime" : "org.gnome.Platform",
"runtime-version" : "master",
"runtime-version" : "3.32",
"sdk" : "org.gnome.Sdk",
"sdk-extensions" : [
"org.freedesktop.Sdk.Extension.rust-stable"
],
"command" : "codes.nora.gdiceroller",
"tags" : [
"nightly"
],
"desktop-file-name-suffix" : " ☢️",
"command" : "codes.nora.gDiceRoller",
"tags" : [],
"desktop-file-name-suffix" : "",
"finish-args" : [
"--socket=x11",
"--socket=wayland",
"--socket=pulseaudio",
"--device=dri"
],
"build-options" : {
......@@ -23,14 +20,14 @@
"--share=network"
],
"env" : {
"CARGO_HOME" : "/run/build/gdiceroller/cargo",
"CARGO_HOME" : "/run/build/gRiceRoller/cargo",
"RUSTFLAGS" : "--error-format=short --remap-path-prefix =../",
"RUST_BACKTRACE" : "1"
}
},
"modules" : [
{
"name" : "gdiceroller",
"name" : "gDiceRoller",
"buildsystem" : "simple",
"build-commands": [
"make",
......@@ -39,7 +36,7 @@
"sources" : [
{
"type" : "git",
"url" : "https://gitlab.gnome.org/NoraCodes/gdiceroller.git"
"url" : "https://gitlab.gnome.org/NoraCodes/gDiceRoller.git"
}
]
}
......
......@@ -9,16 +9,16 @@
xmlns="http://www.w3.org/2000/svg"
xmlns:sodipodi="http://sodipodi.sourceforge.net/DTD/sodipodi-0.dtd"
xmlns:inkscape="http://www.inkscape.org/namespaces/inkscape"
width="128"
height="128"
viewBox="0 0 33.866666 33.866666"
width="512"
height="512"
viewBox="0 0 135.46666 135.46666"
version="1.1"
id="svg271"
inkscape:version="0.92.4 (5da689c313, 2019-01-14)"
sodipodi:docname="codes.nora.gdiceroller.svg"
inkscape:export-filename="/media/nora/Storage/repos/gitlab.gnome.org/NoraCodes/diceroller/data/codes.nora.gdiceroller.png"
inkscape:export-xdpi="96"
inkscape:export-ydpi="96">
sodipodi:docname="codes.nora.gDiceRoller.svg"
inkscape:export-xdpi="48.000004"
inkscape:export-ydpi="48.000004"
inkscape:export-filename="/media/nora/Storage/repos/gitlab.gnome.org/NoraCodes/diceroller/data/codes.nora.gDiceRoller.64.png">
<defs
id="defs265" />
<sodipodi:namedview
......@@ -28,9 +28,9 @@
borderopacity="1.0"
inkscape:pageopacity="0.0"
inkscape:pageshadow="2"
inkscape:zoom="3.959798"
inkscape:cx="44.650734"
inkscape:cy="34.934164"
inkscape:zoom="1.4"
inkscape:cx="192.53464"
inkscape:cy="276.67148"
inkscape:document-units="mm"
inkscape:current-layer="layer1"
showgrid="false"
......@@ -39,10 +39,23 @@
inkscape:window-x="0"
inkscape:window-y="28"
inkscape:window-maximized="1"
units="px">
units="px"
fit-margin-top="0"
fit-margin-left="0"
fit-margin-right="0"
fit-margin-bottom="0"
showguides="true"
inkscape:guide-bbox="true">
<inkscape:grid
type="xygrid"
id="grid308" />
id="grid308"
originx="-1.0289546"
originy="-1.5581426" />
<sodipodi:guide
position="198.05951,-22.111606"
orientation="0,1"
id="guide110"
inkscape:locked="false" />
</sodipodi:namedview>
<metadata
id="metadata268">
......@@ -52,7 +65,7 @@
<dc:format>image/svg+xml</dc:format>
<dc:type
rdf:resource="http://purl.org/dc/dcmitype/StillImage" />
<dc:title />
<dc:title></dc:title>
</cc:Work>
</rdf:RDF>
</metadata>
......@@ -60,50 +73,50 @@
inkscape:label="Layer 1"
inkscape:groupmode="layer"
id="layer1"
transform="translate(0,-263.13334)">
transform="translate(-1.0289546,-159.97519)">
<rect
style="display:inline;fill:#aa0000;fill-opacity:1;stroke-width:0.31559539;enable-background:new"
style="display:inline;fill:#aa0000;fill-opacity:1;stroke-width:1.28868127;enable-background:new"
id="rect148"
width="31.75"
height="31.75"
x="1.0289546"
y="263.69186"
rx="2.4892018"
ry="2.5122864" />
width="129.64583"
height="129.64583"
x="3.9393678"
y="162.88562"
rx="10.164242"
ry="10.258503" />
<ellipse
style="display:inline;fill:#ffd5d5;fill-opacity:1;stroke-width:0.31512544;enable-background:new"
style="display:inline;fill:#ffd5d5;fill-opacity:1;stroke-width:1.28750026;enable-background:new"
id="path150"
cx="7.5174632"
cy="269.84576"
rx="3.1059783"
ry="3.0881467" />
cx="30.535513"
cy="188.29305"
rx="12.731284"
ry="12.57627" />
<ellipse
style="display:inline;fill:#ffd5d5;fill-opacity:1;stroke-width:0.31512544;enable-background:new"
style="display:inline;fill:#ffd5d5;fill-opacity:1;stroke-width:1.28750026;enable-background:new"
id="path150-3"
cx="26.629395"
cy="269.84576"
rx="3.1059783"
ry="3.0881467" />
cx="108.87457"
cy="188.29305"
rx="12.731284"
ry="12.57627" />
<ellipse
style="display:inline;fill:#ffd5d5;fill-opacity:1;stroke-width:0.31512544;enable-background:new"
style="display:inline;fill:#ffd5d5;fill-opacity:1;stroke-width:1.28750026;enable-background:new"
id="path150-6"
cx="7.5174632"
cy="288.55109"
rx="3.1059783"
ry="3.0881467" />
cx="30.535513"
cy="264.46921"
rx="12.731284"
ry="12.57627" />
<ellipse
style="display:inline;fill:#ffd5d5;fill-opacity:1;stroke-width:0.31512544;enable-background:new"
style="display:inline;fill:#ffd5d5;fill-opacity:1;stroke-width:1.28750026;enable-background:new"
id="path150-3-2"
cx="26.629395"
cy="288.55109"
rx="3.1059783"
ry="3.0881467" />
cx="108.87457"
cy="264.46921"
rx="12.731284"
ry="12.57627" />
<ellipse
style="display:inline;fill:#ffd5d5;fill-opacity:1;stroke-width:0.31512544;enable-background:new"
style="display:inline;fill:#ffd5d5;fill-opacity:1;stroke-width:1.28750026;enable-background:new"
id="path150-3-9"
cx="17.524437"
cy="279.19839"
rx="3.1059783"
ry="3.0881467" />
cx="71.553711"
cy="226.38103"
rx="12.731284"
ry="12.57627" />
</g>
</svg>
Source: codes.nora.gdiceroller
Source: codes.nora.gDiceRoller
Section: web
Priority: important
Maintainer: Leonora Tindall <nora@nora.codes>
......
......@@ -6,7 +6,7 @@
<property name="can_focus">False</property>
<property name="title" translatable="yes">Dice Roller</property>
<property name="role">Dice Roller</property>
<property name="icon_name">codes.nora.gdiceroller</property>
<property name="icon_name">codes.nora.gDiceRoller</property>
<property name="startup_id">Dice Roller</property>
<signal name="destroy" handler="onDestroyWindow" swapped="no"/>
<child>
......
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment