firefoxpwa: add firefoxRuntime parameter (#423036)

This commit is contained in:
Aleksana 2025-08-01 23:37:15 +08:00 committed by GitHub
commit 7adb418c0a
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -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