1
0
mirror of https://github.com/1Panel-dev/1Panel.git synced 2025-03-14 01:34:47 +08:00

feat: Optimize the packaging process

This commit is contained in:
wanghe-fit2cloud 2025-03-06 15:22:44 +08:00
parent e118a51ae0
commit e4c096295f
4 changed files with 12 additions and 12 deletions

View File

@ -9,12 +9,11 @@ before:
- chmod +x ./ci/script.sh
- ./ci/script.sh
- sed -i 's@ORIGINAL_VERSION=.*@ORIGINAL_VERSION=v{{ .Version }}@g' 1pctl
- cd ./core && go mod tidy
- cd ./agent && go mod tidy
builds:
- id: agent
main: ./agent/cmd/server/main.go
dir: agent
main: cmd/server/main.go
binary: 1panel-agent
flags:
- -tags=xpack
@ -35,7 +34,8 @@ builds:
- s390x
- id: core
main: ./core/cmd/server/main.go
dir: core
main: cmd/server/main.go
binary: 1panel-core
flags:
- -tags=xpack
@ -56,7 +56,7 @@ builds:
- s390x
archives:
- format: tar.gz
- formats: [ 'tar.gz' ]
builds:
- core
- agent

View File

@ -3,9 +3,9 @@ base:
mode: dev
remote_url:
repo_url: https://resource.fit2cloud.com/1panel/package
resource_url: https://resource.fit2cloud.com/1panel/resource
app_repo: https://apps-assets.fit2cloud.com
repo_url: https://resource.fit2cloud.com/1panel/package/v2
resource_url: https://resource.fit2cloud.com/1panel/resource/v2
log:
level: debug

View File

@ -22,13 +22,13 @@ if [ ! -f "1panel-agent.service" ]; then
fi
if [ ! -f "GeoIP.mmdb" ]; then
wget https://resource.1panel.pro/geo/GeoIP.mmdb
wget https://resource.fit2cloud.com/1panel/package/v2/geo/GeoIP.mmdb
fi
if [ ! -f "lang.tar.gz" ]; then
wget https://resource.1panel.pro/language/lang.tar.gz
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
chmod 755 1pctl install.sh

View File

@ -9,9 +9,9 @@ base:
version: v2.0.0
remote_url:
repo_url: https://resource.fit2cloud.com/1panel/package
app_repo: https://apps-assets.fit2cloud.com
resource_url: https://resource.fit2cloud.com/1panel/resource
repo_url: https://resource.fit2cloud.com/1panel/package/v2
resource_url: https://resource.fit2cloud.com/1panel/resource/v2
log:
level: debug