1 Star 0 Fork 50

杨立伟/nightingale

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fe.sh 773 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ulric Qin 提交于 2023-11-15 10:33 . code refactor
#!/bin/bash
cp -f ./docker/initsql/a-n9e.sql n9e.sql
if [ ! -d "./pub" ]; then
TAG=$(curl -sX GET https://api.github.com/repos/n9e/fe/releases/latest | awk '/tag_name/{print $4;exit}' FS='[""]')
if ! curl -o n9e-fe-${TAG}.tar.gz -L https://github.com/n9e/fe/releases/download/${TAG}/n9e-fe-${TAG}.tar.gz; then
echo "failed to download n9e-fe-${TAG}.tar.gz!"
exit 1
fi
if ! tar zxf n9e-fe-${TAG}.tar.gz; then
echo "failed to untar n9e-fe-${TAG}.tar.gz!"
exit 2
fi
fi
GOPATH=$(go env GOPATH)
GOPATH=${GOPATH:-/home/runner/go}
# Embed files into a go binary
# go install github.com/rakyll/statik
if ! $GOPATH/bin/statik -src=./pub -dest=./front; then
echo "failed to embed files into a go binary!"
exit 4
fi
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/yangliwei/nightingale.git
git@gitee.com:yangliwei/nightingale.git
yangliwei
nightingale
nightingale
main

搜索帮助