added compression and moving build output to target dir

This commit is contained in:
APEX FIGHT
2025-11-01 02:43:56 -04:00
parent 161e2e070f
commit 09c696d94b

View File

@@ -4,6 +4,9 @@
# CONFIGURATION OPTIONS # CONFIGURATION OPTIONS
MAJORVERSION="140" # MAJOR firefox esr version MAJORVERSION="140" # MAJOR firefox esr version
MINORVERSION="${MAJORVERSION}.4.0" # Minor firefox version
VERSION="${MINORVERSION}esr" # Whole Version put together
DOWNLOAD="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz"
BUILDPATH=$(realpath .) # Where to output build fragments BUILDPATH=$(realpath .) # Where to output build fragments
OUTPUT="/var/www/$VERSION/" # Where to place built and zipped hashes and all that (ex. for file hosting) OUTPUT="/var/www/$VERSION/" # Where to place built and zipped hashes and all that (ex. for file hosting)
@@ -27,7 +30,7 @@ echo Unzipping Source...
tar -xJf "firefox-$VERSION.source.tar.xz" tar -xJf "firefox-$VERSION.source.tar.xz"
cd "firefox-$SUBVERSION/js/src" cd "firefox-$MINORVERSION/js/src"
echo Making Build Path... echo Making Build Path...
mkdir _build mkdir _build
@@ -40,3 +43,11 @@ echo Configuring build...
echo Compiling... echo Compiling...
make make
make install make install
cd $BUILDPATH/bin/include
# Compress and get hash
tar -cJf $VERSION.tar.xz mozjs-$MAJORVERSION/
sha256sum $VERSION.tar.xz > $VERSION.tar.xz.sha256
mv $VERSION.tar.xz $VERSION.tar.xz.sha256 $OUTPUT