Add crossbuild scripts
This commit is contained in:
parent
8ed20a09c2
commit
0365593990
29
crossbuild.sh
Executable file
29
crossbuild.sh
Executable file
|
@ -0,0 +1,29 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
|
||||
# Clean repo
|
||||
cd ./mozilla-unified
|
||||
git reset --hard
|
||||
git clean -fd
|
||||
|
||||
# Prepare assets
|
||||
mkdir -p snowleopard
|
||||
cp ../assets/mozconfig mozconfig
|
||||
cp ../assets/{local-settings.js,prefs.js,policies.json,moz.build,userChrome.css,userContent.css} snowleopard/
|
||||
|
||||
# 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
|
4
package.sh
Executable file
4
package.sh
Executable file
|
@ -0,0 +1,4 @@
|
|||
#!/bin/bash
|
||||
set -e
|
||||
cd mozilla-unified
|
||||
./mach package
|
Loading…
Reference in a new issue