mirror of
https://github.com/eiblog/eiblog.git
synced 2026-03-01 00:34:58 +08:00
fix: ci dist tar
This commit is contained in:
@@ -11,11 +11,7 @@ for file in cmd/*; do
|
|||||||
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"
|
||||||
GOOS=$os GOARCH=$_arch \
|
GOOS=$os GOARCH=$_arch \
|
||||||
go build -tags prod -ldflags '-extldflags "-static"' -o backend "./cmd/$app"
|
go build -ldflags '-extldflags "-static"' -o ./cmd/$app/backend ./cmd/$app
|
||||||
if [ "$app" = "eiblog" ]; then
|
tar czf $_target ./cmd/$app/etc ./cmd/$app/backend
|
||||||
tar czf $_target conf website assets backend
|
|
||||||
else
|
|
||||||
tar czf $_target conf backend
|
|
||||||
fi
|
|
||||||
done
|
done
|
||||||
done
|
done
|
||||||
|
|||||||
@@ -1,3 +1,3 @@
|
|||||||
#!/usr/bin/env sh
|
#!/usr/bin/env sh
|
||||||
|
|
||||||
go build -tags prod -ldflags '-extldflags "-static"' -o "./cmd/$1/backend" "./cmd/$1"
|
go build -ldflags '-extldflags "-static"' -o ./cmd/$1/backend ./cmd/$1
|
||||||
|
|||||||
Reference in New Issue
Block a user