-
-
Notifications
You must be signed in to change notification settings - Fork 816
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
Improve extract tarball package on windows. #5538
Comments
Does it support to extract 7z/bz2/xz? |
看了下,除了 7z 其他的基本都支持,不过 xmake-repo 有些包是 7z 的。。不然倒是可以将 7z 替换成这个。。安装包还小点 |
After looking at it, except for 7z, everything else is basically supported, but some xmake-repo packages are for 7z. . Otherwise, you can replace 7z with this one. . The installation package is a bit smaller |
现在上规模的大型库,解压两次实在太慢。反正只给 Windows 用,多带一个工具感觉没啥问题。 |
我是想做减法,目前塞了 7z.exe 和 curl.exe 。。我都想去掉。。我看 busybox 里有 wget ,要是它还是支持 7z ,我都可以把前两都去了,只塞 busybox。 |
Nowadays, for large-scale libraries, decompressing them twice is too slow. Anyway, it’s only for Windows, so it doesn’t feel like a problem to bring an extra tool. |
I want to do subtraction, and currently I have 7z.exe and curl.exe stuck. . I want to get rid of them all. . I see wget is included in busybox. If it still supports 7z, I can remove the first two and only add busybox. |
而且塞 busybox 还不好塞。。
而且 arm 版本的二进制似乎会很慢
另外,这个走的也是 mingw64 编译的,估计也不会太快。 |
我看 win10 以上好像自带 tar 么。。tar.gz/zip 本身就能解,可以优先用。。不过需要过滤掉 msys2 下的 tar |
I think win10 or above seems to come with tar. . tar.gz/zip can be solved by itself and can be used first. . But you need to filter out the tar under msys2 |
所以 优先尝试用 tar 去解压 tar.gz 应该还是可以的。。你试试 |
不行,看 log 好像都没去 find tar |
再试试 |
成功用 tar 解压了,但用 |
再试试 |
完美了。 |
try again |
Successfully decompressed with tar, but when decompressing with |
try again |
Perfect. |
Is your feature request related to a problem? Please describe.
7z extract tarball:
package.tar.gz
->package.gz
->src
Use tar:
package.tar.gz
->src
Describe the solution you'd like
Use
busybox tar ...
https://frippery.org/busybox
Describe alternatives you've considered
No response
Additional context
No response
The text was updated successfully, but these errors were encountered: