Fix broken script

This commit is contained in:
Abdulkerim Ekrem Bekir 2022-12-20 03:27:49 +03:00
parent 5f1abaf6c5
commit 6408eed78f
1 changed files with 7 additions and 6 deletions

View File

@ -1,15 +1,16 @@
#!/bin/sh
cd $1/Browser/
TBB_DIR=(realpath $1)
cd $TBB_DIR/Browser/
mkdir unpack
mv omni.ja unpack
cd unpack
unzip omni.ja
cd $1/Browser/browser/
cd $TBB_DIR/Browser/browser/
mkdir unpack
mv omni.ja unpack
cd unpack
unzip omni.ja
cd $1
cd $TBB_DIR
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'
@ -17,18 +18,18 @@ find ./Browser/ -type f -print0 | xargs -0 sed -i 's/https\:\/\/firefox\.setting
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
cd $TBB_DIR/Browser/browser/unpack
rm omni.ja
zip -0DXqr omni.ja *
mv omni.ja ..
cd ..
rm -r unpack
cd $1/Browser/unpack
cd $TBB_DIR/Browser/unpack
rm omni.ja
zip -0DXqr omni.ja *
mv omni.ja ..
cd ..
rm -r unpack
cd $1
cd $TBB_DIR
mkdir -p Browser/distribution/
echo "{\n\"policies\": {\n\"DisableAppUpdate\": true\n}\n}" > Browser/distribution/policies.json