Skip to content

Commit

Permalink
fix: fix gotip script
Browse files Browse the repository at this point in the history
  • Loading branch information
thinkgos committed Nov 27, 2023
1 parent 236da7e commit 8c02533
Showing 1 changed file with 8 additions and 5 deletions.
13 changes: 8 additions & 5 deletions goup-downloader/src/downloader.rs
Original file line number Diff line number Diff line change
Expand Up @@ -91,11 +91,14 @@ impl Downloader {
// 执行 ./src/make.rs/make.bat/make.bash 有$GOROOT/src问题

//* $HOME/{owner}/.goup/gotip/src/[make.bash|make.rs|make.bat]
Self::execute_command(
gotip_go.join("src").join("make.bash"),
gotip_go.join("src"),
[],
)?;

let script = match env::consts::OS {
"windows" => "make.bat",
"plan9" => "make.rs",
_ => "make.bash",
};

Self::execute_command(gotip_go.join("src").join(script), gotip_go.join("src"), [])?;
Ok(())
}
pub fn install_go_version(version: &str) -> Result<(), anyhow::Error> {
Expand Down

0 comments on commit 8c02533

Please sign in to comment.