Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug] ERROR: Invalid Compress Format: --compress-format #779

Closed
1 task done
Doddddd opened this issue Mar 4, 2024 · 1 comment
Closed
1 task done

[Bug] ERROR: Invalid Compress Format: --compress-format #779

Doddddd opened this issue Mar 4, 2024 · 1 comment
Labels
bug Something isn't working

Comments

@Doddddd
Copy link
Contributor

Doddddd commented Mar 4, 2024

Steps to reproduce/复现步骤

./build.sh --arch x64 --release-type WIF --root-sol kernelsu --compress --compress-format 7z

Expected behaviour/预期行为

INFO: Compress Format: 7z

Actual behaviour/实际行为

ERROR: Invalid Compress Format: --compress-format

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

8950e28

Linux distribution info/Linux 发行版信息

Linux Surface 6.7.6-arch1-1-surface #1 SMP PREEMPT_DYNAMIC Tue, 27 Feb 2024 19:53:26 +0000 x86_64 GNU/Linux

Windows version/Windows 版本

null

Build Parameters/构建参数

COMMAND_LINE=--arch x64 --release-type WIF --root-sol kernelsu --compress --compress-format 7z
INFO: Architecture: x64
INFO: Release Type: WIF
INFO: Magisk Version: stable
INFO: Root Solution: kernelsu
ERROR: Invalid Compress Format: --compress-format

Usage:
--arch Architecture of WSA.

                    Possible values: x64, arm64
                    Default: x64

--release-type      Release type of WSA.
                    RP means Release Preview, WIS means Insider Slow, WIF means Insider Fast.

                    Possible values: retail, RP, WIS, WIF
                    Default: retail

--magisk-ver        Magisk version.

                    Possible values: stable, beta, canary, debug, release
                    Default: stable

--root-sol          Root solution.
                    "none" means no root.

                    Possible values: magisk, kernelsu, none
                    Default: magisk

--compress-format   Compress format of output file.

                    Possible values: 7z, zip, none
                    Default: none

Additional Options:
--offline Build WSA offline
--magisk-custom Install custom Magisk
--skip-download-wsa Skip download WSA
--help Show this help message and exit

Example:
./build.sh --release-type RP --magisk-ver beta
./build.sh --arch arm64 --release-type WIF
./build.sh --release-type WIS
./build.sh --offline --magisk-custom
./build.sh --release-type WIF --magisk-custom --magisk-ver release

[✘] ~/MagiskOnWSALocal/scripts > ./run.sh^C
[✘] ~/MagiskOnWSALocal/scripts > --arch x64 --release-type WIF --root-sol kernelsu --compress --compress-format 7z^C
[✘] ~/MagiskOnWSALocal/scripts > ./build.sh --arch x64 --release-type WIF --root-sol kernelsu --compress-format 7z
INFO: Architecture: x64
INFO: Release Type: WIF
INFO: Magisk Version: stable
INFO: Root Solution: kernelsu
INFO: Compress Format: 7z
INFO: Release Name: Insider Fast

Generating WSA Download Links
Generating WSA download link: arch=x64 release_type=Insider Fast

^CTraceback (most recent call last):
File "/home/test/MagiskOnWSALocal/scripts/generateWSALinks.py", line 77, in
out = session.post(
^^^^^^^^^^^^^
File "/home/test/MagiskOnWSALocal/python3-env/lib/python3.11/site-packages/requests/sessions.py", line 637, in post
return self.request("POST", url, data=data, json=json, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/MagiskOnWSALocal/python3-env/lib/python3.11/site-packages/requests/sessions.py", line 589, in request
resp = self.send(prep, **send_kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/MagiskOnWSALocal/python3-env/lib/python3.11/site-packages/requests/sessions.py", line 703, in send
r = adapter.send(request, **kwargs)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/home/test/MagiskOnWSALocal/python3-env/lib/python3.11/site-packages/requests/adapters.py", line 486, in send
resp = conn.urlopen(
^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/urllib3/connectionpool.py", line 715, in urlopen
httplib_response = self._make_request(
^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/urllib3/connectionpool.py", line 404, in _make_request
self._validate_conn(conn)
File "/usr/lib/python3.11/site-packages/urllib3/connectionpool.py", line 1058, in validate_conn
conn.connect()
File "/usr/lib/python3.11/site-packages/urllib3/connection.py", line 419, in connect
self.sock = ssl_wrap_socket(
^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/urllib3/util/ssl
.py", line 449, in ssl_wrap_socket
ssl_sock = ssl_wrap_socket_impl(
^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/site-packages/urllib3/util/ssl
.py", line 493, in _ssl_wrap_socket_impl
return ssl_context.wrap_socket(sock, server_hostname=server_hostname)
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/ssl.py", line 517, in wrap_socket
return self.sslsocket_class._create(
^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
File "/usr/lib/python3.11/ssl.py", line 1108, in _create
self.do_handshake()
File "/usr/lib/python3.11/ssl.py", line 1383, in do_handshake
self._sslobj.do_handshake()
KeyboardInterrupt
Build: an error has occurred, exit

Cleanup Work Directory
deactivate python3 venv
Cleanup Download Directory

Version requirement/版本要求

  • I am using latest commit of MagiskOnWSALocal/我正在使用最新 commit 的版本

Logs/日志

# Replace this line with the log / 将此行用日志替换
@Doddddd Doddddd added the bug Something isn't working label Mar 4, 2024
@Howard20181
Copy link
Member

f78b9ea

@github-actions github-actions bot locked and limited conversation to collaborators Mar 4, 2024
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants