Skip to content

Commit

Permalink
Update: Installation script
Browse files Browse the repository at this point in the history
  • Loading branch information
PROxZIMA committed Feb 3, 2022
1 parent 24c7449 commit 7b63df2
Showing 1 changed file with 9 additions and 7 deletions.
16 changes: 9 additions & 7 deletions programs/install.sh
Original file line number Diff line number Diff line change
Expand Up @@ -89,17 +89,13 @@ ln -fs "`pwd`/programs/user.js" ../user.js
if [ "$FXACEXTRAS" = true ] ; then
APPLICATIONFOLDER=$(readlink -f `which firefox` | xargs -I{} dirname {})

echo
echo "Copying mozilla.cfg and local-settings.js to ${APPLICATIONFOLDER}"
chmod +x "${PWD}/programs/install-cfg.sh"
sudo "${PWD}/programs/install-cfg.sh" $APPLICATIONFOLDER || { exit 1; }

echo
echo "Enabling userChrome.js manager (fx-autoconfig)..."
mkdir -p "${PWD}/utils"
cd "${PWD}/utils"

curl -sOL "https://raw.githubusercontent.com/MrOtherGuy/fx-autoconfig/master/profile/chrome/utils/boot.jsm"
curl -sOL "https://raw.githubusercontent.com/MrOtherGuy/fx-autoconfig/master/profile/chrome/utils/boot.jsm" || { echo "Failed to fetch fx-autoconfig"; echo "Exiting..."; exit 1; }

cat << EOF > chrome.manifest
content userchromejs ./
content userscripts ../script/
Expand All @@ -109,7 +105,13 @@ EOF

echo "Enabling Navbar Toolbar Button Slider..."
cd ../script
curl -sOL "https://raw.githubusercontent.com/aminomancer/uc.css.js/master/JS/navbarToolbarButtonSlider.uc.js"
curl -sOL "https://raw.githubusercontent.com/aminomancer/uc.css.js/master/JS/navbarToolbarButtonSlider.uc.js" || { echo "Failed to fetch Navbar Toolbar Button Slider"; echo "Exiting..."; exit 1; }
cd ../

echo
echo "Copying mozilla.cfg and local-settings.js to ${APPLICATIONFOLDER}"
chmod +x "${PWD}/programs/install-cfg.sh"
sudo "${PWD}/programs/install-cfg.sh" $APPLICATIONFOLDER || { echo "Exiting..."; exit 1; }
fi

echo
Expand Down

0 comments on commit 7b63df2

Please sign in to comment.