0
0
Fork 0
mirror of https://github.com/go-gitea/gitea synced 2024-12-22 06:04:13 +01:00

Merge pull request #1185 from linquize/build-win

Update build.sh for Windows
This commit is contained in:
无闻 2015-07-25 00:36:57 +08:00
commit 9cf334fca9

View file

@ -4,8 +4,14 @@ rm -rf $outPath
mkdir $outPath
go build ../gogs.go
chmod +x gogs
mv gogs $outPath/
PLATFORM=`uname | cut -d _ -f 1`
if [ $PLATFORM = "MINGW32" ] || [ $PLATFORM = "MINGW64" ] || [ $PLATFORM = "CYGWIN" ]; then
GOGS_EXE=gogs.exe
else
GOGS_EXE=gogs
fi
chmod +x $GOGS_EXE
mv $GOGS_EXE $outPath/
cp -r ../conf/ $outPath/conf/
cp -r ../custom/ $outPath/custom/