]> glassweightruler.freedombox.rocks Git - Ventoy.git/blob - SQUASHFS/SRC/build_lzma.sh
最近收到一些特殊的错误报告,最后证明是非标准的Ventoy环境的原因。尤其是单分区下环境下使用 Ventoy 。
[Ventoy.git] / SQUASHFS / SRC / build_lzma.sh
1 #!/bin/bash
2
3 LIBDIR=$PWD/../LIB/LZMA
4
5 rm -rf $LIBDIR
6 rm -rf liblzma-master
7 unzip liblzma-master.zip
8
9 cd liblzma-master
10 ./configure --prefix=$LIBDIR --disable-xz --disable-xzdec --disable-lzmadec --disable-lzmainfo --enable-small
11 make -j 8 && make install
12
13 cd ..
14 rm -rf liblzma-master
15
16 if [ -d $LIBDIR ]; then
17 echo -e "\n========== SUCCESS ============\n"
18 else
19 echo -e "\n========== FAILED ============\n"
20 fi
21
22