added verbosity and temporarily disabled downloading as to not download 100gb from firefox by the time this is over

This commit is contained in:
APEX FIGHT
2025-10-31 22:48:30 -04:00
parent 10113d0e4c
commit 0ba1f7c6bc

View File

@@ -1,6 +1,6 @@
#!/usr/bin/env nix-shell
#! nix-shell -i bash
#! nix-shell -p bash curl gcc zlib libffi icu77
#! nix-shell -p bash curl gcc zlib libffi icu77 python314
SUBVERSION="140.4.0"
VERSION="${SUBVERSION}esr"
DOWNLOAD="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz"
@@ -8,23 +8,31 @@ BUILDPATH=$(realpath .)
mkdir bin
#debug stuff
echo Version:
echo $VERSION
echo Link:
echo $DOWNLOAD
echo Build Location:
echo $BUILDPATH
#unzip this or something
curl -RO "$DOWNLOAD"
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