Skip to content

Commit

Permalink
Merge branch 'master' of github.com:artemanufrij/regextester
Browse files Browse the repository at this point in the history
  • Loading branch information
artemanufrij committed Nov 1, 2018
2 parents 7478fda + 857e43c commit 60a2ef5
Show file tree
Hide file tree
Showing 4 changed files with 34 additions and 3 deletions.
3 changes: 3 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,9 @@
<a href="https://appcenter.elementary.io/com.github.artemanufrij.regextester">
<img src="https://appcenter.elementary.io/badge.svg" alt="Get it on AppCenter">
</a>
<a href="https://flathub.org/apps/details/com.github.artemanufrij.regextester">
<img src="https://flathub.org/assets/badges/flathub-badge-i-en.svg" width="150px" alt="Download On Flathub">
</a>
</p>

<p align="center">
Expand Down
8 changes: 5 additions & 3 deletions data/com.github.artemanufrij.regextester.appdata.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,6 @@
<description>
<p>A regular expression is a special text string that describes a search pattern. Regex Tester shows all matches of search pattern in a string.</p>
</description>
<categories>
<category>Development</category>
</categories>
<custom>
<value key="x-appcenter-color-primary">#3a9104</value>
<value key="x-appcenter-color-primary-text">rgb(255,255,255)</value>
Expand All @@ -21,7 +18,12 @@
<url type="homepage">https://github.com/artemanufrij/regextester</url>
<url type="bugtracker">https://github.com/artemanufrij/regextester/issues</url>
<url type="help">https://github.com/artemanufrij/regextester/issues</url>
<url type="donation">https://www.paypal.me/ArtemAnufrij</url>
<url type="translate">https://github.com/artemanufrij/regextester</url>
<translation type="gettext">com.github.artemanufrij.regextester</translation>
<update_contact>[email protected]</update_contact>
​ <launchable type="desktop-id">com.github.artemanufrij.regextester.desktop</launchable>

<screenshots>
<screenshot type="default">
<image>https://raw.githubusercontent.com/artemanufrij/regextester/master/screenshots/Screenshot.png</image>
Expand Down
2 changes: 2 additions & 0 deletions meson.build
Original file line number Diff line number Diff line change
Expand Up @@ -17,3 +17,5 @@ executable(
],
install: true
)

meson.add_install_script('meson/post_install.py')
24 changes: 24 additions & 0 deletions meson/post_install.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
#!/usr/bin/env python3

import os
import subprocess

prefix = os.environ.get('MESON_INSTALL_PREFIX', '/usr')
datadir = os.path.join(prefix, 'share')

# Packaging tools define DESTDIR and this isn't needed for them
if 'DESTDIR' not in os.environ:


print('Compiling gsettings schemas...')
schema_dir = os.path.join(datadir, 'glib-2.0/schemas')
subprocess.call(['glib-compile-schemas', schema_dir])

print('Updating icon cache...')
icon_cache_dir = os.path.join(datadir, 'icons', 'hicolor')

subprocess.call(['gtk-update-icon-cache', '-qtf', icon_cache_dir])

print('Updating desktop database...')
desktop_database_dir = os.path.join(datadir, 'applications')
subprocess.call(['update-desktop-database', '-q', desktop_database_dir])

0 comments on commit 60a2ef5

Please sign in to comment.