Skip to content

Commit

Permalink
Switched to google drive downloads
Browse files Browse the repository at this point in the history
  • Loading branch information
Stefanuk12 committed May 28, 2023
1 parent e6c259a commit 2ccbe51
Showing 1 changed file with 7 additions and 1 deletion.
8 changes: 7 additions & 1 deletion src/installer.rs
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,13 @@ impl ServerTrait for Servers {
}

fn download_link(&self) -> String {
format!("https://github.com/Stefanuk12/pluto-server-files/releases/latest/download/{}.zip", self.name())
let id = match self {
Servers::T6 => "1RCqhm_1oMEDSk-VoeQy_tWTE-9jZ6Exd",
Servers::T5 => "1bDArK1W2kVse753C0Ht_n0hRYiaQ8ZfE",
Servers::T4 => "1AqTkGMXj2B2UTnm6hg_WFfQLVxXJDn3K",
_ => panic!("download link not implemented for this game type")
};
format!("https://drive.google.com/uc?export=download&id={}&confirm=t", id)
}

fn download_link_config(&self) -> String {
Expand Down

0 comments on commit 2ccbe51

Please sign in to comment.