LSPosed / MagiskOnWSALocal

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

[Bug] sed: can't read /tmp/wsa-build-V5zjgLea6j_/system_root_merged/vendor/etc/permissions/windows.permissions.xml: No such file or directory #664

Closed LokiSharp closed 1 year ago

LokiSharp commented 1 year ago

Steps to reproduce/复现步骤

  1. run"./scripts/run.sh"

Expected behaviour/预期行为

build sucessfully

Actual behaviour/实际行为

Build: an error has occurred, exit

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

21e80a355e9d4a7a358d2c2905f6d3bf75e4681b

Linux distribution info/Linux 发行版信息

Linux version 5.15.90.1-microsoft-standard-WSL2 (oe-user@oe-host) (x86_64-msft-linux-gcc (GCC) 9.3.0, GNU ld (GNU Binutils) 2.34.0.20200220) #1 SMP Fri Jan 27 02:56:13 UTC 2023 Debian GNU/Linux 12 (bookworm)

Windows version/Windows 版本

22621.2134

Build Parameters/构建参数

COMMAND_LINE=--arch x64 --release-type retail --root-sol magisk --gapps-brand MindTheGapps --compress --magisk-ver stable --compress-format 7z INFO: Architecture: x64 INFO: Release Type: retail INFO: Magisk Version: stable INFO: GApps Brand: MindTheGapps INFO: GApps Variant: pico INFO: Root Solution: magisk INFO: Compress Format: 7z Build: RELEASE_TYPE=Retail Generate Download Links Generating WSA download link: arch=x64 release_type=Retail

Version requirement/版本要求

Logs/日志

[//]: <> (Don't modify above) ``` resize2fs 1.47.0 (5-Feb-2023) Resizing the filesystem on /tmp/wsa-build-zjEP3AanmU_/wsa/x64/vendor.img to 61114 (4k) blocks. The filesystem on /tmp/wsa-build-zjEP3AanmU_/wsa/x64/vendor.img is now 61114 (4k) blocks long. Remove read-only flag for read-only EXT4 image done Add device administration features sed: can't read /tmp/wsa-build-zjEP3AanmU_/system_root_merged/vendor/etc/permissions/windows.permissions.xml: No such file or directory setfattr: /tmp/wsa-build-zjEP3AanmU_/system_root_merged/vendor/etc/permissions/windows.permissions.xml: No such file or directory Build: an error has occurred, exit Cleanup Work Directory deactivate python3 venv Cleanup Download Directory ``` [//]: <> (Don't modify below)
stringfold commented 1 year ago

Just in case it helps -- I was getting this error message after manually updating build.sh with the changes for fix #620 and getting line 675 wrong (using && instead of II)

asahinobori commented 1 year ago

Just in case it helps -- I was getting this error message after manually updating build.sh with the changes for fix #620 and getting line 675 wrong (using && instead of II)

thanks for your reminder, it is realy helpful.
I just copy '&& "$WSA_MAJOR_VER" -lt 2306' into each modified line, but correct line 675 is '|| "$WSA_MAJOR_VER" -ge 2306'
fix that will fix this problem described above