feat: Optimize the CI script

pull/7224/head
wanghe-fit2cloud 2024-11-29 15:11:13 +08:00
parent 23087bdb6f
commit 7327ee3ff8
7 changed files with 10 additions and 16 deletions

3
.gitignore vendored
View File

@ -22,14 +22,12 @@ build/1panel
*.iml *.iml
*.ipr *.ipr
# Test binary, built with `go test -c` # Test binary, built with `go test -c`
*.test *.test
# Output of the go coverage tool, specifically when used with LiteIDE # Output of the go coverage tool, specifically when used with LiteIDE
*.out *.out
# Dependency directories # Dependency directories
/pkg/ /pkg/
backend/__debug_bin backend/__debug_bin
@ -42,7 +40,6 @@ frontend/components.d.ts
frontend/src/xpack frontend/src/xpack
backend/xpack backend/xpack
*_xpack.go *_xpack.go
.history/ .history/
dist/ dist/
1pctl 1pctl

View File

@ -6,8 +6,8 @@ before:
hooks: hooks:
# - export NODE_OPTIONS="--max-old-space-size=8192" # - export NODE_OPTIONS="--max-old-space-size=8192"
# - make build_web # - make build_web
- chmod +x ./script.sh - chmod +x ./ci/script.sh
- ./script.sh - ./ci/script.sh
- sed -i 's@ORIGINAL_VERSION=.*@ORIGINAL_VERSION=v{{ .Version }}@g' 1pctl - sed -i 's@ORIGINAL_VERSION=.*@ORIGINAL_VERSION=v{{ .Version }}@g' 1pctl
- go mod tidy - go mod tidy
@ -42,6 +42,7 @@ archives:
- install.sh - install.sh
- README.md - README.md
- LICENSE - LICENSE
- GeoIP.mmdb
checksum: checksum:
name_template: 'checksums.txt' name_template: 'checksums.txt'

Binary file not shown.

Before

Width:  |  Height:  |  Size: 9.1 KiB

After

Width:  |  Height:  |  Size: 3.3 KiB

View File

@ -2,7 +2,7 @@ GOCMD=go
GOBUILD=$(GOCMD) build GOBUILD=$(GOCMD) build
GOCLEAN=$(GOCMD) clean GOCLEAN=$(GOCMD) clean
GOARCH=$(shell go env GOARCH) GOARCH=$(shell go env GOARCH)
GOOS=$(shell go env GOOS ) GOOS=$(shell go env GOOS)
BASE_PAH := $(shell pwd) BASE_PAH := $(shell pwd)
BUILD_PATH = $(BASE_PAH)/build BUILD_PATH = $(BASE_PAH)/build

View File

@ -1,11 +1,3 @@
# 安全说明
如果您发现安全问题,请直接联系我们:
- wanghe@fit2cloud.com
感谢您的支持!
# Security Policy # Security Policy
All security bugs should be reported to the contact as below: All security bugs should be reported to the contact as below:

View File

@ -17,4 +17,8 @@ if [ ! -f "install.sh" ]; then
wget https://github.com/1Panel-dev/installer/raw/main/install.sh wget https://github.com/1Panel-dev/installer/raw/main/install.sh
fi fi
if [ ! -f "GeoIP.mmdb" ]; then
wget https://resource.1panel.hk/geo/GeoIP.mmdb
fi
chmod 755 1pctl install.sh chmod 755 1pctl install.sh