aboutsummaryrefslogtreecommitdiff
path: root/browser/resources
diff options
context:
space:
mode:
authorBeatLink <beatlink@protonmail.com>2019-06-16 01:55:19 -0500
committerBeatLink <beatlink@protonmail.com>2019-06-16 01:55:19 -0500
commit7d9318ea86d3542c609a6ca1f26e2780bf109b80 (patch)
treeef17220cf0ed6bf5e30e30c732a2ca2ff0e6fe01 /browser/resources
parentMove browser source files to a new folder called resources (diff)
downloadlibrewolf-linux-7d9318ea86d3542c609a6ca1f26e2780bf109b80.tar.gz
librewolf-linux-7d9318ea86d3542c609a6ca1f26e2780bf109b80.tar.bz2
librewolf-linux-7d9318ea86d3542c609a6ca1f26e2780bf109b80.zip
Add files in preparation for appimage generation
Diffstat (limited to 'browser/resources')
-rwxr-xr-xbrowser/resources/appimage/AppRun12
-rw-r--r--browser/resources/appimage/librewolf.desktop6
2 files changed, 18 insertions, 0 deletions
diff --git a/browser/resources/appimage/AppRun b/browser/resources/appimage/AppRun
new file mode 100755
index 0000000..e347dcd
--- /dev/null
+++ b/browser/resources/appimage/AppRun
@@ -0,0 +1,12 @@
+#!/bin/sh
+SELF=$(readlink -f "$0")
+HERE=${SELF%/*}
+export PATH="${HERE}:${HERE}/usr/bin/:${HERE}/usr/sbin/:${HERE}/usr/games/:${HERE}/bin/:${HERE}/sbin/${PATH:+:$PATH}"
+export LD_LIBRARY_PATH="${HERE}/usr/lib/:${HERE}/usr/lib/i386-linux-gnu/:${HERE}/usr/lib/x86_64-linux-gnu/:${HERE}/usr/lib32/:${HERE}/usr/lib64/:${HERE}/lib/:${HERE}/lib/i386-linux-gnu/:${HERE}/lib/x86_64-linux-gnu/:${HERE}/lib32/:${HERE}/lib64/${LD_LIBRARY_PATH:+:$LD_LIBRARY_PATH}"
+export PYTHONPATH="${HERE}/usr/share/pyshared/${PYTHONPATH:+:$PYTHONPATH}"
+export XDG_DATA_DIRS="${HERE}/usr/share/${XDG_DATA_DIRS:+:$XDG_DATA_DIRS}"
+export PERLLIB="${HERE}/usr/share/perl5/:${HERE}/usr/lib/perl5/${PERLLIB:+:$PERLLIB}"
+export GSETTINGS_SCHEMA_DIR="${HERE}/usr/share/glib-2.0/schemas/${GSETTINGS_SCHEMA_DIR:+:$GSETTINGS_SCHEMA_DIR}"
+export QT_PLUGIN_PATH="${HERE}/usr/lib/qt4/plugins/:${HERE}/usr/lib/i386-linux-gnu/qt4/plugins/:${HERE}/usr/lib/x86_64-linux-gnu/qt4/plugins/:${HERE}/usr/lib32/qt4/plugins/:${HERE}/usr/lib64/qt4/plugins/:${HERE}/usr/lib/qt5/plugins/:${HERE}/usr/lib/i386-linux-gnu/qt5/plugins/:${HERE}/usr/lib/x86_64-linux-gnu/qt5/plugins/:${HERE}/usr/lib32/qt5/plugins/:${HERE}/usr/lib64/qt5/plugins/${QT_PLUGIN_PATH:+:$QT_PLUGIN_PATH}"
+EXEC=$(grep -e '^Exec=.*' "${HERE}"/*.desktop | head -n 1 | cut -d "=" -f 2 | cut -d " " -f 1)
+exec "${EXEC}" "$@"
diff --git a/browser/resources/appimage/librewolf.desktop b/browser/resources/appimage/librewolf.desktop
new file mode 100644
index 0000000..2fd9b22
--- /dev/null
+++ b/browser/resources/appimage/librewolf.desktop
@@ -0,0 +1,6 @@
+[Desktop Entry]
+Name=LibreWolf
+Exec=./librewolf
+Icon=./browser/chrome/icons/default/default128.png
+Type=Application
+Categories=Network;
bgstack15