build: optimize build script

This commit is contained in:
wanghe-fit2cloud 2025-05-09 14:14:46 +08:00
parent a401829ff3
commit 6dd99dbb25
2 changed files with 9 additions and 9 deletions

View file

@ -57,9 +57,7 @@ builds:
archives:
- formats: [ 'tar.gz' ]
builds:
- core
- agent
ids: [core, agent]
name_template: "1panel-v{{ .Version }}-{{ .Os }}-{{ .Arch }}{{- if .Arm }}v{{ .Arm }}{{ end }}"
wrap_in_directory: true
files:

View file

@ -21,14 +21,16 @@ if [ ! -f "1panel-agent.service" ]; then
wget https://github.com/1Panel-dev/installer/raw/v2/1panel-agent.service
fi
if [ ! -d "lang" ]; then
mkdir -p lang && cd lang
for lang in en fa pt-BR ru zh; do
wget -q https://github.com/1Panel-dev/installer/raw/v2/lang/$lang.sh
done
cd ..
fi
if [ ! -f "GeoIP.mmdb" ]; then
wget https://resource.fit2cloud.com/1panel/package/v2/geo/GeoIP.mmdb
fi
if [ ! -f "lang.tar.gz" ]; then
wget https://resource.fit2cloud.com/1panel/package/v2/language/lang.tar.gz
tar zxvf lang.tar.gz
rm -rf lang.tar.gz
fi
chmod 755 1pctl install.sh