This repository has been archived by the owner on May 6, 2020. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 7
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Install Adobe Flash extension and Oracle JRE
- Loading branch information
Michal Rostecki
committed
Dec 29, 2016
1 parent
93e93ab
commit 467765f
Showing
7 changed files
with
110 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
#!/bin/sh | ||
|
||
mkdir flash-player | ||
tar zxf flash-player.tar.gz -C flash-player | ||
|
||
mkdir -p lib/mozilla/plugins | ||
cp flash-player/libflashplayer.so lib/mozilla/plugins | ||
|
||
rm -rf flash-player flash-player.tar.gz |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
From d13d06185de781cf4acff432f518ca3154096a4d Mon Sep 17 00:00:00 2001 | ||
From: Michal Rostecki <michal@kinvolk.io> | ||
Date: Wed, 28 Dec 2016 17:13:05 +0100 | ||
Subject: [PATCH] Set /app/extra/lib/mozilla/plugins as an extension dir | ||
|
||
--- | ||
xpcom/io/nsAppFileLocationProvider.cpp | 8 +------- | ||
1 file changed, 1 insertion(+), 7 deletions(-) | ||
|
||
diff --git a/xpcom/io/nsAppFileLocationProvider.cpp b/xpcom/io/nsAppFileLocationProvider.cpp | ||
index 27ccd56..86d712d 100644 | ||
--- a/xpcom/io/nsAppFileLocationProvider.cpp | ||
+++ b/xpcom/io/nsAppFileLocationProvider.cpp | ||
@@ -187,13 +187,7 @@ nsAppFileLocationProvider::GetFile(const char* aProp, bool* aPersistent, | ||
else if (nsCRT::strcmp(aProp, NS_SYSTEM_PLUGINS_DIR) == 0) { | ||
#ifdef ENABLE_SYSTEM_EXTENSION_DIRS | ||
static const char* const sysLPlgDir = | ||
-#if defined(HAVE_USR_LIB64_DIR) && defined(__LP64__) | ||
- "/usr/lib64/mozilla/plugins"; | ||
-#elif defined(__OpenBSD__) || defined (__FreeBSD__) | ||
- "/usr/local/lib/mozilla/plugins"; | ||
-#else | ||
- "/usr/lib/mozilla/plugins"; | ||
-#endif | ||
+ "/app/extra/lib/mozilla/plugins"; | ||
rv = NS_NewNativeLocalFile(nsDependentCString(sysLPlgDir), | ||
false, getter_AddRefs(localFile)); | ||
#else | ||
-- | ||
2.9.3 | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,20 @@ | ||
#!/bin/sh | ||
|
||
exec /app/extra/bin/vlc | ||
JRE_PLUGIN_FILENAME="libnpjp2.so" | ||
|
||
mkdir -p $HOME/.mozilla/plugins | ||
mkdir -p $HOME/.flatpak_extras/firefox | ||
|
||
if [ ! -f $HOME/.mozilla/plugins/$JRE_PLUGIN_FILENAME ]; then | ||
wget --no-cookies --no-check-certificate --header "Cookie: gpw_e24=http%3A%2F%2Fwww.oracle.com%2F; oraclelicense=accept-securebackup-cookie" "http://download.oracle.com/otn-pub/java/jdk/8u112-b15/jre-8u112-linux-x64.tar.gz" | ||
tar zxf jre-8u112-linux-x64.tar.gz | ||
cp -r jre1.8.0_112/{bin,lib,man,plugin} $HOME/.flatpak_extras/firefox | ||
ln -s $HOME/.flatpak_extras/firefox/lib/amd64/libnpjp2.so $HOME/.mozilla/plugins/$JRE_PLUGIN_FILENAME | ||
rm -rf jre1.8.0_112 jre-8u112-linux.x64.tar-gz | ||
fi | ||
|
||
export PATH="$HOME/.flatpak_extras/firefox/bin:$PATH" | ||
export LD_LIBRARY_PATH="$HOME/.flatpak_extras/firefox/lib/amd64:$HOME/.flatpak_extras/firefox/lib/amd64/jli:$LD_LIBRARY_PATH" | ||
export JAVA_HOME="$Home/.flatpak_extras/firefox" | ||
|
||
exec /app/bin/firefox $@ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
all: | ||
true | ||
|
||
install: | ||
install apply_extra /app/bin | ||
install firefox.sh /app/bin/firefox-wrapper |