This commit is contained in:
Bert van der Weerd 2022-03-24 14:21:34 +01:00
parent 7f3990f182
commit 07973526bd
No known key found for this signature in database
GPG key ID: 4CFABB96ADE0F5B1
3 changed files with 19 additions and 5 deletions

View file

@ -26,7 +26,7 @@ clean :
veryclean : clean veryclean : clean
rm -f librewolf-$(shell cat version)*.en-US.win64* sha256sums.txt upload.txt firefox-$(shell cat version)*.en-US.win64.zip rm -f librewolf-$(shell cat version)*.en-US.win64* sha256sums.txt upload.txt firefox-$(shell cat version)*.en-US.win64.zip
rm -rf librewolf-$(shell cat version)-$(shell cat source_release) rm -rf librewolf-$(shell cat version)-$(shell cat source_release)
rm -f librewolf-$(shell cat version)-*.source.tar.gz rm -f librewolf-$(shell cat version)-*.source.tar.gz*
fetch : fetch :
python3 mk.py fetch python3 mk.py fetch

View file

@ -0,0 +1,11 @@
################
# build 32-bit version..
#ac_add_options --target=x86_64-pc-mingw32
ac_add_options --target=i686-pc-mingw32
#ac_add_options --enable-bootstrap
ac_add_options --without-wasm-sandboxed-libraries
# currently fails on <stdatomic.h> when building..
#def deps_win32():
# exec('rustup target add i686-pc-windows-msvc')
#

7
mk.py
View file

@ -56,8 +56,11 @@ def patch(patchfile):
# #
def fetch(): def deps_win32():
exec('rustup target add i686-pc-windows-msvc')
def fetch():
exec('wget -q -O version https://gitlab.com/librewolf-community/browser/source/-/raw/main/version') exec('wget -q -O version https://gitlab.com/librewolf-community/browser/source/-/raw/main/version')
exec('wget -q -O source_release https://gitlab.com/librewolf-community/browser/source/-/raw/main/release') exec('wget -q -O source_release https://gitlab.com/librewolf-community/browser/source/-/raw/main/release')
exec('wget -O librewolf-$(cat version)-$(cat source_release).source.tar.gz https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-$(cat version)-$(cat source_release).source.tar.gz?job=Build') exec('wget -O librewolf-$(cat version)-$(cat source_release).source.tar.gz https://gitlab.com/librewolf-community/browser/source/-/jobs/artifacts/main/raw/librewolf-$(cat version)-$(cat source_release).source.tar.gz?job=Build')
@ -66,7 +69,7 @@ def fetch():
def build(debug=False): def build(debug=False):
exec('rm -rf librewolf-$(cat version)') exec('rm -rf librewolf-$(cat version)-$(cat source_release)')
exec('tar xf librewolf-$(cat version)-$(cat source_release).source.tar.gz') exec('tar xf librewolf-$(cat version)-$(cat source_release).source.tar.gz')
with open('version','r') as file: with open('version','r') as file: