mirror of
https://github.com/rustdesk/rustdesk-server.git
synced 2024-11-24 20:56:10 +08:00
22 lines
541 B
Bash
Executable File
22 lines
541 B
Bash
Executable File
#!/usr/bin/env bash
|
|
# https://blog.cmj.tw/SynologyApp.htm 暂时不搞签名
|
|
/bin/rm -rf package
|
|
mkdir package
|
|
cd package
|
|
mkdir bin logs config
|
|
echo port=21116 > config/hbbs.conf
|
|
echo key= >> config/hbbs.conf
|
|
echo email= >> config/hbbs.conf
|
|
echo port=21117 > 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
|
|
#md5 package.tgz | awk '{print "checksum=\"" $4 "\""}' >> INFO
|
|
file=rustdesk-server-synology-x64.spk
|
|
tar -cvf $file *
|
|
mv $file ..
|