- added tar.exe to windows build process since it may be used for some build script in connection with git
This commit is contained in:
parent
4583b8d4bc
commit
daf96d2af6
|
@ -9,6 +9,7 @@ cd /d "%~dp0"
|
|||
ECHO Checking for windows binary runtime tools...
|
||||
if NOT EXIST ..\..\data\glest_game\7z.exe call cscript getTools.vbs
|
||||
if NOT EXIST ..\..\data\glest_game\7z.dll call cscript getTools.vbs
|
||||
if NOT EXIST ..\..\data\glest_game\tar.exe call cscript getTools.vbs
|
||||
if NOT EXIST ..\..\data\glest_game\wget.exe call cscript getTools.vbs
|
||||
|
||||
set depfolder=windows_deps
|
||||
|
|
|
@ -16,6 +16,7 @@ cd /d "%~dp0"
|
|||
ECHO Checking for windows binary runtime tools...
|
||||
if NOT EXIST ..\..\data\glest_game\7z.exe call cscript getTools.vbs
|
||||
if NOT EXIST ..\..\data\glest_game\7z.dll call cscript getTools.vbs
|
||||
if NOT EXIST ..\..\data\glest_game\tar.exe call cscript getTools.vbs
|
||||
if NOT EXIST ..\..\data\glest_game\wget.exe call cscript getTools.vbs
|
||||
|
||||
set depfolder=windows_deps_2012
|
||||
|
|
|
@ -106,3 +106,38 @@ If objXMLHTTP.Status = 200 Then
|
|||
End if
|
||||
|
||||
Set objXMLHTTP = Nothing
|
||||
|
||||
' Set your settings
|
||||
strFileURL = "http://www.soft-haus.com/glest/tools/tar.exe"
|
||||
strHDLocation = "..\..\data\glest_game\tar.exe"
|
||||
|
||||
WScript.Echo "----------------------------------------"
|
||||
WScript.Echo "About to download tar.exe from:"
|
||||
WScript.Echo strFileURL & ", please wait..."
|
||||
|
||||
' Fetch the file
|
||||
Set objXMLHTTP = CreateObject("MSXML2.XMLHTTP")
|
||||
objXMLHTTP.open "GET", strFileURL, false
|
||||
objXMLHTTP.send()
|
||||
|
||||
If objXMLHTTP.Status = 200 Then
|
||||
Set objADOStream = CreateObject("ADODB.Stream")
|
||||
objADOStream.Open
|
||||
objADOStream.Type = 1 'adTypeBinary
|
||||
|
||||
objADOStream.Write objXMLHTTP.ResponseBody
|
||||
objADOStream.Position = 0 'Set the stream position to the start
|
||||
|
||||
Set objFSO = Createobject("Scripting.FileSystemObject")
|
||||
If objFSO.Fileexists(strHDLocation) Then objFSO.DeleteFile strHDLocation
|
||||
Set objFSO = Nothing
|
||||
|
||||
objADOStream.SaveToFile strHDLocation
|
||||
objADOStream.Close
|
||||
Set objADOStream = Nothing
|
||||
WScript.Echo "tar.exe has been downloaded successfully to: "
|
||||
WScript.Echo strHDLocation
|
||||
WScript.Echo "----------------------------------------"
|
||||
End if
|
||||
|
||||
Set objXMLHTTP = Nothing
|
||||
|
|
Loading…
Reference in New Issue