| |
27 |
27 |
echo * Removing OutputDirectory... |
| |
28 |
28 |
rmdir /S /Q "%OutputDir%" >nul |
| |
29 |
29 |
if exist "%OutputDir%" ( |
| |
30 |
30 |
echo ERROR: Deleting the old output folder failed. |
| |
31 |
31 |
exit /b 1 |
| |
32 |
32 |
) |
| |
33 |
33 |
) |
| |
34 |
34 |
|
| |
35 |
35 |
mkdir "%TmpDir%" |
| |
36 |
36 |
if not exist "%TmpDir%" ( |
| |
37 |
37 |
echo ERROR: Creating temporary folder failed. |
| |
38 |
38 |
exit /b 1 |
| |
39 |
39 |
) |
| |
40 |
40 |
|
| |
41 |
41 |
mkdir "%OutputDir%" |
| |
42 |
42 |
if not exist "%OutputDir%" ( |
| |
43 |
43 |
echo ERROR: Creating temporary folder failed. |
| |
44 |
44 |
exit /b 1 |
| |
45 |
45 |
) |
| |
46 |
46 |
|
| |
47 |
|
mkdir "%TmpDir%\zip32" |
| |
48 |
|
if not exist "%TmpDir%\zip32" ( |
| |
49 |
|
echo ERROR: Creating temporary zip32 folder failed. |
| |
|
47 |
mkdir "%TmpDir%\32bit" |
| |
|
48 |
if not exist "%TmpDir%\32bit" ( |
| |
|
49 |
echo ERROR: Creating temporary 32bit folder failed. |
| |
50 |
50 |
goto error |
| |
51 |
51 |
) |
| |
52 |
52 |
|
| |
53 |
|
mkdir "%TmpDir%\zip64" |
| |
54 |
|
if not exist "%TmpDir%\zip64" ( |
| |
55 |
|
echo ERROR: Creating temporary zip64 folder failed. |
| |
|
53 |
mkdir "%TmpDir%\64bit" |
| |
|
54 |
if not exist "%TmpDir%\64bit" ( |
| |
|
55 |
echo ERROR: Creating temporary 64bit folder failed. |
| |
56 |
56 |
goto error |
| |
57 |
57 |
) |
| |
58 |
58 |
) |
| |
59 |
59 |
|
| |
60 |
60 |
exit /b 0 |