mirror of
				https://git.proxmox.com/git/libgit2
				synced 2025-11-04 01:31:47 +00:00 
			
		
		
		
	
		
			
				
	
	
		
			28 lines
		
	
	
		
			801 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
			
		
		
	
	
			28 lines
		
	
	
		
			801 B
		
	
	
	
		
			Bash
		
	
	
		
			Executable File
		
	
	
	
	
#!/bin/sh
 | 
						|
 | 
						|
set -ex
 | 
						|
 | 
						|
echo "##############################################################################"
 | 
						|
echo "## Downloading mingw"
 | 
						|
echo "##############################################################################"
 | 
						|
 | 
						|
BUILD_TEMP=${BUILD_TEMP:=$TEMP}
 | 
						|
BUILD_TEMP=$(cygpath $BUILD_TEMP)
 | 
						|
 | 
						|
case "$ARCH" in
 | 
						|
	amd64)
 | 
						|
		MINGW_URI="https://github.com/libgit2/ci-dependencies/releases/download/2023-01-23/mingw-x86_64-8.1.0-release-win32-sjlj-rt_v6-rev0.zip";;
 | 
						|
	x86)
 | 
						|
		MINGW_URI="https://github.com/libgit2/ci-dependencies/releases/download/2023-01-23/mingw-i686-8.1.0-release-win32-sjlj-rt_v6-rev0.zip";;
 | 
						|
esac
 | 
						|
 | 
						|
if [ -z "$MINGW_URI" ]; then
 | 
						|
	echo "No URL"
 | 
						|
	exit 1
 | 
						|
fi
 | 
						|
 | 
						|
mkdir -p "$BUILD_TEMP"
 | 
						|
 | 
						|
curl -s -L "$MINGW_URI" -o "$BUILD_TEMP"/mingw-"$ARCH".zip
 | 
						|
unzip -q "$BUILD_TEMP"/mingw-"$ARCH".zip -d "$BUILD_TEMP"
 |