Skip to content

Commit 2328c7b

Browse files
committed
fix: pe 版打包错误
1 parent db6018b commit 2328c7b

9 files changed

+112
-87
lines changed

Makefile

Lines changed: 35 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -92,8 +92,8 @@ endef
9292

9393
define get_tags
9494
$(if $(filter 0,$(IS_CUSTOM)), \
95-
-t registry.cn-hangzhou.aliyuncs.com/dpanel/$(IMAGE_REPO):$(1)$(D_SFX) \
96-
$(if $(HUB),-t dpanel/$(IMAGE_REPO):$(1)$(D_SFX),), \
95+
-t registry.cn-hangzhou.aliyuncs.com/dpanel/$(IMAGE_REPO):$(if $(filter %-lite,$(1)),beta-lite,beta)$(D_SFX) \
96+
$(if $(HUB),-t dpanel/$(IMAGE_REPO):$(if $(filter %-lite,$(1)),beta-lite,beta)$(D_SFX),), \
9797
-t registry.cn-hangzhou.aliyuncs.com/dpanel/$(IMAGE_REPO):$(if $(filter %-lite,$(1)),lite,latest)$(D_SFX) \
9898
-t registry.cn-hangzhou.aliyuncs.com/dpanel/$(IMAGE_REPO):$(APP_VER)$(if $(filter %-lite,$(1)),-lite,)$(D_SFX) \
9999
$(if $(HUB),-t dpanel/$(IMAGE_REPO):$(if $(filter %-lite,$(1)),lite,latest)$(D_SFX)) \
@@ -107,21 +107,41 @@ all: help
107107

108108
help:
109109
@echo ""
110-
@echo " \033[1;34mDPanel Build Manager\033[0m"
111-
@echo " ----------------------------------------------------------------"
112-
@echo " \033[1mBUILD INFO:\033[0m"
113-
@echo " Host OS : $(DETECTED_OS)"
114-
@echo " Target OS : $(OS)"
115-
@echo " Current App Version : $(APP_VER)"
116-
@echo " Target Platforms : $(D_PLATFORMS) (Libc: $(LIBC))"
110+
@echo " \033[1;34mDPanel Unified Build System\033[0m"
111+
@echo " ================================================================"
112+
@echo " \033[1mENVIRONMENT VARIABLES & ARGUMENTS:\033[0m"
113+
@echo " \033[33mVERSION\033[0m Set custom version string (Default: $(AUTO_VERSION))"
114+
@echo " \033[33mFAMILY\033[0m Build edition: [ce, ee, pro] (Default: ce)"
115+
@echo " \033[33mGNU\033[0m Linker type: [unset=musl, y=glibc/debian] (Default: musl)"
116+
@echo " \033[33mLITE\033[0m Docker scope: [1=Lite only, 0=Full + Lite] (Default: 1)"
117+
@echo " \033[33mHUB\033[0m Docker Push: [unset=Aliyun only, y=+ Docker Hub]"
117118
@echo ""
118119
@echo " \033[1mCOMMANDS:\033[0m"
119-
@echo " make build Compile binaries"
120-
@echo " make release Multi-arch Docker build & push"
121-
@echo " ----------------------------------------------------------------"
122-
@echo " \033[1mNAMING RULE:\033[0m"
123-
@echo " 1. If PROJECT_NAME is 'dpanel', output is dpanel-<family>-<libc>-<arch>"
124-
@echo " 2. If PROJECT_NAME is overridden, output is exactly PROJECT_NAME"
120+
@echo " \033[32mmake build\033[0m Compile binaries for selected architectures"
121+
@echo " \033[32mmake release\033[0m Build & Push multi-arch Docker images"
122+
@echo " \033[32mmake clean\033[0m Remove build artifacts and prune docker builder"
123+
@echo ""
124+
@echo " \033[1mUSAGE EXAMPLES:\033[0m"
125+
@echo " \033[36m# Build for AMD64 & ARM64 with GLIBC (Debian style)\033[0m"
126+
@echo " make build GNU=y AMD64=1 ARM64=1"
127+
@echo ""
128+
@echo " \033[1mCURRENT CONFIGURATION:\033[0m"
129+
@echo " \033[1mProject Info:\033[0m"
130+
@echo " Name : $(PROJECT_NAME) (Family: $(FAMILY))"
131+
@echo " Version : $(APP_VER) (Custom: $(IS_CUSTOM))"
132+
@echo " Libc Type : $(LIBC) $(if $(filter gnu,$(LIBC)),(glibc),(musl))"
133+
@echo ""
134+
@echo " \033[1mArchitecture & Toolchains:\033[0m"
135+
@echo " Selected : \033[35m$(if $(strip $(D_PLATFORMS)),$(D_PLATFORMS),linux/amd64 (Default))\033[0m"
136+
@echo " AMD64 (x86): $(if $(filter 1,$(AMD64)),\033[32mON \033[0m,\033[90mOFF\033[0m) -> CC: $(AMD64_CC)"
137+
@echo " ARM64 (v8) : $(if $(filter 1,$(ARM64)),\033[32mON \033[0m,\033[90mOFF\033[0m) -> CC: $(ARM64_CC)"
138+
@echo " ARMV7 (v7) : $(if $(filter 1,$(ARM7)),\033[32mON \033[0m,\033[90mOFF\033[0m) -> CC: $(ARMV7_CC)"
139+
@echo ""
140+
@echo " \033[1mDocker Release Details:\033[0m"
141+
@echo " Repo Name : $(IMAGE_REPO)"
142+
@echo " Dockerfile : $(DOCKER_FILE)"
143+
@echo " Push Hub : $(if $(HUB),\033[32mYES (Aliyun + DockerHub)\033[0m,\033[33mNO (Aliyun Only)\033[0m)"
144+
@echo " ================================================================"
125145
@echo ""
126146

127147
build:

asset/static/codemirror-view-lib.ad30827f.async.js renamed to asset/static/codemirror-view-lib.d2587b9c.async.js

Lines changed: 5 additions & 5 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asset/static/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,6 @@
1919
</head>
2020
<body>
2121
<div id="root"></div>
22-
<script src="/dpanel/static/asset/umi.bea89e50.js"></script>
22+
<script src="/dpanel/static/asset/umi.1fa6a786.js"></script>
2323
</body>
2424
</html>

asset/static/p__app__cron__list.67613c48.async.js

Lines changed: 0 additions & 1 deletion
This file was deleted.

asset/static/p__app__cron__list.ad7eb691.async.js

Lines changed: 1 addition & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asset/static/p__system__basic.df4ce743.async.js renamed to asset/static/p__system__basic.66092bf9.async.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

asset/static/shared-LOD8m03f9GGnwpO57XVq1uIBUyk_.d021059f.async.js renamed to asset/static/shared-LOD8m03f9GGnwpO57XVq1uIBUyk_.8d9e4ec1.async.js

Lines changed: 2 additions & 2 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 61 additions & 61 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docker/Dockerfile-pe

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,19 +1,24 @@
11
FROM dpanel/dpanel:lite AS lite
2+
3+
ARG APP_FAMILY
24
ARG APP_VERSION
35
ARG TARGETARCH
46

57
ENV APP_VERSION=$APP_VERSION
8+
ENV APP_FAMILY=$APP_FAMILY
69

710
COPY ./runtime/dpanel-pe-musl-${TARGETARCH} /app/server/dpanel
811
COPY ./runtime/config.yaml /app/server/config.yaml
912

1013

1114
FROM dpanel/dpanel:latest AS production
1215

16+
ARG APP_FAMILY
1317
ARG APP_VERSION
1418
ARG TARGETARCH
1519

1620
ENV APP_VERSION=$APP_VERSION
21+
ENV APP_FAMILY=$APP_FAMILY
1722

1823
COPY ./runtime/dpanel-pe-musl-${TARGETARCH} /app/server/dpanel
1924
COPY ./runtime/config.yaml /app/server/config.yaml

0 commit comments

Comments
 (0)