firefoxpwa: add firefoxRuntime parameter (#423036)
This commit is contained in:
commit
7adb418c0a
@ -1,5 +1,6 @@
|
||||
{
|
||||
extraLibs ? [ ],
|
||||
firefoxRuntime ? firefox-unwrapped,
|
||||
|
||||
lib,
|
||||
fetchFromGitHub,
|
||||
@ -84,9 +85,13 @@ rustPlatform.buildRustPackage rec {
|
||||
postInstall = ''
|
||||
# Runtime
|
||||
mkdir -p $out/share/firefoxpwa
|
||||
cp -Lr ${firefox-unwrapped}/lib/firefox $out/share/firefoxpwa/runtime
|
||||
cp -Lr ${firefoxRuntime}/lib/${firefoxRuntime.binaryName} $out/share/firefoxpwa/runtime
|
||||
chmod -R +w $out/share/firefoxpwa
|
||||
|
||||
if [ "${firefoxRuntime.binaryName}" != "firefox" ]; then
|
||||
ln $out/share/firefoxpwa/runtime/${firefoxRuntime.binaryName} $out/share/firefoxpwa/runtime/firefox
|
||||
fi
|
||||
|
||||
# UserChrome
|
||||
cp -r userchrome $out/share/firefoxpwa
|
||||
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user