1 Star 0 Fork 208

harkowl/goploy

forked from goploy/goploy 
Create your Gitee Account
Explore and code with more than 12 million developers,Free private repositories !:)
Sign up
文件
Clone or Download
build.sh 786 Bytes
Copy Edit Raw Blame History
zhenorzz authored 2023-05-24 14:46 . add app version in login page
#!/bin/bash
echo "Change version number? [Version number/N]";
read x
if [[ $x =~ ^[1-9].[0-9]+.[0-9]+$ ]]
then
sed -i -e "s/const appVersion = \"[0-9].[0-9]\+.[0-9]\+\"/const appVersion = \"$x\"/g" cmd/server/main.go
sed -i -e "s/'[0-9].[0-9]\+.[0-9]\+'/'$x'/g" database/goploy.sql
sed -i -e "s/GOPLOY_VER=v[0-9].[0-9]\+.[0-9]\+/GOPLOY_VER=v$x/g" docker/Dockerfile
sed -i -e "s/\"version\": \"[0-9].[0-9]\+.[0-9]\+\"/\"version\": \"$x\"/g" web/package.json
fi
echo "Build web? [Y/N]";
read x
if [ "$x" == Y ] || [ "$x" == y ]
then
cd web
npm run build
cd ..
fi
echo "Building goploy";
env GOOS=linux go build -o goploy cmd/server/main.go
env GOOS=darwin go build -o goploy.mac cmd/server/main.go
env GOOS=windows go build -o goploy.exe cmd/server/main.go
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
Go
1
https://gitee.com/yunmhs/goploy.git
git@gitee.com:yunmhs/goploy.git
yunmhs
goploy
goploy
master

Search

0d507c66 1850385 C8b1a773 1850385