rustdesk-server/spk.sh

21 lines
493 B
Bash
Raw Normal View History

2021-04-04 02:08:39 +08:00
#!/usr/bin/env bash
2021-04-04 02:09:49 +08:00
# https://blog.cmj.tw/SynologyApp.htm 暂时不搞签名
2021-04-04 02:08:39 +08:00
/bin/rm -rf package
mkdir package
cd package
mkdir bin logs config
echo port=21116 > config/hbbs.conf
echo key= >> config/hbbs.conf
echo port=21117 > config/hbbr.conf
echo key= >> config/hbbr.conf
cp ../target/release/hbbs bin/
cp ../target/release/hbbr bin/
strip bin/hbbs
strip bin/hbbr
tar czf ../spk/package.tgz ./*
cd ..
cd spk
VER=1.1.3
tar cf RustDeskServer-x64-$VER.spk ./*
mv RustDeskServer-x64-$VER.spk ..