generated from azures04/Photino-Boilerplate
Added Configuration and post install
This commit is contained in:
@@ -4,15 +4,22 @@ using BrikInstaller.Utils;
|
||||
|
||||
namespace BrikInstaller;
|
||||
|
||||
public static class Constants {
|
||||
public class Constants {
|
||||
public static readonly JsonSerializerOptions _jsonOptions = new() { PropertyNamingPolicy = JsonNamingPolicy.CamelCase };
|
||||
|
||||
public static readonly string Os = OsHelper.getOperatingSystem();
|
||||
public static readonly string Arch = OsHelper.getArchitecture();
|
||||
|
||||
public static readonly string Env = "DEV";
|
||||
|
||||
public static readonly string BaseDirectory = AppDomain.CurrentDomain.BaseDirectory;
|
||||
public static readonly string CurrentWorkingDirectory = Path.GetDirectoryName(Assembly.GetExecutingAssembly().Location)!;
|
||||
|
||||
public static class ProductMetadata {
|
||||
public static string Name = "";
|
||||
public static string InstallPath = "";
|
||||
}
|
||||
|
||||
public static class URLs {
|
||||
public static readonly string ApiPoint = "https://brik.azures.fr";
|
||||
public static class Endpoints {
|
||||
@@ -24,6 +31,9 @@ public static class Constants {
|
||||
|
||||
public static string Metadata()
|
||||
=> $"{ApiPoint}/metadata";
|
||||
|
||||
public static string Configuration(string softName, string os, string arch)
|
||||
=> $"{ApiPoint}/products/{softName}/{os}-{arch}/configuration";
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user