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
|
#!/usr/bin/env nix-shell
|
||||||
#! nix-shell -i bash
|
#! 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"
|
SUBVERSION="140.4.0"
|
||||||
VERSION="${SUBVERSION}esr"
|
VERSION="${SUBVERSION}esr"
|
||||||
DOWNLOAD="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz"
|
DOWNLOAD="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz"
|
||||||
@@ -8,23 +8,31 @@ BUILDPATH=$(realpath .)
|
|||||||
mkdir bin
|
mkdir bin
|
||||||
|
|
||||||
#debug stuff
|
#debug stuff
|
||||||
|
echo Version:
|
||||||
echo $VERSION
|
echo $VERSION
|
||||||
|
echo Link:
|
||||||
echo $DOWNLOAD
|
echo $DOWNLOAD
|
||||||
|
echo Build Location:
|
||||||
echo $BUILDPATH
|
echo $BUILDPATH
|
||||||
|
|
||||||
|
|
||||||
#unzip this or something
|
#unzip this or something
|
||||||
curl -RO "$DOWNLOAD"
|
echo Downloading...
|
||||||
|
#curl -RO "$DOWNLOAD"
|
||||||
|
echo Unzipping Source...
|
||||||
tar -xJf "firefox-$VERSION.source.tar.xz"
|
tar -xJf "firefox-$VERSION.source.tar.xz"
|
||||||
|
|
||||||
|
|
||||||
cd "firefox-$SUBVERSION/js/src"
|
cd "firefox-$SUBVERSION/js/src"
|
||||||
|
|
||||||
|
echo Making Build Path...
|
||||||
mkdir _build
|
mkdir _build
|
||||||
cd _build
|
cd _build
|
||||||
|
|
||||||
|
echo Configuring build...
|
||||||
../configure --disable-jemalloc --with-system-zlib --with-system-icu --prefix="$BUILDPATH/bin" \
|
../configure --disable-jemalloc --with-system-zlib --with-system-icu --prefix="$BUILDPATH/bin" \
|
||||||
--with-intl-api --enable-optimize
|
--with-intl-api --enable-optimize
|
||||||
|
|
||||||
|
echo Compiling...
|
||||||
make
|
make
|
||||||
make install
|
make install
|
||||||
Reference in New Issue
Block a user