Fix to endes patch (Unitialized html_document.) and default to build flatpak

without images to work better on low resources computers.
This commit is contained in:
sergiotarxz 2022-01-23 09:58:01 +01:00
parent 5b49e51642
commit a17f9c1f25
6 changed files with 23 additions and 29 deletions

View File

@ -1,3 +1,5 @@
Sergiotarxz sergiotarxz@posteo.net Project leader and developer [Gitea](https://gitea.sergiotarxz.freemyip.com/sergiotarxz) Sergiotarxz sergiotarxz@posteo.net Project leader and developer. [Gitea](https://gitea.sergiotarxz.freemyip.com/sergiotarxz)
Germe.db FOSSgerme.deb@tuta.io Author of the icon openmg.svg. [sr.ht](https://sr.ht/~germe-fur/)
Endes endes@disroot.org Developer [Github](https://github.com/endes0) Germe.db FOSSgerme.deb@tuta.io Designer and icons creator. [sr.ht](https://sr.ht/~germe-fur/)
Endes endes@disroot.org Developer. [Github](https://github.com/endes0)

View File

@ -2,6 +2,10 @@
## Installing the app. ## Installing the app.
First fine tune the options in `me.sergiotarxz.openmg.json` for
meson you want to have, for example preview images, complete list is
on `meson_options.txt`
```shell ```shell
flatpak --user remote-add --if-not-exists gnome-nightly https://nightly.gnome.org/gnome-nightly.flatpakrepo 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.Sdk//master

View File

@ -1,20 +0,0 @@
app-id: me.sergiotarxz.openmg
runtime: org.gnome.Platform
runtime-version: master
sdk: org.gnome.Sdk
sdk-version: master
command: openmg
finish-args:
- "--share=ipc"
- "--socket=x11"
- "--socket=wayland"
- "--socket=session-bus"
- "--share=network"
- "--device=dri"
modules:
- name: openmg
buildsystem: meson
sources:
- type: dir
path: .

View File

@ -36,16 +36,21 @@ sources = [
] ]
link_arguments = [ link_arguments = [
'-ldl',
'-lm' '-lm'
] ]
images_on_lists = get_option('images') images_on_lists = get_option('images')
is_windows = get_option('windows')
cArgs = '' if not is_windows
if images_on_lists link_arguments += ['-ldl']
cArgs = cArgs + '-DLIST_IMAGES'
endif endif
cArgs = []
if images_on_lists
cArgs += ['-DLIST_IMAGES']
endif
executable('openmg', executable('openmg',
sources, sources,
dependencies : openmgdeps, dependencies : openmgdeps,

View File

@ -1 +1,2 @@
option('images', type : 'boolean', value : true) option('images', type : 'boolean', value : true)
option('windows', type : 'boolean', value : false)

View File

@ -364,7 +364,7 @@ mg_backend_readmng_retrieve_manga_details (MgBackendReadmng *self,
MgManga *manga) { MgManga *manga) {
MgUtilXML *xml_utils; MgUtilXML *xml_utils;
xmlDocPtr html_document; xmlDocPtr html_document = NULL;
xmlNodePtr *movie_detail = NULL; xmlNodePtr *movie_detail = NULL;
xmlXPathObjectPtr xpath_result = NULL; xmlXPathObjectPtr xpath_result = NULL;
xmlNodeSetPtr node_set = NULL; xmlNodeSetPtr node_set = NULL;
@ -409,7 +409,9 @@ cleanup_mg_backend_readmng_retrieve_manga_details:
if (movie_detail) { if (movie_detail) {
g_free (movie_detail); g_free (movie_detail);
} }
xmlFreeDoc(html_document); if (html_document) {
xmlFreeDoc(html_document);
}
} }
static GListStore * static GListStore *