1 Star 0 Fork 50

千羽鹤/nightingale

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
fe.sh 735 Bytes
一键复制 编辑 原始数据 按行查看 历史
Ulric Qin 提交于 2023-06-02 12:11 . refactor fe.sh
#!/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
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/qianyuhe/nightingale.git
git@gitee.com:qianyuhe/nightingale.git
qianyuhe
nightingale
nightingale
main

搜索帮助