@@ -76,6 +76,14 @@ struct Install: SwiftlyCommand {
76
76
}
77
77
78
78
var url = " https://download.swift.org/ "
79
+
80
+ var platformString = config. platform. name
81
+ var platformFullString = config. platform. nameFull
82
+ if let arch = config. platform. architecture {
83
+ platformString += " - \( arch) "
84
+ platformFullString += " - \( arch) "
85
+ }
86
+
79
87
switch version {
80
88
case let . stable( stableVersion) :
81
89
// Building URL path that looks like:
@@ -84,10 +92,11 @@ struct Install: SwiftlyCommand {
84
92
if stableVersion. patch != 0 {
85
93
versionString += " . \( stableVersion. patch) "
86
94
}
95
+
87
96
url += " swift- \( versionString) -release/ "
88
- url += " \( config . platform . name ) / "
97
+ url += " \( platformString ) / "
89
98
url += " swift- \( versionString) -RELEASE/ "
90
- url += " swift- \( versionString) -RELEASE- \( config . platform . nameFull ) . \( Swiftly . currentPlatform. toolchainFileExtension) "
99
+ url += " swift- \( versionString) -RELEASE- \( platformFullString ) . \( Swiftly . currentPlatform. toolchainFileExtension) "
91
100
case let . snapshot( release) :
92
101
let snapshotString : String
93
102
switch release. branch {
@@ -99,9 +108,9 @@ struct Install: SwiftlyCommand {
99
108
snapshotString = " swift-DEVELOPMENT-SNAPSHOT "
100
109
}
101
110
102
- url += " \( config . platform . name ) / "
111
+ url += " \( platformString ) / "
103
112
url += " \( snapshotString) - \( release. date) -a/ "
104
- url += " \( snapshotString) - \( release. date) -a- \( config . platform . nameFull ) . \( Swiftly . currentPlatform. toolchainFileExtension) "
113
+ url += " \( snapshotString) - \( release. date) -a- \( platformFullString ) . \( Swiftly . currentPlatform. toolchainFileExtension) "
105
114
}
106
115
107
116
let animation = PercentProgressAnimation (
0 commit comments