LSPosed / MagiskOnWSALocal

Integrate Magisk root and Google Apps into WSA (Windows Subsystem for Android)
GNU Affero General Public License v3.0
9.45k stars 22.92k forks source link

[Bug] Zip Path not defined error #733

Closed manu2551988 closed 10 months ago

manu2551988 commented 10 months ago

Steps to reproduce/复现步骤

  1. Download latest repository
  2. Go to path ./scripts
  3. Open PowerShell as admin
  4. Run command cd filepath
  5. Run command wsl
  6. Run command ./run.sh
  7. Navigate through instruction onscreen
  8. Select Insider Fast -- Make sure latest build i.e. WSA 2310 zip with file name as wsa-WIF.zip pasted in download folder
  9. Wait for installation steps to complete

Expected behaviour/预期行为

WSA 2310 folder should be extracted into output folder

Actual behaviour/实际行为

Installation throws error

Status Legend: (OK):download completed. Extract WSA Traceback (most recent call last): File "/mnt/c/MagiskOnWSALocal/scripts/extractWSA.py", line 109, in <module> with zipfile.ZipFile(zip_path) as zip: NameError: name 'zip_path' is not defined. Did you mean: 'zip_name'? ERROR: Unzip WSA failed, is the download incomplete? Build: an error has occurred, exit

MagiskOnWSALocal commit full SHA/MagiskOnWSALocal 提交的完整哈希

d44a77b

Linux distribution info/Linux 发行版信息

Ubuntu 22.04.3 LTS

Windows version/Windows 版本

22623.885

Build Parameters/构建参数

COMMAND_LINE=--arch x64 --release-type WIF --root-sol magisk --gapps-brand MindTheGapps --magisk-ver stable INFO: Architecture: x64 INFO: Release Type: WIF INFO: Magisk Version: stable INFO: GApps Brand: MindTheGapps INFO: GApps Variant: pico INFO: Root Solution: magisk Build: RELEASE_TYPE=Insider Fast Generate Download Links Generating WSA download link: arch=x64 release_type=Insider Fast

Version requirement/版本要求

Logs/日志

[//]: <> (Don't modify above) ``` # Download Results: gid |stat|avg speed |path/URI ======+====+===========+======================================================= a660b5|OK | 0B/s|../download/wsa-WIF.zip 604e41|OK | 3.8MiB/s|../download/Microsoft.VCLibs.140.00_x64.appx ce00fa|OK | 9.9MiB/s|../download/magisk-stable.zip 457feb|OK | 2.7MiB/s|../download/Microsoft.UI.Xaml.2.8_x64.appx 4a0daa|OK | 3.4MiB/s|../download/Microsoft.VCLibs.140.00.UWPDesktop_x64.appx 65b2aa|OK | 13MiB/s|../download/MindTheGapps-x64-13.0.zip Status Legend: (OK):download completed. Extract WSA Traceback (most recent call last): File "/mnt/c/MagiskOnWSALocal/scripts/extractWSA.py", line 109, in with zipfile.ZipFile(zip_path) as zip: NameError: name 'zip_path' is not defined. Did you mean: 'zip_name'? ERROR: Unzip WSA failed, is the download incomplete? Build: an error has occurred, exit ``` [//]: <> (Don't modify below)

Screenshot 2023-11-02 194131