forked from Mirrors/apostrophe
Compare commits
1 Commits
Author | SHA1 | Date |
---|---|---|
Marko Semet | 2099dda109 |
|
@ -41,8 +41,7 @@ You can run Apostrophe with `./apostrophe.in` without installing it in the syste
|
||||||
but you'll need to install and compile the schemas before:
|
but you'll need to install and compile the schemas before:
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
# sudo cp data/de.wolfvollprecht.UberWriter.gschema.xml /usr/share/glib-2.0/schemas/de.wolfvollprecht.UberWriter.gschema.xml
|
$ ./data/gen.sh
|
||||||
# sudo glib-compile-schemas /usr/share/glib-2.0/schemas
|
|
||||||
```
|
```
|
||||||
|
|
||||||
### Building a flatpak package
|
### Building a flatpak package
|
||||||
|
|
|
@ -56,7 +56,10 @@ locale.bindtextdomain('apostrophe', localedir)
|
||||||
gettext.textdomain('apostrophe')
|
gettext.textdomain('apostrophe')
|
||||||
gettext.bindtextdomain('apostrophe', localedir)
|
gettext.bindtextdomain('apostrophe', localedir)
|
||||||
|
|
||||||
resource = Gio.resource_load(os.path.join(pkgdatadir, 'apostrophe/apostrophe.gresource'))
|
if pkgdatadir != '@DATA_DIR@':
|
||||||
|
resource = Gio.resource_load(os.path.join(pkgdatadir, 'apostrophe/apostrophe.gresource'))
|
||||||
|
else:
|
||||||
|
resource = Gio.resource_load(os.path.join(os.path.dirname(__file__), 'data', 'apostrophe.gresource'))
|
||||||
Gio.Resource._register(resource)
|
Gio.Resource._register(resource)
|
||||||
|
|
||||||
|
|
||||||
|
|
|
@ -0,0 +1,2 @@
|
||||||
|
/About.ui
|
||||||
|
/apostrophe.gresource
|
|
@ -0,0 +1,5 @@
|
||||||
|
#! /usr/bin/env bash
|
||||||
|
|
||||||
|
cd "$(dirname "$0")" &&
|
||||||
|
cp -fv "ui/About.ui.in" "About.ui" &&
|
||||||
|
glib-compile-resources "apostrophe.gresource.xml"
|
Loading…
Reference in New Issue