From 2fe21deea8b56948ea6642aefd2286a267df68eb Mon Sep 17 00:00:00 2001 From: Azalea <22280294+hykilpikonna@users.noreply.github.com> Date: Wed, 22 Oct 2025 12:08:39 +0800 Subject: [PATCH] [F] Fix windows binary mixed with unix --- tools/build_pkg.sh | 11 ++++------- 1 file changed, 4 insertions(+), 7 deletions(-) diff --git a/tools/build_pkg.sh b/tools/build_pkg.sh index 0c148e38..808cc8dd 100755 --- a/tools/build_pkg.sh +++ b/tools/build_pkg.sh @@ -62,11 +62,6 @@ cp "$DIR/../target/x86_64-pc-windows-gnu/release/hyfetch.exe" wheel/hyfetch/rust sed -i 's/Tag: py3-none-.*/Tag: py3-none-win32/' wheel/*.dist-info/WHEEL python "$DIR/build_rehash.py" wheel -# Zip to -win32.whl -#new_name=${file/-any/-win32} -#cd wheel && zip -qq -y -r "../$new_name" * && cd .. -#twine check "$new_name" - # Zip to -win_amd64.whl # Since pypi doesn't allow two identical files with different names to be uploaded # We need to change the zip content a little bit for win_amd64 @@ -79,8 +74,10 @@ twine check "$new_name" # ================= # Build for linux -# Now we're done with windows, delete the git folder -rm -rf wheel/git +# Now we're done with windows, delete wheel and unzip again +echo "> Building for other platforms" +rm -rf wheel +unzip -qq "$file" -d wheel function build_for_platform() { ff_platform=$1