@@ -92,7 +92,6 @@ fn copy_if_exists(origin: &Path, destination: &Path) {
9292// https://stackoverflow.com/a/58063083
9393fn get_subdirs ( dir : & Path ) -> Result < Vec < PathBuf > , io:: Error > {
9494 Ok ( fs:: read_dir ( dir) ?
95- . into_iter ( )
9695 . filter ( |r| r. is_ok ( ) )
9796 . map ( |r| r. unwrap ( ) . path ( ) )
9897 . filter ( |r| r. is_dir ( ) )
@@ -128,7 +127,7 @@ fn copy_version(info: &CdnInfo, source_dir: &Path, destination_dir: &Path) {
128127
129128fn get_archived_revisions ( ) -> Vec < u16 > {
130129 let archive_revisions: Vec < u16 > = DeJson :: deserialize_json ( & http:: get_body_string (
131- "https://updater -archive.plutools.pw /revisions.json" ,
130+ "https://plutonium -archive.getserve.rs /revisions.json" ,
132131 ) )
133132 . unwrap ( ) ;
134133 archive_revisions
@@ -146,7 +145,10 @@ fn display_archived_revisions() {
146145fn get_archive_url ( revision : u16 ) -> String {
147146 let archive_revisions = get_archived_revisions ( ) ;
148147 if archive_revisions. contains ( & revision) {
149- format ! ( "https://updater-archive.plutools.pw/{}/info.json" , revision)
148+ format ! (
149+ "https://plutonium-archive.getserve.rs/{}/info.json" ,
150+ revision
151+ )
150152 } else {
151153 panic ! ( "Revision {} is not available in the archive." , revision) ;
152154 }
@@ -367,13 +369,13 @@ fn main() {
367369 let args = args:: get ( ) ;
368370 setup_env ( args. no_color ) ;
369371
370- let plutools_revision : u16 = args
371- . plutools
372+ let archive_revision : u16 = args
373+ . archive
372374 . parse ( )
373375 . unwrap_or_else ( |_| panic ! ( "{}: {}" , "Error" . bright_red( ) , "Invalid archived version" ) ) ;
374376
375- let cdn = if plutools_revision > 0 {
376- get_archive_url ( plutools_revision )
377+ let cdn = if archive_revision > 0 {
378+ get_archive_url ( archive_revision )
377379 } else {
378380 args. cdn_url . to_string ( )
379381 } ;
@@ -400,7 +402,7 @@ fn main() {
400402 }
401403 }
402404
403- if args. plutools_list {
405+ if args. archive_list {
404406 display_archived_revisions ( ) ;
405407 std:: process:: exit ( 0 ) ;
406408 }
0 commit comments