Compare commits
30 Commits
a884e64fe0
...
main
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
2bbeea7bfb | ||
|
|
fe4d6e8cc4 | ||
| a19b42aa02 | |||
| 5042becb49 | |||
| c130aef4f0 | |||
|
|
2388f4d202 | ||
|
|
73619f1cbf | ||
|
|
09c696d94b | ||
|
|
161e2e070f | ||
|
|
7161da7281 | ||
|
|
2475af5427 | ||
|
|
0d1020647b | ||
|
|
7471751078 | ||
|
|
a5b7484164 | ||
|
|
79384be636 | ||
|
|
1d789ee8bb | ||
|
|
adccb59812 | ||
|
|
0ba1f7c6bc | ||
|
|
10113d0e4c | ||
|
|
28134a9b38 | ||
|
|
338c302582 | ||
|
|
7016f1d285 | ||
|
|
7c71533ed2 | ||
|
|
da236d59dc | ||
|
|
8da3bbc141 | ||
|
|
ccb25f1c3d | ||
|
|
a234f87efe | ||
|
|
284c6cd23d | ||
|
|
dd1eeb2975 | ||
|
|
40ed13f3ba |
@@ -1,7 +1,9 @@
|
|||||||
# Mozzarella
|
# Mozzarella
|
||||||
|
|
||||||
fully automatic Mozilla builds and downloads
|
fully automatic Mozilla builds (just spidermonkey right now)
|
||||||
|
|
||||||
(intended specifically for val's earth modding support)
|
Powered by [Nix](https://nixos.org/)
|
||||||
|
|
||||||
coming soon...
|
builds pertinent to val's earth (but potentially useful otherwise) are located at [apexfight.net](https://mozzarella.apexfight.net/)
|
||||||
|
|
||||||
|
(intended specifically for val's earth modding support, but if you're here then feel free to use it for whatever)
|
||||||
|
|||||||
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...
|
||||||
61
src/build.sh
61
src/build.sh
@@ -1,20 +1,57 @@
|
|||||||
#!/usr/bin/env nix-shell
|
#!/usr/bin/env nix-shell
|
||||||
#! nix-shell -i bash --pure
|
#! nix-shell -i bash
|
||||||
#! nix-shell -p bash curl gcc zlib libffi icu77
|
#! nix-shell -p bash curl gcc zlib libffi icu77 python313 rustc ccache ninja cmake libllvm cargo rust-cbindgen pkg-config
|
||||||
VERSION="140.4.0esr"
|
|
||||||
DOWNLOAD="https://ftp.mozilla.org/pub/firefox/releases/$VERSION/source/firefox-$VERSION.source.tar.xz/"
|
# CONFIGURATION OPTIONS
|
||||||
BUILDPATH=$(realpath .)
|
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)
|
||||||
|
|
||||||
|
# Ensure necessary directories exist
|
||||||
|
mkdir $BUILDPATH/bin
|
||||||
|
mkdir $OUTPUT
|
||||||
|
|
||||||
|
#debug stuff
|
||||||
|
echo Version:
|
||||||
|
echo $VERSION
|
||||||
|
echo Link:
|
||||||
|
echo $DOWNLOAD
|
||||||
|
echo Build Location:
|
||||||
|
echo $BUILDPATH
|
||||||
|
|
||||||
|
|
||||||
#unzip this or something
|
#unzip this or something
|
||||||
curl -RO $DOWNLOAD
|
echo Downloading...
|
||||||
tar -xzf "firefox-$VERSION.source.tar.xz src"
|
curl -RO "$DOWNLOAD"
|
||||||
|
echo Unzipping Source...
|
||||||
|
tar -xJf "firefox-$VERSION.source.tar.xz"
|
||||||
|
|
||||||
cd "src/js/src"
|
|
||||||
|
|
||||||
|
cd "firefox-$MINORVERSION/js/src"
|
||||||
|
|
||||||
|
echo Making Build Path...
|
||||||
mkdir _build
|
mkdir _build
|
||||||
cd _build
|
cd _build
|
||||||
|
# https://clang.llvm.org/docs/CrossCompilation.html
|
||||||
|
echo Configuring build...
|
||||||
|
../configure --disable-jemalloc --with-system-zlib --with-system-icu --prefix="$BUILDPATH/bin" --with-intl-api --enable-optimize --target=x86_64-pc-linux-gnu
|
||||||
|
|
||||||
|
|
||||||
../configure --disable-jemalloc --with-system-zlib --with-system-icu --prefix=$BUILDPATH \
|
echo Compiling...
|
||||||
--with-intl-api --enable-optimize
|
make -k
|
||||||
|
make -k install
|
||||||
|
|
||||||
make
|
echo Finished Building!
|
||||||
make install
|
|
||||||
|
cd $BUILDPATH/bin/include
|
||||||
|
|
||||||
|
echo Compressing build fragment...
|
||||||
|
tar -cJf $VERSION.tar.xz mozjs-$MAJORVERSION/
|
||||||
|
echo Calculating sum of fragment...
|
||||||
|
sha256sum $VERSION.tar.xz > $VERSION.tar.xz.sha256
|
||||||
|
|
||||||
|
echo Moving fragments to output
|
||||||
|
mv $VERSION.tar.xz $VERSION.tar.xz.sha256 $OUTPUT
|
||||||
Reference in New Issue
Block a user