@@ -76,6 +76,14 @@ struct Install: SwiftlyCommand {
7676 }
7777
7878 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+
7987 switch version {
8088 case let . stable( stableVersion) :
8189 // Building URL path that looks like:
@@ -84,10 +92,11 @@ struct Install: SwiftlyCommand {
8492 if stableVersion. patch != 0 {
8593 versionString += " . \( stableVersion. patch) "
8694 }
95+
8796 url += " swift- \( versionString) -release/ "
88- url += " \( config . platform . name ) / "
97+ url += " \( platformString ) / "
8998 url += " swift- \( versionString) -RELEASE/ "
90- url += " swift- \( versionString) -RELEASE- \( config . platform . nameFull ) . \( Swiftly . currentPlatform. toolchainFileExtension) "
99+ url += " swift- \( versionString) -RELEASE- \( platformFullString ) . \( Swiftly . currentPlatform. toolchainFileExtension) "
91100 case let . snapshot( release) :
92101 let snapshotString : String
93102 switch release. branch {
@@ -99,9 +108,9 @@ struct Install: SwiftlyCommand {
99108 snapshotString = " swift-DEVELOPMENT-SNAPSHOT "
100109 }
101110
102- url += " \( config . platform . name ) / "
111+ url += " \( platformString ) / "
103112 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) "
105114 }
106115
107116 let animation = PercentProgressAnimation (
0 commit comments