缘由

在一些小型的嵌入式设备上,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

分类: Linux

0 条评论

发表回复

Avatar placeholder

您的电子邮箱地址不会被公开。 必填项已用 * 标注

此站点使用Akismet来减少垃圾评论。了解我们如何处理您的评论数据