Compare commits
3 Commits
2475af5427
...
09c696d94b
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
09c696d94b | ||
|
|
161e2e070f | ||
|
|
7161da7281 |
1
nixgc.sh
Normal file
1
nixgc.sh
Normal file
@@ -0,0 +1 @@
|
|||||||
|
# basic script that garbage collects all of nixos to make it... take up like half the space, it gets real big after a while...
|
||||||
27
src/build.sh
27
src/build.sh
@@ -1,11 +1,18 @@
|
|||||||
#!/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 python313 rustc ccache ninja cmake libllvm cargo rust-cbindgen pkg-config
|
#! nix-shell -p bash curl gcc zlib libffi icu77 python313 rustc ccache ninja cmake libllvm cargo rust-cbindgen pkg-config
|
||||||
SUBVERSION="140.4.0"
|
|
||||||
VERSION="${SUBVERSION}esr"
|
# 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"
|
DOWNLOAD="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz"
|
||||||
BUILDPATH=$(realpath .)
|
BUILDPATH=$(realpath .) # Where to output build fragments
|
||||||
mkdir bin
|
OUTPUT="/var/www/$VERSION/" # Where to place built and zipped hashes and all that (ex. for file hosting)
|
||||||
|
|
||||||
|
# Ensure necessary directories exist
|
||||||
|
mkdir $BUILDPATH/bin
|
||||||
|
mkdir $OUTPUT
|
||||||
|
|
||||||
#debug stuff
|
#debug stuff
|
||||||
echo Version:
|
echo Version:
|
||||||
@@ -23,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
|
||||||
@@ -35,4 +42,12 @@ 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
|
||||||
Reference in New Issue
Block a user