Fixing icon not being exported by default while using flatpak.

This commit is contained in:
sergiotarxz 2022-04-12 04:13:57 +02:00
parent 0dc8040a16
commit 170a27abe6
4 changed files with 7 additions and 7 deletions

View File

@ -14,9 +14,9 @@ on `meson_options.txt`
```shell
flatpak --user remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo
flatpak install org.gnome.Sdk//master
flatpak install org.gnome.Platform//master
flatpak-builder --install --user build me.sergiotarxz.openmg.yml me.sergiotarxz.openmg
flatpak --user install org.gnome.Sdk//master
flatpak --user install org.gnome.Platform//master
flatpak-builder --install --user build me.sergiotarxz.openmg.json me.sergiotarxz.openmg
```

View File

@ -4,7 +4,7 @@ GenericName=Manga Reader
Comment=A manga reader
Comment[es]=A manga reader
Exec=openmg
Icon=openmg
Icon=me.sergiotarxz.openmg
Type=Application
Terminal=false
StartupWMClass=openmg

View File

Before

Width:  |  Height:  |  Size: 58 KiB

After

Width:  |  Height:  |  Size: 58 KiB

View File

@ -1,4 +1,4 @@
project('openmg', 'c')
project('me.sergiotarxz.openmg', 'c')
inc = include_directories('include')
@ -56,12 +56,12 @@ icon_sizes = ['16', '24', '32', '48', '64', '128']
foreach i : icon_sizes
install_data(
'openmg.svg',
'me.sergiotarxz.openmg.svg',
install_dir: get_option('datadir') / 'icons' / 'hicolor' / i + 'x' + i / 'apps',
rename: meson.project_name() + '.svg'
)
install_data(
'openmg.svg',
'me.sergiotarxz.openmg.svg',
install_dir: get_option('datadir') / 'icons' / 'hicolor' / i + 'x' + i + '@2' / 'apps',
rename: meson.project_name() + '.svg'
)