缘由
在一些小型的嵌入式设备上,Flash通常很小。
所以需要压缩二进制文件以便进行存储。
使用方法
upx -k --best --lzma ./v2ray
Ultimate Packer for eXecutables
Copyright (C) 1996 - 2017
UPX 3.94 Markus Oberhumer, Laszlo Molnar & John Reiser May 12th 2017
File size Ratio Format Name
-------------------- ------ ----------- -----------
12481048 -> 3247116 26.02% linux/arm v2ray
Packed 1 file.
[tomatoware][Buffalo:/tmp/mnt/sda2/compile/go]$ ls ./v2ray*
-rwxr-xr-x 1 root root 3247116 Feb 19 10:45 ./v2ray
-rwxr-xr-x 1 root root 12481048 Feb 19 10:45 ./v2ray.~
[tomatoware][Buffalo:/tmp/mnt/sda2/compile/go]$ ./v2ray --version
V2Ray 4.17 (Po) Custom
A unified platform for anti-censorship.
Code language: JavaScript (javascript)
Refer: https://github.com/v2ray/v2ray-core/issues/1560
了解 Starx's Home 的更多信息
Subscribe to get the latest posts sent to your email.
0 条评论