snowleopard/crossbuild.sh

30 lines
596 B
Bash
Raw Permalink Normal View History

2023-11-03 17:32:34 +01:00
#!/bin/bash
set -e
# Clean repo
cd ./mozilla-unified
git reset --hard
git clean -fd
# Prepare assets
mkdir -p snowleopard
cp ../assets/mozconfig mozconfig
2023-11-03 22:07:07 +01:00
cp ../assets/{prefs.js,policies.json,moz.build,userChrome.css,userContent.css} snowleopard/
2023-11-03 17:32:34 +01:00
# Set up crossbuild
echo "" >> mozconfig
echo "ac_add_options --target=aarch64-apple-darwin" >> mozconfig
echo "ac_add_options --enable-bootstrap" >> mozconfig
# Prepare patches
for patch in ../patches/*.patch; do
echo "Applying $(basename "$patch")"
git apply "$patch"
done
# Build the thing
./mach build
# Package the thing
./mach package