mirror of
https://github.com/yhl452493373/frps-panel.git
synced 2026-04-04 14:27:00 +08:00
17 lines
431 B
Bash
17 lines
431 B
Bash
#!/bin/bash
|
|
cd ./release || exit
|
|
rm -rf *.zip
|
|
list=$(ls frps-panel-*)
|
|
echo "$list"
|
|
for binFile in $list
|
|
do
|
|
tmpFile=frps-panel
|
|
if echo "$binFile" | grep -q -E "\.exe";then
|
|
tmpFile=frps-panel.exe
|
|
fi
|
|
cp "$binFile" "$tmpFile"
|
|
zip -r "$binFile".zip "$tmpFile" frps-panel.ini assets -x "*.git*" "*.idea*" "*.DS_Store" "*.contentFlavour"
|
|
rm -rf "$binFile" "$tmpFile"
|
|
done
|
|
rm -rf frps-panel.ini assets
|