mirror of
				https://github.com/go-gitea/gitea
				synced 2025-11-04 05:18:25 +00:00 
			
		
		
		
	Update build.sh for Windows
This commit is contained in:
		@@ -4,8 +4,14 @@ rm -rf $outPath
 | 
				
			|||||||
mkdir $outPath
 | 
					mkdir $outPath
 | 
				
			||||||
 | 
					
 | 
				
			||||||
go build ../gogs.go
 | 
					go build ../gogs.go
 | 
				
			||||||
chmod +x gogs
 | 
					PLATFORM=`uname | cut -d _ -f 1`
 | 
				
			||||||
mv gogs $outPath/
 | 
					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 ../conf/ $outPath/conf/
 | 
				
			||||||
cp -r ../custom/ $outPath/custom/
 | 
					cp -r ../custom/ $outPath/custom/
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user