Files
Mozzarella/src/build.sh
2025-10-31 23:07:35 -04:00

38 lines
866 B
Bash

#!/usr/bin/env nix-shell
#! nix-shell -i bash
#! nix-shell -p bash curl gcc zlib libffi icu77 python314 rustc ccache ninja cmake libllvm cargo rust-cbindgen
SUBVERSION="140.4.0"
VERSION="${SUBVERSION}esr"
DOWNLOAD="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz"
BUILDPATH=$(realpath .)
mkdir bin
#debug stuff
echo Version:
echo $VERSION
echo Link:
echo $DOWNLOAD
echo Build Location:
echo $BUILDPATH
#unzip this or something
echo Downloading...
#curl -RO "$DOWNLOAD"
echo Unzipping Source...
tar -xJf "firefox-$VERSION.source.tar.xz"
cd "firefox-$SUBVERSION/js/src"
echo Making Build Path...
mkdir _build
cd _build
echo Configuring build...
../configure --disable-jemalloc --with-system-zlib --with-system-icu --prefix="$BUILDPATH/bin" \
--with-intl-api --enable-optimize
echo Compiling...
make
make install