We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents e69f09f + 08f7547 commit 9cf334fCopy full SHA for 9cf334f
1 file changed
scripts/build.sh
@@ -4,8 +4,14 @@ rm -rf $outPath
4
mkdir $outPath
5
6
go build ../gogs.go
7
-chmod +x gogs
8
-mv gogs $outPath/
+PLATFORM=`uname | cut -d _ -f 1`
+if [ $PLATFORM = "MINGW32" ] || [ $PLATFORM = "MINGW64" ] || [ $PLATFORM = "CYGWIN" ]; then
9
+ GOGS_EXE=gogs.exe
10
+else
11
+ GOGS_EXE=gogs
12
+fi
13
+chmod +x $GOGS_EXE
14
+mv $GOGS_EXE $outPath/
15
16
cp -r ../conf/ $outPath/conf/
17
cp -r ../custom/ $outPath/custom/
0 commit comments