finished with Linux repo scripts
This commit is contained in:
parent
a8479c12c3
commit
1501493ca6
4 changed files with 44 additions and 35 deletions
|
|
@ -26,13 +26,16 @@ help :
|
||||||
@echo " update - Only fetch the LibreWolf version-release files. used by 'fetch'"
|
@echo " update - Only fetch the LibreWolf version-release files. used by 'fetch'"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo " all - Build librewolf and it's artifacts."
|
@echo " all - Build librewolf and it's artifacts."
|
||||||
|
@echo ""
|
||||||
|
@echo " dir - just extract and patch the LW tarball."
|
||||||
|
@echo " pre-build - Perform 'target_type' specific pre-build tasks."
|
||||||
@echo " build - Perform './mach build' on the extracted tarball."
|
@echo " build - Perform './mach build' on the extracted tarball."
|
||||||
@echo " package - multilocale package."
|
@echo " package - Build symbols, and multilocale package."
|
||||||
|
@echo " post-package - Perform 'target_type' specific post-package tasks."
|
||||||
@echo " artifacts - Build the artifacts"
|
@echo " artifacts - Build the artifacts"
|
||||||
@echo ""
|
@echo ""
|
||||||
@echo " clean - Remove output files and temporary files."
|
@echo " clean - Remove output files and temporary files."
|
||||||
@echo " veryclean - Remove even more stuff."
|
@echo " veryclean - Remove even more stuff."
|
||||||
@echo " dir - just extract and patch the LW tarball."
|
|
||||||
@echo " bootstrap - try to set up the build environment."
|
@echo " bootstrap - try to set up the build environment."
|
||||||
@echo " setup-debian, setup-fedora - needed packages."
|
@echo " setup-debian, setup-fedora - needed packages."
|
||||||
@echo ""
|
@echo ""
|
||||||
|
|
@ -79,8 +82,8 @@ veryclean : clean
|
||||||
# this is the place to apply patches and create a custom mozconfig
|
# this is the place to apply patches and create a custom mozconfig
|
||||||
pre-build :
|
pre-build :
|
||||||
mv -v librewolf-$(full_version)/mozconfig librewolf-$(full_version)/mozconfig.std
|
mv -v librewolf-$(full_version)/mozconfig librewolf-$(full_version)/mozconfig.std
|
||||||
cp -v $(assets)/mozconfig.$(arch) librewolf-$(full_version)/mozconfig
|
cp -v assets/mozconfig.$(arch) librewolf-$(full_version)/mozconfig
|
||||||
./$(assets)/pre_build_patches_mozconfig.sh
|
./assets/pre_build_patches_mozconfig.sh
|
||||||
|
|
||||||
build : dir
|
build : dir
|
||||||
(cd librewolf-$(full_version) && ./mach build)
|
(cd librewolf-$(full_version) && ./mach build)
|
||||||
|
|
@ -93,7 +96,7 @@ package : dir
|
||||||
|
|
||||||
post-package :
|
post-package :
|
||||||
cp -v librewolf-$(full_version)/obj-$(arch)-pc-linux-gnu/dist/librewolf-$(full_version).en-US.linux-$(arch).tar.bz2 .
|
cp -v librewolf-$(full_version)/obj-$(arch)-pc-linux-gnu/dist/librewolf-$(full_version).en-US.linux-$(arch).tar.bz2 .
|
||||||
./$(assets)/post_package_distini_etc.sh
|
./assets/post_package_distini_etc.sh
|
||||||
|
|
||||||
artifacts :
|
artifacts :
|
||||||
${MAKE} -f assets/$(target_type)/artifacts.mk artifacts
|
${MAKE} -f assets/$(target_type)/artifacts.mk artifacts
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
. mozconfig.std
|
. "$topsrcdir/mozconfig.std"
|
||||||
|
|
||||||
ac_add_options --target=aarch64-pc-linux-gnu
|
ac_add_options --target=aarch64-pc-linux-gnu
|
||||||
ac_add_options --enable-linker=lld
|
ac_add_options --enable-linker=lld
|
||||||
|
|
|
||||||
|
|
@ -1,4 +1,4 @@
|
||||||
. mozconfig.std
|
. "$topsrcdir/mozconfig.std"
|
||||||
|
|
||||||
ac_add_options --target=x86_64-pc-linux-gnu
|
ac_add_options --target=x86_64-pc-linux-gnu
|
||||||
ac_add_options --enable-bootstrap
|
ac_add_options --enable-bootstrap
|
||||||
|
|
|
||||||
|
|
@ -15,25 +15,31 @@ echo assets/post_package_distini_etc.sh: Starting Post-package script for versio
|
||||||
|
|
||||||
# See: https://gitlab.com/librewolf-community/browser/linux/-/blob/master/scripts/5_Configure_Binary_Tarball.sh
|
# See: https://gitlab.com/librewolf-community/browser/linux/-/blob/master/scripts/5_Configure_Binary_Tarball.sh
|
||||||
|
|
||||||
#
|
binary_tarball=librewolf-$full_version.en-US.linux-$arch.tar.bz2
|
||||||
# 1) Script settings
|
|
||||||
#
|
|
||||||
|
|
||||||
# Setup Script Variables
|
|
||||||
BINARY_TARBALL=$1;
|
|
||||||
TOGGLE_SETTINGS_SCRIPT=$2;
|
|
||||||
LAUNCHER_SCRIPT=$3;
|
|
||||||
CI_PROJECT_DIR=${CI_PROJECT_DIR:-$(realpath $(dirname $0)/../)}
|
|
||||||
_SCRIPT_FOLDER=$(realpath $(dirname $0));
|
|
||||||
_EXTRACTED_TARBALL_FOLDER=$_SCRIPT_FOLDER/librewolf;
|
|
||||||
_SETTINGS_TAG=${SETTINGS_TAG:-'7.2-hotfix'}
|
|
||||||
_SETTINGS_REPO='https://gitlab.com/librewolf-community/settings.git';
|
|
||||||
|
|
||||||
echo "BINARY_TARBALL: $BINARY_TARBALL"
|
# Extract tarball
|
||||||
echo "TOGGLE_SETTINGS_SCRIPT: $TOGGLE_SETTINGS_SCRIPT"
|
mkdir -p work
|
||||||
echo "LAUNCHER_SCRIPT: $LAUNCHER_SCRIPT"
|
tar --strip-components=1 -xf $binary_tarball -C work
|
||||||
echo "CI_PROJECT_DIR: $CI_PROJECT_DIR"
|
|
||||||
echo "_SCRIPT_FOLDER: $_SCRIPT_FOLDER"
|
# Add distribution.ini
|
||||||
echo "_EXTRACTED_TARBALL_FOLDER: $_EXTRACTED_TARBALL_FOLDER"
|
distini="work/distribution/distribution.ini"
|
||||||
echo "_SETTINGS_TAG: $_SETTINGS_TAG"
|
install -Dvm644 /dev/stdin $distini <<END
|
||||||
echo "_SETTINGS_REPO: $_SETTINGS_REPO"
|
[Global]
|
||||||
|
id=io.gitlab.librewolf-community
|
||||||
|
version=1.0
|
||||||
|
about=LibreWolf
|
||||||
|
|
||||||
|
[Preferences]
|
||||||
|
app.distributor="LibreWolf Community"
|
||||||
|
app.distributor.channel=librewolf
|
||||||
|
app.partner.librewolf=librewolf
|
||||||
|
END
|
||||||
|
|
||||||
|
# Create Appstream metadate file
|
||||||
|
export DATE=$(date +%Y-%m-%d)
|
||||||
|
envsubst < assets/linux-base/content/io.gitlab.librewolf-community.appdata.xml.in > work/io.gitlab.librewolf-community.appdata.xml
|
||||||
|
|
||||||
|
# Recompress tarball
|
||||||
|
rm -f $binary_tarball
|
||||||
|
tar -jvcf $binary_tarball -C work .
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue