Skip to content

Commit

Permalink
Update build.sh for Windows
Browse files Browse the repository at this point in the history
  • Loading branch information
linquize committed Jun 29, 2015
1 parent 9512eec commit 08f7547
Showing 1 changed file with 8 additions and 2 deletions.
10 changes: 8 additions & 2 deletions scripts/build.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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/
Expand Down

0 comments on commit 08f7547

Please sign in to comment.