added verbosity and temporarily disabled downloading as to not download 100gb from firefox by the time this is over
This commit is contained in:
12
src/build.sh
12
src/build.sh
@@ -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
|
||||
Reference in New Issue
Block a user