File tree Expand file tree Collapse file tree 1 file changed +5
-4
lines changed
Expand file tree Collapse file tree 1 file changed +5
-4
lines changed Original file line number Diff line number Diff line change @@ -7,7 +7,7 @@ JS_SOURCE_DIR=$(GO_SOURCE_DIR)/../../js/d-panel
77VERSION =1.0.0
88
99help :
10- @echo " make build r1 r2 push VERSION= "
10+ @echo " make build"
1111 @echo " make test VERSION="
1212 @echo " make clean"
1313
@@ -28,8 +28,8 @@ armv7: clean-source
2828 CGO_ENABLED=1 GOARM=7 GOARCH=arm GOOS=linux CC=armv7-unknown-linux-musleabihf-gcc CXX=armv7-unknown-linux-musleabihf-g++ \
2929 go build -ldflags ' -s -w' -gcflags=" all=-trimpath=${TRIM_PATH} " -asmflags=" all=-trimpath=${TRIM_PATH} " -o ${GO_TARGET_DIR} /${PROJECT_NAME} -arm ${GO_SOURCE_DIR} /* .go
3030 cp ${GO_SOURCE_DIR} /config.yaml ${GO_TARGET_DIR} /config.yaml
31- osx : clean-source
32- CGO_ENABLED=1 go build -ldflags ' -s -w' -gcflags=" all=-trimpath=${TRIM_PATH} " -asmflags=" all=-trimpath=${TRIM_PATH} " -o ${GO_TARGET_DIR} /${PROJECT_NAME} -osx ${GO_SOURCE_DIR} /* .go
31+ build : clean-source
32+ CGO_ENABLED=1 go build -ldflags ' -s -w' -gcflags=" all=-trimpath=${TRIM_PATH} " -asmflags=" all=-trimpath=${TRIM_PATH} " -o ${GO_TARGET_DIR} /${PROJECT_NAME} ${GO_SOURCE_DIR} /* .go
3333 cp ${GO_SOURCE_DIR} /config.yaml ${GO_TARGET_DIR} /config.yaml
3434js :
3535 rm -f ${GO_SOURCE_DIR} /asset/static/* .js ${GO_SOURCE_DIR} /asset/static/* .css ${GO_SOURCE_DIR} /asset/static/index.html
@@ -40,7 +40,8 @@ clean-source:
4040 ${GO_TARGET_DIR} /config.yaml \
4141 ${GO_TARGET_DIR} /${PROJECT_NAME} -amd64 \
4242 ${GO_TARGET_DIR}/${PROJECT_NAME}-arm64 \
43- ${GO_TARGET_DIR}/${PROJECT_NAME}-osx
43+ ${GO_TARGET_DIR}/${PROJECT_NAME}-arm \
44+ ${GO_TARGET_DIR}/${PROJECT_NAME}
4445clean :
4546 docker buildx prune -a -f
4647 docker stop buildx_buildkit_dpanel-builder0 && docker rm /buildx_buildkit_dpanel-builder0
You can’t perform that action at this time.
0 commit comments