mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
chore: update
This commit is contained in:
@@ -10,8 +10,8 @@ for file in pkg/core/*; do
|
|||||||
# tar platform
|
# tar platform
|
||||||
for os in linux darwin windows; do
|
for os in linux darwin windows; do
|
||||||
_target="$app-$_tag.$os-$_arch.tar.gz"
|
_target="$app-$_tag.$os-$_arch.tar.gz"
|
||||||
CGO_ENABLED=0 GOOS=$os GOARCH=$_arch \
|
GOOS=$os GOARCH=$_arch \
|
||||||
go build -tags prod -o backend "./cmd/$app"
|
go build -tags prod -ldflags '-extldflags "-static"' -o backend "./cmd/$app"
|
||||||
if [ "$app" = "eiblog" ]; then
|
if [ "$app" = "eiblog" ]; then
|
||||||
tar czf $_target conf website assets backend
|
tar czf $_target conf website assets backend
|
||||||
else
|
else
|
||||||
|
|||||||
Reference in New Issue
Block a user