1 Star 33 Fork 15

jmal/jmal-cloud-server

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
release-www.sh 696 Bytes
一键复制 编辑 原始数据 按行查看 历史
jmal 提交于 2023-06-06 16:58 . release: 2.6.2
#!/bin/bash
# version
if [ -n "$1" ]; then
echo "version: $1"
else
echo "需要带上版本号, 例如 sh release-www.sh 2.5.1"
exit
fi
version=$1
# jmal-cloud-view Directory location
view_dir="/Users/jmal/studio/myProject/github/jmal-cloud-view"
# jmal-cloud-server Directory location
server_dir="/Users/jmal/studio/myProject/github/jmal-cloud-server"
# build jmal-cloud-view
cd $view_dir || exit
echo "location: ${view_dir} "
if [ ! -f "dist-$version.tar" ]; then
npm run build:prod
tar -czf "dist-$version.tar" dist
fi
echo "current $(pwd)"
echo "copy dist-$version.tar to $server_dir/www/releases/dist-latest.tar"
cp "dist-$version.tar" $server_dir"/www/releases/dist-latest.tar"
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Java
1
https://gitee.com/jmal/jmal-cloud-server.git
git@gitee.com:jmal/jmal-cloud-server.git
jmal
jmal-cloud-server
jmal-cloud-server
master

搜索帮助