From 8a27c67a1ab1842285cb5e8c28b8511d1675efeb Mon Sep 17 00:00:00 2001 From: Bert van der Weerd Date: Mon, 1 Mar 2021 12:59:56 +0100 Subject: [PATCH] Fixing branding issues related to themes --- build.sh | 45 +++++++++++++++---------------------------- installer_win.sh | 50 ++++++++++++++++++++++++++---------------------- 2 files changed, 42 insertions(+), 53 deletions(-) diff --git a/build.sh b/build.sh index 85a0096..d6af9c9 100644 --- a/build.sh +++ b/build.sh @@ -69,8 +69,8 @@ ac_add_options --enable-optimize # Branding ac_add_options --enable-update-channel=release -ac_add_options --with-app-name=${pkgname} -ac_add_options --with-app-basename=${_pkgname} +# suspect: ac_add_options --with-app-name=${pkgname} +# suspect: ac_add_options --with-app-basename=${_pkgname} ac_add_options --with-branding=browser/branding/${pkgname} ac_add_options --with-distribution-id=io.gitlab.${pkgname}-community ac_add_options --with-unsigned-addon-scopes=app,system @@ -147,7 +147,7 @@ END # just a straight copy for now.. cp ../mozconfig . - + cd .. echo "do_patches: done." } @@ -168,31 +168,21 @@ build() { -package() { - echo "package: begin." + +artifacts() { + echo "artifacts: begin." if [ ! -d firefox-$pkgver ]; then exit 1; fi cd firefox-$pkgver - + ./mach package if [ $? -ne 0 ]; then exit 1; fi - cd .. - echo "package: done." -} - - - -installer_win() { - echo "installer_win: begin." - if [ ! -d firefox-$pkgver ]; then exit 1; fi - cd firefox-$pkgver - # there is just too much garbage in this installer function to # have it all here.. . ../installer_win.sh cd .. - echo "installer_win: done." + echo "artifacts: done." } @@ -226,12 +216,8 @@ if [[ "$*" == *build* ]]; then build done_something=1 fi -if [[ "$*" == *package* ]]; then - package - done_something=1 -fi -if [[ "$*" == *installer_win* ]]; then - installer_win +if [[ "$*" == *artifacts* ]]; then + artifacts done_something=1 fi @@ -240,12 +226,11 @@ if (( done_something == 0 )); then cat < librewolf-$pkgver.en-US.win64.zip.sha256sum - if [ $? -ne 0 ]; then exit 1; fi - # copy the resulting zip file - rm -vf ../../../librewolf-$pkgver.en-US.win64.zip* - cp -v librewolf-$pkgver.en-US.win64.zip* ../../.. -cd ../.. + +# clean garbage files +cd librewolf ; rm -rf maintenanceservice* pingsender.exe firefox.*.xml precomplete removed-files ; cd .. + + +# be sure to remove the previous zip file.. +rm -f librewolf-$pkgver.en-US.win64.zip* +zip -r9 librewolf-$pkgver.en-US.win64.zip librewolf +if [ $? -ne 0 ]; then exit 1; fi +sha256sum.exe librewolf-$pkgver.en-US.win64.zip > librewolf-$pkgver.en-US.win64.zip.sha256sum +if [ $? -ne 0 ]; then exit 1; fi # generate the .nsi intaller file. -cat >../installer_win.nsi <installer_win.nsi < librewolf-$pkgver.en-US.win64-setup.exe.sha256sum if [ $? -ne 0 ]; then exit 1; fi + + rm -f installer_win.nsi popd