-
Notifications
You must be signed in to change notification settings - Fork 171
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Modify ZIP build target to use a nested folder per connector
This enables support for multiple versions to be packed in the same installer (as we do now) Minor changes in ArcGIS project output folder to align with other connectors
- Loading branch information
Showing
4 changed files
with
69 additions
and
23 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,46 @@ | ||
namespace Build; | ||
using System.Collections; | ||
using System.Collections.Generic; | ||
|
||
namespace Build; | ||
|
||
public static class Consts | ||
{ | ||
public static readonly string[] Solutions = { "DUI3-DX.slnf" }; | ||
public static readonly (string, string)[] Projects = | ||
|
||
public static InstallerProject[] InstallerManifests = | ||
{ | ||
("DUI3-DX\\Connectors\\ArcGIS\\Speckle.Connectors.ArcGIS3", "net6.0-windows"), | ||
("DUI3-DX\\Connectors\\Autocad\\Speckle.Connectors.Autocad2023", "net48"), | ||
("DUI3-DX\\Connectors\\Revit\\Speckle.Connectors.Revit2023", "net48"), | ||
("DUI3-DX\\Connectors\\Rhino\\Speckle.Connectors.Rhino7", "net48") | ||
new( | ||
"arcgis", | ||
new InstallerAsset[] { new("DUI3-DX/Connectors/ArcGIS/Speckle.Connectors.ArcGIS3", "net6.0-windows") } | ||
), | ||
new("rhino", new InstallerAsset[] { new("DUI3-DX/Connectors/Rhino/Speckle.Connectors.Rhino7", "net48") }), | ||
new("revit", new InstallerAsset[] { new("DUI3-DX/Connectors/Revit/Speckle.Connectors.Revit2023", "net48") }), | ||
new("acad", new InstallerAsset[] { new("DUI3-DX/Connectors/Autocad/Speckle.Connectors.Autocad2023", "net48") }) | ||
}; | ||
} | ||
|
||
public readonly struct InstallerProject | ||
{ | ||
public string HostAppSlug { get; init; } | ||
public IReadOnlyList<InstallerAsset> Projects { get; init; } | ||
|
||
public InstallerProject(string hostAppSlug, IReadOnlyList<InstallerAsset> projects) | ||
{ | ||
HostAppSlug = hostAppSlug; | ||
Projects = projects; | ||
} | ||
|
||
public override string ToString() => $"{HostAppSlug}"; | ||
} | ||
|
||
public readonly struct InstallerAsset | ||
{ | ||
public InstallerAsset(string projectPath, string targetName) | ||
{ | ||
ProjectPath = projectPath; | ||
TargetName = targetName; | ||
} | ||
|
||
public string ProjectPath { get; init; } | ||
public string TargetName { get; init; } | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters