diff --git a/Makefile b/Makefile index 82e8f4b..2ad5c5f 100644 --- a/Makefile +++ b/Makefile @@ -24,9 +24,9 @@ clean : rm -rf work 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 -f librewolf-$(shell cat version)-*.source.tar.gz + rm -f librewolf-$(shell cat version)-*.source.tar.gz* fetch : python3 mk.py fetch diff --git a/assets/mozconfig.windows32 b/assets/mozconfig.windows32 new file mode 100644 index 0000000..c65a3c8 --- /dev/null +++ b/assets/mozconfig.windows32 @@ -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 when building.. +#def deps_win32(): +# exec('rustup target add i686-pc-windows-msvc') +# \ No newline at end of file diff --git a/mk.py b/mk.py index 2360fbe..3f889f7 100644 --- a/mk.py +++ b/mk.py @@ -1,4 +1,4 @@ -#!/usr/bin/env python3 + #!/usr/bin/env python3 import os,sys,subprocess,os.path @@ -56,8 +56,11 @@ def patch(patchfile): # +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 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') @@ -66,7 +69,7 @@ def fetch(): 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') with open('version','r') as file: