summaryrefslogtreecommitdiffstats
path: root/scripts/build.sh
diff options
context:
space:
mode:
authorLinquize <linquize@yahoo.com.hk>2015-04-04 19:23:53 +0800
committerLinquize <linquize@yahoo.com.hk>2015-06-29 22:33:42 +0800
commit08f7547acf40c20eaaaaae3fdfc7835020d7d945 (patch)
treec2328fe303d25d7a624a8481c1e7ba74eff1a15b /scripts/build.sh
parent9512eec034e4691d611152e8182605a2b7811cb7 (diff)
downloadgitea-08f7547acf40c20eaaaaae3fdfc7835020d7d945.tar.gz
gitea-08f7547acf40c20eaaaaae3fdfc7835020d7d945.zip
Update build.sh for Windows
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 ea43bdafcb..cf127c2aee 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/