-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathDeployScript.cs
55 lines (46 loc) · 1.61 KB
/
DeployScript.cs
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
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
using Newtonsoft.Json;
namespace AzDeploy.Build.Models
{
public class DeployScript
{
/// <summary>
/// file that defines the app version (intended as the main build output of your project)
/// </summary>
[JsonProperty("versionSourceFile")]
public string VersionSourceFile { get; set; }
/// <summary>
/// where do we upload the installer package?
/// </summary>
[JsonProperty("storageAccount")]
public StorageAccountInfo StorageAccount { get; set; }
[JsonProperty("installer")]
public InstallerInfo Installer { get; set; }
/// <summary>
/// setup executable that is uploaded to blob storage
/// </summary>
[JsonProperty("installerExe")]
public string InstallerExe { get; set; }
public class StorageAccountInfo
{
[JsonProperty("name")]
public string Name { get; set; }
[JsonProperty("key")]
public string Key { get; set; }
[JsonProperty("container")]
public string Container { get; set; }
}
public class InstallerInfo
{
/// <summary>
/// command to execute to rebuild installer package
/// </summary>
[JsonProperty("command")]
public string Command { get; set; }
/// <summary>
/// any arguments (in my case DeployMaster .deploy script) required by InstallerCommand
/// </summary>
[JsonProperty("arguments")]
public string Arguments { get; set; }
}
}
}