35 lines
1.4 KiB
Bash
35 lines
1.4 KiB
Bash
|
#!/bin/sh
|
||
|
cd $1/Browser/
|
||
|
mkdir unpack
|
||
|
mv omni.ja unpack
|
||
|
cd unpack
|
||
|
unzip omni.ja
|
||
|
cd $1/Browser/browser/
|
||
|
mkdir unpack
|
||
|
mv omni.ja unpack
|
||
|
cd unpack
|
||
|
unzip omni.ja
|
||
|
cd $1
|
||
|
find ./Browser/ -type f -print0 | xargs -0 sed -i 's/https\:\/\/firefox\.settings\.services\.mozilla\.com\/v1\/buckets\/main\/collections\/nimbus-desktop-experiments\/records//g'
|
||
|
find ./Browser/ -type f -print0 | xargs -0 sed -i 's/https\:\/\/firefox\.settings\.services\.mozilla\.com\/v1\/buckets\/main-preview\/collections\/search-config\/records//g'
|
||
|
find ./Browser/ -type f -print0 | xargs -0 sed -i 's/https\:\/\/firefox\.settings\.services\.mozilla\.com\/v1\/buckets\/main\/collections\/search-config\/records//g'
|
||
|
find ./Browser/ -type f -print0 | xargs -0 sed -i 's/https\:\/\/firefox\.settings\.services\.mozilla\.com\/v1//g';
|
||
|
find ./Browser/ -type f -print0 | xargs -0 sed -i 's/onecrl\.content-signature\.mozilla\.org//g'
|
||
|
find ./Browser/ -type f -print0 | xargs -0 sed -i 's/remote-settings\.content-signature\.mozilla\.org//g'
|
||
|
find ./Browser/ -type f -print0 | xargs -0 sed -i 's/normandy\.content-signature\.mozilla\.org//g'
|
||
|
cd $1/Browser/browser/unpack
|
||
|
rm omni.ja
|
||
|
zip -0DXqr omni.ja *
|
||
|
mv omni.ja ..
|
||
|
cd ..
|
||
|
rm -r unpack
|
||
|
cd $1/Browser/unpack
|
||
|
rm omni.ja
|
||
|
zip -0DXqr omni.ja *
|
||
|
mv omni.ja ..
|
||
|
cd ..
|
||
|
rm -r unpack
|
||
|
cd $1
|
||
|
mkdir -p Browser/distribution/
|
||
|
echo "{\n\"policies\": {\n\"DisableAppUpdate\": true\n}\n}" > Browser/distribution/policies.json
|