mirror of
https://github.com/eiblog/eiblog.git
synced 2026-02-13 01:42:27 +08:00
update
This commit is contained in:
13
dist.sh
Executable file
13
dist.sh
Executable file
@@ -0,0 +1,13 @@
|
||||
#!/bin/bash
|
||||
|
||||
# GOFLAGS='-ldflags="-s -w"'
|
||||
version=`git describe --tags`
|
||||
arch=$(go env GOARCH)
|
||||
|
||||
for os in linux darwin windows; do
|
||||
echo "... building $version for $os/$arch"
|
||||
TARGET="eiblog-$version.$os-$arch"
|
||||
GOOS=$os GOARCH=$arch CGO_ENABLED=0 go build
|
||||
tar czvf $TARGET.tar.gz conf static views eiblog
|
||||
rm eiblog
|
||||
done
|
||||
Reference in New Issue
Block a user