Move Variants into the Components folder
Continue grouping the standalone modules under Components. Updates the nightly.yml include path and the app icon banner path used by the configure-nightly CI command.
|
Before Width: | Height: | Size: 387 KiB After Width: | Height: | Size: 387 KiB |
|
Before Width: | Height: | Size: 572 B After Width: | Height: | Size: 572 B |
|
Before Width: | Height: | Size: 1.5 KiB After Width: | Height: | Size: 1.5 KiB |
|
Before Width: | Height: | Size: 818 B After Width: | Height: | Size: 818 B |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
@@ -31,8 +31,8 @@ struct ConfigureNightly: AsyncParsableCommand {
|
|||||||
}
|
}
|
||||||
|
|
||||||
// Check if the nightly variant is already included
|
// Check if the nightly variant is already included
|
||||||
if projectConfig["include"]?.sequence?.contains(where: { $0.mapping?["path"] == "Variants/Nightly/nightly.yml" }) == false {
|
if projectConfig["include"]?.sequence?.contains(where: { $0.mapping?["path"] == "Components/Variants/Nightly/nightly.yml" }) == false {
|
||||||
projectConfig["include"]?.sequence?.append(["path": "Variants/Nightly/nightly.yml"])
|
projectConfig["include"]?.sequence?.append(["path": "Components/Variants/Nightly/nightly.yml"])
|
||||||
}
|
}
|
||||||
|
|
||||||
let updatedYAMLString = try Yams.serialize(node: projectConfig)
|
let updatedYAMLString = try Yams.serialize(node: projectConfig)
|
||||||
@@ -41,7 +41,7 @@ struct ConfigureNightly: AsyncParsableCommand {
|
|||||||
|
|
||||||
/// Generates the app icon banner with version and build number.
|
/// Generates the app icon banner with version and build number.
|
||||||
private func generateAppIconBanner(buildNumber: String) async throws {
|
private func generateAppIconBanner(buildNumber: String) async throws {
|
||||||
let iconPath = "Variants/Nightly/Resources/NightlyAppIcon.icon/Assets/Version.png"
|
let iconPath = "Components/Variants/Nightly/Resources/NightlyAppIcon.icon/Assets/Version.png"
|
||||||
try await AppIconBanner.parse([iconPath, "--build-number", buildNumber]).run()
|
try await AppIconBanner.parse([iconPath, "--build-number", buildNumber]).run()
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||