diff --git a/setup.py b/setup.py index 5d0df6a..97b410b 100644 --- a/setup.py +++ b/setup.py @@ -1,6 +1,7 @@ #!/usr/bin/env python3 import os +import subprocess from distutils.core import setup, Extension @@ -52,6 +53,17 @@ os.mkdir("mo/" + lang + "/") print("generating", mofile) os.system("msgfmt %s -o %s" % (pofile, mofile)) + + +print("Generating gresources bundle") +subprocess.call( + [ + "glib-compile-resources", + "--sourcedir=resources", + "--target=io.thomasross.mirage.gresource", + "resources/mirage.gresource.xml", + ] +) setup( name="Mirage",