Skip to content

Commit 7327ee3

Browse files
feat: Optimize the CI script
1 parent 23087bd commit 7327ee3

File tree

7 files changed

+10
-16
lines changed

7 files changed

+10
-16
lines changed

.gitignore

-3
Original file line numberDiff line numberDiff line change
@@ -22,14 +22,12 @@ build/1panel
2222
*.iml
2323
*.ipr
2424

25-
2625
# Test binary, built with `go test -c`
2726
*.test
2827

2928
# Output of the go coverage tool, specifically when used with LiteIDE
3029
*.out
3130

32-
3331
# Dependency directories
3432
/pkg/
3533
backend/__debug_bin
@@ -42,7 +40,6 @@ frontend/components.d.ts
4240
frontend/src/xpack
4341
backend/xpack
4442
*_xpack.go
45-
4643
.history/
4744
dist/
4845
1pctl

.goreleaser.yaml

+3-2
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,8 @@ before:
66
hooks:
77
# - export NODE_OPTIONS="--max-old-space-size=8192"
88
# - make build_web
9-
- chmod +x ./script.sh
10-
- ./script.sh
9+
- chmod +x ./ci/script.sh
10+
- ./ci/script.sh
1111
- sed -i 's@ORIGINAL_VERSION=.*@ORIGINAL_VERSION=v{{ .Version }}@g' 1pctl
1212
- go mod tidy
1313

@@ -42,6 +42,7 @@ archives:
4242
- install.sh
4343
- README.md
4444
- LICENSE
45+
- GeoIP.mmdb
4546

4647
checksum:
4748
name_template: 'checksums.txt'

.idea/icon.png

-5.82 KB
Loading

CODE_OF_CONDUCT.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -125,4 +125,4 @@ enforcement ladder](https://github.com/mozilla/diversity).
125125

126126
For answers to common questions about this code of conduct, see the FAQ at
127127
https://www.contributor-covenant.org/faq. Translations are available at
128-
https://www.contributor-covenant.org/translations.
128+
https://www.contributor-covenant.org/translations.

Makefile

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ GOCMD=go
22
GOBUILD=$(GOCMD) build
33
GOCLEAN=$(GOCMD) clean
44
GOARCH=$(shell go env GOARCH)
5-
GOOS=$(shell go env GOOS )
5+
GOOS=$(shell go env GOOS)
66

77
BASE_PAH := $(shell pwd)
88
BUILD_PATH = $(BASE_PAH)/build

SECURITY.md

-8
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,3 @@
1-
# 安全说明
2-
3-
如果您发现安全问题,请直接联系我们:
4-
5-
6-
7-
感谢您的支持!
8-
91
# Security Policy
102

113
All security bugs should be reported to the contact as below:

script.sh renamed to ci/script.sh

+5-1
Original file line numberDiff line numberDiff line change
@@ -17,4 +17,8 @@ if [ ! -f "install.sh" ]; then
1717
wget https://github.com/1Panel-dev/installer/raw/main/install.sh
1818
fi
1919

20-
chmod 755 1pctl install.sh
20+
if [ ! -f "GeoIP.mmdb" ]; then
21+
wget https://resource.1panel.hk/geo/GeoIP.mmdb
22+
fi
23+
24+
chmod 755 1pctl install.sh

0 commit comments

Comments
 (0)