File tree Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Expand file tree Collapse file tree 3 files changed +13
-4
lines changed Original file line number Diff line number Diff line change 7777 command : |
7878 ls -alh /tmp/workspace
7979
80- CIRCLE_TAG="v0.4.0 "
80+ CIRCLE_TAG="v0.4.1 "
8181
8282 go get github.com/github-release/github-release
8383
Original file line number Diff line number Diff line change @@ -654,11 +654,20 @@ fn main() {
654654
655655 let mut stdout = stdout ( ) ;
656656
657+ // get dynamic res list zip
657658 let url = resources. octool_config [ "octool_latest_dyn_res_list_url" ]
658659 . as_str ( )
659660 . expect ( "getting url from config" ) ;
660- write ! ( stdout, "{}\n " , & url) . unwrap ( ) ;
661- res:: curl_file ( & url, & working_dir. join ( "tool_config_files/dyn_res_list.zip" ) ) . expect ( "getting res zip" ) ;
661+ let zip_path = & working_dir. join ( "tool_config_files/dyn_res_list.zip" ) ;
662+ res:: curl_file ( & url, & zip_path) . expect ( "getting dynamic res list" ) ;
663+
664+ // unzip dynamic res list
665+ let z_file = File :: open ( & zip_path) . expect ( "opening zip file" ) ;
666+ let mut z_archive = zip:: ZipArchive :: new ( z_file) . expect ( "creating archive" ) ;
667+ match z_archive. extract ( & working_dir. join ( "tool_config_files" ) ) {
668+ Ok ( _) => ( ) , // leave zip file in place
669+ Err ( e) => panic ! ( "{:?}" , e) ,
670+ }
662671
663672 //load config_differences
664673 resources. config_differences =
Original file line number Diff line number Diff line change 11{
2- "octool_version" : " v0.4.0 2022-06-09 " ,
2+ "octool_version" : " v0.4.1 2022-06-12 " ,
33 "octool_releases_url" : " https://github.com/rusty-bits/octool/releases" ,
44 "octool_latest_config_url" : " https://raw.githubusercontent.com/rusty-bits/octool/main/tool_config_files/octool_config.json" ,
55 "octool_latest_dyn_res_list_url" : " https://raw.githubusercontent.com/rusty-bits/octool/main/tool_config_files/dyn_res_list.zip" ,
You can’t perform that action at this time.
0 commit comments