Skip to content

Commit 07d779c

Browse files
committed
Merge pull request #1518 from yugangw-msft/uploadinstaller
tools: script to upload ubuntu installer to azure storage account
2 parents 9438240 + ad5123f commit 07d779c

15 files changed

+99
-0
lines changed

tools/CLU/7-Zip/7-zip.dll

75 KB
Binary file not shown.

tools/CLU/7-Zip/7-zip32.dll

48 KB
Binary file not shown.

tools/CLU/7-Zip/7z.dll

1.52 MB
Binary file not shown.

tools/CLU/7-Zip/7z.exe

437 KB
Binary file not shown.

tools/CLU/7-Zip/License.txt

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
7-Zip
2+
~~~~~
3+
License for use and distribution
4+
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~
5+
6+
7-Zip Copyright (C) 1999-2015 Igor Pavlov.
7+
8+
Licenses for files are:
9+
10+
1) 7z.dll: GNU LGPL + unRAR restriction
11+
2) All other files: GNU LGPL
12+
13+
The GNU LGPL + unRAR restriction means that you must follow both
14+
GNU LGPL rules and unRAR restriction rules.
15+
16+
17+
Note:
18+
You can use 7-Zip on any computer, including a computer in a commercial
19+
organization. You don't need to register or pay for 7-Zip.
20+
21+
22+
GNU LGPL information
23+
--------------------
24+
25+
This library is free software; you can redistribute it and/or
26+
modify it under the terms of the GNU Lesser General Public
27+
License as published by the Free Software Foundation; either
28+
version 2.1 of the License, or (at your option) any later version.
29+
30+
This library is distributed in the hope that it will be useful,
31+
but WITHOUT ANY WARRANTY; without even the implied warranty of
32+
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
33+
Lesser General Public License for more details.
34+
35+
You can receive a copy of the GNU Lesser General Public License from
36+
http://www.gnu.org/
37+
38+
39+
unRAR restriction
40+
-----------------
41+
42+
The decompression engine for RAR archives was developed using source
43+
code of unRAR program.
44+
All copyrights to original unRAR code are owned by Alexander Roshal.
45+
46+
The license for original unRAR code has the following restriction:
47+
48+
The unRAR sources cannot be used to re-create the RAR compression algorithm,
49+
which is proprietary. Distribution of modified unRAR sources in separate form
50+
or as a part of other software is permitted, provided that it is clearly
51+
stated in the documentation and source comments that the code may
52+
not be used to develop a RAR (WinRAR) compatible archiver.
53+
54+
55+
--
56+
Igor Pavlov

tools/CLU/AzCopy/AzCopy.exe

256 KB
Binary file not shown.
644 KB
Binary file not shown.
1.45 MB
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

tools/CLU/AzCopy/Newtonsoft.Json.dll

502 KB
Binary file not shown.

tools/CLU/AzCopy/System.Spatial.dll

116 KB
Binary file not shown.
Lines changed: 43 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,43 @@
1+
echo off
2+
setlocal enabledelayedexpansion
3+
set root=%~dp0..\..
4+
5+
set action=%1
6+
set storageUrl=%2
7+
set key=%3
8+
set downloadFolder=%4
9+
set dropBaseName=ubuntu.14.04-x64
10+
set archiveFileName=%dropBaseName%.latest.tar
11+
set archive=%root%\drop\%archiveFileName%
12+
13+
if "%1" == "upload" (
14+
del /Q /F %root%\drop\*.gz
15+
%~dp0\7-Zip\7z.exe a -ttar -so %archive% %root%\drop\clurun\ubuntu.14.04-x64 | %~dp0\7-Zip\7z.exe a -si %archive%.gz
16+
if ERRORLEVEL 1 (
17+
echo failed to create tar.gz file "%archive%.gz"
18+
exit /B 1
19+
)
20+
%~dp0\AzCopy\AzCopy.exe /Source:%root%\drop /Dest:%storageUrl% /DestKey:%key% /Pattern:%archiveFileName%.gz /Y
21+
22+
if ERRORLEVEL 1 (
23+
echo failed to upload installers from "%root%\drop\%archiveFileName%.gz" to "%storageUrl%"
24+
exit /B 1
25+
)
26+
)
27+
28+
if "%1" == "download" (
29+
echo download the latest installer
30+
%~dp0\AzCopy\AzCopy.exe /Source:%storageUrl% /SourceKey:%key% /Dest:%downloadFolder% /Pattern:%archiveFileName%.gz /Y /S
31+
if ERRORLEVEL 1 (
32+
echo failed to download installers from "%storageUrl%" to "%downloadFolder%"
33+
exit /B 1
34+
)
35+
)
36+
37+
if not "%1" == "download" (
38+
if not "%1" == "upload" (
39+
echo Invalid command line arguments, examples
40+
echo %0 upload storage-blob-url "storage-key"
41+
echo %0 download storage-blob-url "storage-key" download-folder
42+
)
43+
)

0 commit comments

Comments
 (0)