-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathDownloadDeps.cmd
26 lines (23 loc) · 1.13 KB
/
DownloadDeps.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
setlocal
set path="%ProgramFiles%\7-zip";"%ProgramFiles(x86)%\7-zip";%path%
set downloadsdir=%temp%\WinMergeDownloadDeps
set urls_destdirs=^
https://bitbucket.org/winmerge/winmerge/downloads/winmerge_manual_build_tools_v1.zip!Docs\Users\Manual\build ^
https://bitbucket.org/winmerge/winmerge/downloads/ShellExtension-1.17.0.0.zip!Build ^
https://bitbucket.org/winmerge/winmerge/downloads/Merge7z1604.1-win32.zip!Build ^
https://bitbucket.org/winmerge/winmerge/downloads/Merge7z1604.1-x64.zip!Build\X64 ^
https://bitbucket.org/winmerge/frhed/downloads/frhed-0.10903.2017.1-win32.zip!Build ^
https://bitbucket.org/winmerge/frhed/downloads/frhed-0.10903.2017.1-x64.zip!Build\X64 ^
https://bitbucket.org/winmerge/winimerge/downloads/winimerge-1-0-7-0-exe.zip!Build ^
https://bitbucket.org/winmerge/patch/downloads/patch-2.5.9-7-bin.zip!Build\GnuWin32
pushd "%~dp0"
mkdir %downloadsdir% 2> NUL
for %%p in (%urls_destdirs%) do (
for /F "tokens=1,2 delims=!" %%u in ("%%p") do (
if not exist %downloadsdir%\%%~nxu (
powershell -command "Invoke-WebRequest %%u -Outfile %downloadsdir%\%%~nxu"
)
7z x %downloadsdir%\%%~nxu -aoa -o%%v
)
)
popd