@@ -244,31 +244,38 @@ func main() {
244
244
}
245
245
246
246
var platform = "undefined"
247
- var downloadURL = ""
247
+ var downloadShareLibraryURL = ""
248
+ downloadIcudtlURL := fmt .Sprintf ("https://storage.googleapis.com/flutter_infra/flutter//%s/artifacts.zip" ,platform )
248
249
249
250
// Retrieve the OS and set variable to retrieve correct flutter embedder
250
251
switch runtime .GOOS {
251
252
case "darwin" :
252
253
platform = "darwin-x64"
253
- downloadURL = fmt .Sprintf ("https://storage.googleapis.com/flutter_infra/flutter/%s/%s/FlutterEmbedder.framework.zip" , hashResponse .Items [0 ].Sha , platform )
254
-
254
+ downloadShareLibraryURL = fmt .Sprintf ("https://storage.googleapis.com/flutter_infra/flutter/%s/%s/FlutterEmbedder.framework.zip" , hashResponse .Items [0 ].Sha , platform )
255
255
case "linux" :
256
256
platform = "linux-x64"
257
- downloadURL = fmt .Sprintf ("https://storage.googleapis.com/flutter_infra/flutter/%s/%s/%s-embedder" , hashResponse .Items [0 ].Sha , platform , platform )
257
+ downloadShareLibraryURL = fmt .Sprintf ("https://storage.googleapis.com/flutter_infra/flutter/%s/%s/%s-embedder" , hashResponse .Items [0 ].Sha , platform , platform )
258
258
259
259
case "windows" :
260
260
platform = "windows-x64"
261
- downloadURL = fmt .Sprintf ("https://storage.googleapis.com/flutter_infra/flutter/%s/%s/%s-embedder" , hashResponse .Items [0 ].Sha , platform , platform )
261
+ downloadShareLibraryURL = fmt .Sprintf ("https://storage.googleapis.com/flutter_infra/flutter/%s/%s/%s-embedder" , hashResponse .Items [0 ].Sha , platform , platform )
262
262
263
263
default :
264
264
log .Fatal ("OS not supported" )
265
265
}
266
266
267
- err3 := downloadFile (dir + "/.build/temp.zip" , downloadURL )
268
- if err3 != nil {
267
+ err3 := downloadFile (dir + "/.build/temp.zip" , downloadShareLibraryURL )
268
+ if err != nil {
269
269
log .Fatal (err3 )
270
270
} else {
271
- fmt .Printf ("Downloaded embedder for %s platform, matching version : %s\n " , platform , hashResponse .Items [0 ].Sha )
271
+ fmt .Printf ("Downloaded share library for %s platform, matching version : %s\n " , platform , hashResponse .Items [0 ].Sha )
272
+ }
273
+
274
+ err4 := downloadFile (dir + "/.build/artifact.zip" , downloadIcudtlURL )
275
+ if err != nil {
276
+ log .Fatal (err4 )
277
+ } else {
278
+ fmt .Printf ("Downloaded artifact for %s platform." )
272
279
}
273
280
274
281
_ , err = unzip (".build/temp.zip" , dir + "/.build/" )
0 commit comments