aboutsummaryrefslogtreecommitdiff
path: root/scripts/build.sh
diff options
context:
space:
mode:
authorUnknwon <u@gogs.io>2015-07-25 00:49:40 +0800
committerUnknwon <u@gogs.io>2015-07-25 00:49:40 +0800
commit54b58e988d4fac4a3f67feef39d62134352fb07c (patch)
treedb32c6c6860f6b6bacb0c90c32a25b5a3b7c8002 /scripts/build.sh
parentdc4aab9925b46f8ad4b18f7926e2904163c1c5b5 (diff)
parent70d44e9565e372c73d4f0f42273d4899e8e07f75 (diff)
Merge branch 'develop' of github.com:gogits/gogs into feature/page_issues
Diffstat (limited to 'scripts/build.sh')
-rwxr-xr-xscripts/build.sh10
1 files changed, 8 insertions, 2 deletions
diff --git a/scripts/build.sh b/scripts/build.sh
index ea43bdaf..cf127c2a 100755
--- a/scripts/build.sh
+++ b/scripts/build.sh
@@ -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/