diff options
author | 无闻 <u@gogs.io> | 2015-07-25 00:36:57 +0800 |
---|---|---|
committer | 无闻 <u@gogs.io> | 2015-07-25 00:36:57 +0800 |
commit | 9cf334fca9f3fb3177012f9682a1fb234adef704 (patch) | |
tree | 0ca8f0656f1fd65da04ab4e809beedec71e820a9 /scripts | |
parent | e69f09f50ee79c08de700f7bb00b91323cac2bc8 (diff) | |
parent | 08f7547acf40c20eaaaaae3fdfc7835020d7d945 (diff) | |
download | gitea-9cf334fca9f3fb3177012f9682a1fb234adef704.tar.gz gitea-9cf334fca9f3fb3177012f9682a1fb234adef704.zip |
Merge pull request #1185 from linquize/build-win
Update build.sh for Windows
Diffstat (limited to 'scripts')
-rwxr-xr-x | scripts/build.sh | 10 |
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/ |