improved shell script
This commit is contained in:
parent
2192015575
commit
6885c77040
2 changed files with 92 additions and 2 deletions
|
|
@ -1,3 +1,18 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "post_build_distini_etc.sh: Hello, world!"
|
||||
set -e
|
||||
|
||||
version=$(cat version)
|
||||
release=$(cat release)
|
||||
source_release=$(cat source_release)
|
||||
tmp=""
|
||||
[ $release -gt 1 ] && tmp=-$release
|
||||
full_version=$version-$source_release$tmp
|
||||
|
||||
echo assets/post_build_distini_etc.sh: Starting Pre-build script for version $full_version.
|
||||
|
||||
#
|
||||
|
||||
# stuff...
|
||||
|
||||
|
||||
|
|
|
|||
|
|
@ -1,6 +1,81 @@
|
|||
#!/bin/sh
|
||||
|
||||
echo "pre_build_patches_mozconfig.sh: Hello, world!"
|
||||
set -e
|
||||
|
||||
version=$(cat version)
|
||||
release=$(cat release)
|
||||
source_release=$(cat source_release)
|
||||
tmp=""
|
||||
[ $release -gt 1 ] && tmp=-$release
|
||||
full_version=$version-$source_release$tmp
|
||||
|
||||
echo assets/pre_build_patches_mozconfig.sh: Starting Pre-build script for version $full_version.
|
||||
|
||||
#
|
||||
|
||||
cat > librewolf-$full_version/mozconfig <<END
|
||||
ac_add_options --enable-application=browser
|
||||
mk_add_options MOZ_OBJDIR=${srcdir}/firefox-${pkgver}/obj
|
||||
|
||||
# to build on ubuntu and pick up clang
|
||||
ac_add_options NODEJS=/usr/lib/nodejs-mozilla/bin/node
|
||||
|
||||
# This supposedly speeds up compilation (We test through dogfooding anyway)
|
||||
ac_add_options --disable-tests
|
||||
ac_add_options --disable-debug
|
||||
|
||||
ac_add_options --prefix=/usr
|
||||
ac_add_options --enable-release
|
||||
ac_add_options --enable-hardening
|
||||
ac_add_options --enable-rust-simd
|
||||
|
||||
# attempt to address flatpak dbus issues
|
||||
ac_add_options --enable-dbus
|
||||
|
||||
# Branding
|
||||
ac_add_options --enable-update-channel=release
|
||||
ac_add_options --with-app-name=librewolf
|
||||
# ac_add_options --with-app-basename=LibreWolf
|
||||
|
||||
# switch to env vars like in librewolf source repo
|
||||
# this is in browser/branding/librewolf/configure.sh as well
|
||||
# so it _should_ already be applied, buuuuut just in case?
|
||||
|
||||
export MOZ_APP_NAME=librewolf
|
||||
export MOZ_APP_BASENAME=LibreWolf
|
||||
export MOZ_APP_PROFILE=librewolf
|
||||
export MOZ_APP_VENDOR=LibreWolf
|
||||
export MOZ_APP_DISPLAYNAME=LibreWolf
|
||||
|
||||
ac_add_options --with-branding=browser/branding/librewolf
|
||||
# ac_add_options --with-distribution-id=io.gitlab.librewolf-community
|
||||
ac_add_options --with-unsigned-addon-scopes=app,system
|
||||
ac_add_options --allow-addon-sideload
|
||||
export MOZ_REQUIRE_SIGNING=
|
||||
|
||||
# System libraries
|
||||
# ac_add_options --with-system-nspr
|
||||
# ac_add_options --with-system-nss
|
||||
|
||||
# Features
|
||||
ac_add_options --enable-alsa
|
||||
ac_add_options --enable-jack
|
||||
ac_add_options --disable-crashreporter
|
||||
ac_add_options --disable-updater
|
||||
ac_add_options --disable-tests
|
||||
|
||||
# obsoleted?
|
||||
# TODO: use source/assets/moczonfig in the future
|
||||
mk_add_options MOZ_CRASHREPORTER=0
|
||||
mk_add_options MOZ_DATA_REPORTING=0
|
||||
mk_add_options MOZ_SERVICES_HEALTHREPORT=0
|
||||
mk_add_options MOZ_TELEMETRY_REPORTING=0
|
||||
|
||||
# options for ci / weaker build systems
|
||||
# mk_add_options MOZ_MAKE_FLAGS="-j4"
|
||||
# ac_add_options --enable-linker=gold
|
||||
|
||||
# required for 95.0 for now, it seems
|
||||
ac_add_options --without-wasm-sandboxed-libraries
|
||||
END
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue