mirror of
https://forge.fsky.io/oneflux/omegafox.git
synced 2026-02-10 04:52:03 -08:00
- Heavy changes to Makefile. Now uses aria2c to download the Firefox release tarball - New features in developer UI to make patch editing much easier - Modified Playwright's Juggler patches to run on Firefox release v128.0.3 - Bump Playwright Juggler module to June 2th patches - Fix viewport-hijacker and xmas-modified patches for new Firefox release
54 lines
No EOL
1.5 KiB
Bash
54 lines
No EOL
1.5 KiB
Bash
#!/bin/bash
|
|
|
|
# Simple bash script that copies the additions from the repository into the source directory
|
|
# Must be ran from within the source directory
|
|
|
|
# Check if correct number of arguments are provided
|
|
if [ "$#" -ne 2 ]; then
|
|
echo "Usage: $0 <version> <release>"
|
|
exit 1
|
|
fi
|
|
|
|
# Assign command-line arguments to variables
|
|
version="$1"
|
|
release="$2"
|
|
|
|
# Function to run commands and exit on failure
|
|
run() {
|
|
echo "$ $1"
|
|
eval "$1"
|
|
if [ $? -ne 0 ]; then
|
|
echo "Command failed: $1"
|
|
exit 1
|
|
fi
|
|
}
|
|
|
|
# Copy the search-config.json file
|
|
run 'cp -v ../assets/search-config.json services/settings/dumps/main/search-config.json'
|
|
|
|
# vs_pack.py issue... should be temporary
|
|
run 'cp -v ../patches/librewolf/pack_vs.py build/vs/'
|
|
|
|
# Apply most recent `settings` repository files
|
|
run 'mkdir -p lw'
|
|
pushd lw > /dev/null
|
|
run 'cp -v ../../settings/camoufox.cfg .'
|
|
run 'cp -v ../../settings/distribution/policies.json .'
|
|
run 'cp -v ../../settings/defaults/pref/local-settings.js .'
|
|
run 'cp -v ../../settings/chrome.css .'
|
|
run 'touch moz.build'
|
|
popd > /dev/null
|
|
|
|
# Copy ALL new files/folders from ../additions to .
|
|
run 'cp -r ../additions/* .'
|
|
|
|
# Provide a script that fetches and bootstraps Nightly and some mozconfigs
|
|
run 'cp -v ../scripts/mozfetch.sh lw/'
|
|
|
|
# Override the firefox version
|
|
for file in "browser/config/version.txt" "browser/config/version_display.txt"; do
|
|
echo "${version}-${release}" > "$file"
|
|
done
|
|
|
|
# Generate locales
|
|
run "bash ../scripts/generate-locales.sh" |