mirror of
https://github.com/ZoiteChat/zoitechat.git
synced 2026-06-08 16:00:18 +00:00
Prep Flatpak manifest for Flathub stable submission
This commit is contained in:
@@ -1,25 +1,17 @@
|
|||||||
From 918503d57c6740d20be68a6717158673a2a8b25f Mon Sep 17 00:00:00 2001
|
|
||||||
From: Patrick Griffis <tingping@tingping.se>
|
|
||||||
Date: Sat, 17 Mar 2018 05:57:49 -0400
|
|
||||||
Subject: [PATCH] Support loading Flatpak extensions
|
|
||||||
|
|
||||||
---
|
|
||||||
src/common/plugin.c | 2 ++
|
|
||||||
1 file changed, 2 insertions(+)
|
|
||||||
|
|
||||||
diff --git a/src/common/plugin.c b/src/common/plugin.c
|
|
||||||
index 3ad3c558..6addf962 100644
|
|
||||||
--- a/src/common/plugin.c
|
--- a/src/common/plugin.c
|
||||||
+++ b/src/common/plugin.c
|
+++ b/src/common/plugin.c
|
||||||
@@ -450,6 +450,8 @@ plugin_auto_load (session *sess)
|
@@ -470,7 +470,14 @@
|
||||||
lib_dir = plugin_get_libdir ();
|
if (libdir && *libdir)
|
||||||
sub_dir = g_build_filename (get_xdir (), "addons", NULL);
|
return libdir;
|
||||||
|
else
|
||||||
+ for_files ("/app/extensions/lib/zoitechat/plugins", "*.so", plugin_auto_load_cb);
|
+ {
|
||||||
|
+ if (g_file_test ("/app/extensions/lib/zoitechat/plugins", G_FILE_TEST_IS_DIR))
|
||||||
|
+ {
|
||||||
|
+ return "/app/extensions/lib/zoitechat/plugins";
|
||||||
|
+ }
|
||||||
+
|
+
|
||||||
#ifdef WIN32
|
return ZOITECHATLIBDIR;
|
||||||
/* a long list of bundled plugins that should be loaded automatically,
|
+ }
|
||||||
* user plugins should go to <config>, leave Program Files alone! */
|
}
|
||||||
--
|
|
||||||
2.14.3
|
void
|
||||||
|
|
||||||
|
|||||||
@@ -1,6 +1,5 @@
|
|||||||
{
|
{
|
||||||
"app-id": "org.zoitechat.ZoiteChat",
|
"app-id": "org.zoitechat.ZoiteChat",
|
||||||
"branch": "master",
|
|
||||||
"runtime": "org.gnome.Platform",
|
"runtime": "org.gnome.Platform",
|
||||||
"runtime-version": "49",
|
"runtime-version": "49",
|
||||||
"sdk": "org.gnome.Sdk",
|
"sdk": "org.gnome.Sdk",
|
||||||
@@ -69,8 +68,10 @@
|
|||||||
],
|
],
|
||||||
"sources": [
|
"sources": [
|
||||||
{
|
{
|
||||||
"type": "dir",
|
"type": "git",
|
||||||
"path": ".."
|
"url": "https://github.com/ZoiteChat/zoitechat.git",
|
||||||
|
"tag": "zoitechat-2.18.1",
|
||||||
|
"commit": "6535810ca356bf9c4d15fca34df4fb883e2a61a5"
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
"type": "patch",
|
"type": "patch",
|
||||||
|
|||||||
Reference in New Issue
Block a user