mirror of
https://github.com/yhl452493373/frps-panel.git
synced 2026-04-04 06:16:59 +08:00
update makefile and package.sh
This commit is contained in:
3
Makefile
3
Makefile
@@ -4,7 +4,8 @@ export GOOS=linux
|
||||
export GOARCH=amd64
|
||||
|
||||
build: frps-panel
|
||||
cp ./config/frps-panel.ini ./bin/frps-panel.ini
|
||||
cp ./config/frps-panel.toml ./bin/frps-panel.toml
|
||||
cp ./config/frps-tokens.toml ./bin/frps-tokens.toml
|
||||
cp -r ./assets/ ./bin/assets/
|
||||
|
||||
frps-panel:
|
||||
|
||||
@@ -5,7 +5,8 @@ package: copy
|
||||
sh ./package.sh
|
||||
|
||||
copy: build
|
||||
cp ./config/frps-panel.ini ./release/frps-panel.ini
|
||||
cp ./config/frps-panel.toml ./release/frps-panel.toml
|
||||
cp ./config/frps-tokens.toml ./release/frps-tokens.toml
|
||||
cp -r ./assets/ ./release/assets/
|
||||
|
||||
build:
|
||||
|
||||
@@ -13,7 +13,7 @@ for binFile in $list
|
||||
newBinFile=${newBinFile%%.exe*}
|
||||
fi
|
||||
cp "$binFile" "$tmpFile"
|
||||
zip -r "$newBinFile-$version".zip "$tmpFile" frps-panel.ini assets -x "*.git*" "*.idea*" "*.DS_Store" "*.contentFlavour"
|
||||
zip -r "$newBinFile-$version".zip "$tmpFile" frps-panel.toml frps-tokens.toml assets -x "*.git*" "*.idea*" "*.DS_Store" "*.contentFlavour"
|
||||
rm -rf "$binFile" "$tmpFile"
|
||||
done
|
||||
rm -rf frps-panel.ini assets
|
||||
rm -rf frps-panel.toml frps-tokens.toml assets
|
||||
|
||||
Reference in New Issue
Block a user