From 09c696d94b87cac8705182f32f13da6838c6d60b Mon Sep 17 00:00:00 2001 From: APEX FIGHT Date: Sat, 1 Nov 2025 02:43:56 -0400 Subject: [PATCH] added compression and moving build output to target dir --- src/build.sh | 15 +++++++++++++-- 1 file changed, 13 insertions(+), 2 deletions(-) diff --git a/src/build.sh b/src/build.sh index 262259a..d82953c 100644 --- a/src/build.sh +++ b/src/build.sh @@ -4,6 +4,9 @@ # CONFIGURATION OPTIONS 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 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" -cd "firefox-$SUBVERSION/js/src" +cd "firefox-$MINORVERSION/js/src" echo Making Build Path... mkdir _build @@ -39,4 +42,12 @@ echo Configuring build... echo Compiling... make -make install \ No newline at end of file +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 \ No newline at end of file