Diskernet/scripts/build_setup.sh

23 lines
373 B
Bash
Raw Normal View History

2021-11-03 04:51:04 +00:00
#!/bin/sh
echo "Installing nexe and upx..."
mkdir -p bin/
mkdir -p build/
nexe || npm i -g nexe
2021-11-03 04:51:04 +00:00
curl -L -o upx.tar.xz https://github.com/upx/upx/releases/download/v3.96/upx-3.96-amd64_linux.tar.xz
tar -xJf upx.tar.xz
rm upx.tar.xz
sudo cp upx-3.96-amd64_linux/upx /usr/local/bin
rm -rf upx-3.96-amd64_linux
./dl-node.sh
cd ~/.nexe/
chmod +x *
upx * || :
echo "Done"