aboutsummaryrefslogtreecommitdiff
path: root/browser/linux/resources
diff options
context:
space:
mode:
authorBeatLink <beatlink@protonmail.com>2019-07-17 13:50:38 -0500
committerBeatLink <beatlink@protonmail.com>2019-07-17 13:50:38 -0500
commit62ae8ee96788df9e1fc42322e942275bc5cc0971 (patch)
tree8c33b2ac6cbfc3bee4ef273f2c8a3cf8b8b24266 /browser/linux/resources
parentContinued work on rebranding (diff)
downloadlibrewolf-linux-62ae8ee96788df9e1fc42322e942275bc5cc0971.tar.gz
librewolf-linux-62ae8ee96788df9e1fc42322e942275bc5cc0971.tar.bz2
librewolf-linux-62ae8ee96788df9e1fc42322e942275bc5cc0971.zip
Split build script and rearrange linux folder
Diffstat (limited to 'browser/linux/resources')
-rw-r--r--browser/linux/resources/appimage/.gitignore2
-rwxr-xr-xbrowser/linux/resources/appimage/AppRun12
-rw-r--r--browser/linux/resources/appimage/librewolf.desktop6
-rw-r--r--browser/linux/resources/flatpak/io.gitlab.LibreWolf.json25
-rwxr-xr-xbrowser/linux/resources/launch_librewolf.sh30
5 files changed, 0 insertions, 75 deletions
diff --git a/browser/linux/resources/appimage/.gitignore b/browser/linux/resources/appimage/.gitignore
deleted file mode 100644
index 9f0e081..0000000
--- a/browser/linux/resources/appimage/.gitignore
+++ /dev/null
@@ -1,2 +0,0 @@
-.DirIcon
-librewolf.svg
diff --git a/browser/linux/resources/appimage/AppRun b/browser/linux/resources/appimage/AppRun
deleted file mode 100755
index e347dcd..0000000
--- a/browser/linux/resources/appimage/AppRun
+++ /dev/null
@@ -1,12 +0,0 @@
-#!/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/linux/resources/appimage/librewolf.desktop b/browser/linux/resources/appimage/librewolf.desktop
deleted file mode 100644
index 3e36765..0000000
--- a/browser/linux/resources/appimage/librewolf.desktop
+++ /dev/null
@@ -1,6 +0,0 @@
-[Desktop Entry]
-Name=LibreWolf
-Exec=librewolf
-Icon=librewolf
-Type=Application
-Categories=Network;
diff --git a/browser/linux/resources/flatpak/io.gitlab.LibreWolf.json b/browser/linux/resources/flatpak/io.gitlab.LibreWolf.json
deleted file mode 100644
index 0e2b549..0000000
--- a/browser/linux/resources/flatpak/io.gitlab.LibreWolf.json
+++ /dev/null
@@ -1,25 +0,0 @@
-{
- "app-id": "io.gitlab.LibreWolf",
- "runtime": "org.gnome.Platform",
- "runtime-version": "3.32",
- "sdk": "org.gnome.Sdk",
- "command": "librewolf",
- "modules": [{
- "name": "librewolf",
- "buildsystem": "simple",
- "build-commands": [
- "mkdir -p /app/share && mv librewolf -t /app/share",
- "mkdir -p /app/bin && ln -s /app/share/librewolf/librewolf /app/bin/"
- ],
- "sources": [{
- "type": "dir",
- "path": "source"
- }]
- }],
- "finish-args": [
- "--share=ipc", "--socket=x11", /* X11 + XShm access */
- "--socket=wayland", /* Wayland access */
- "--filesystem=home:rw", /* We want full fs access so we can read the files */
- "--share=network" /* Needs to talk to the network: */
- ]
-}
diff --git a/browser/linux/resources/launch_librewolf.sh b/browser/linux/resources/launch_librewolf.sh
deleted file mode 100755
index f8b099d..0000000
--- a/browser/linux/resources/launch_librewolf.sh
+++ /dev/null
@@ -1,30 +0,0 @@
-#!/usr/bin/env bash
-
-INSTALL_FOLDER=$(realpath $(dirname $0));
-INSTALL_SETTINGS_FOLDER=$INSTALL_FOLDER/settings;
-PROFILE_SETTINGS_FOLDER=$HOME/.librewolf/settings;
-
-# Adds option to install settings if argument is passed
-if [ "$1" = "--install-settings" ]; then
- mkdir -p $PROFILE_SETTINGS_FOLDER;
- cp $INSTALL_SETTINGS_FOLDER/defaults/pref/local-settings.js $PROFILE_SETTINGS_FOLDER/local-settings.js;
- cp $INSTALL_SETTINGS_FOLDER/distribution/policies.json $PROFILE_SETTINGS_FOLDER/policies.json;
- cp $INSTALL_SETTINGS_FOLDER/librewolf.cfg $PROFILE_SETTINGS_FOLDER/librewolf.cfg;
- cp $INSTALL_SETTINGS_FOLDER/toggle-settings.sh $PROFILE_SETTINGS_FOLDER/toggle-settings.sh;
-fi
-
-# Sets up settings links
-ln -s $PROFILE_SETTINGS_FOLDER/local-settings.js $INSTALL_FOLDER/defaults/pref/local-settings.js;
-ln -s $PROFILE_SETTINGS_FOLDER/policies.json $INSTALL_FOLDER/distribution/policies.json;
-ln -s $PROFILE_SETTINGS_FOLDER/librewolf.cfg $INSTALL_FOLDER/librewolf.cfg;
-
-# Sets env variables to disable dedicated profiles (which breaks some packaging methods)
-export MOZ_LEGACY_PROFILES=1;
-export SNAP_NAME="firefox";
-
-# Launches librewolf
-chmod +x $INSTALL_FOLDER/librewolf;
-$INSTALL_FOLDER/librewolf "$@";
-
-
-
bgstack15