0.2.17 - add REDOXER_TOOLCHAIN override

parent 0a733008
This diff is collapsed.
[package]
name = "redoxer"
version = "0.2.16"
version = "0.2.17"
description = "Method for quickly running programs inside of Redox from a KVM capable OS."
license = "MIT"
authors = ["Jeremy Soller <jackpot51@gmail.com>"]
......@@ -9,7 +9,7 @@ edition = "2018"
[dependencies]
dirs = "2.0.2"
redox_installer = "0.2.6"
redox_installer = "0.2.7"
redox_syscall = "0.1.56"
redoxfs = "0.4.1"
tempfile = "3.1.0"
......
use std::{fs, io};
use std::{env, fs, io};
use std::path::{Path, PathBuf};
use std::process::{self, Command};
......@@ -36,6 +36,10 @@ fn shasum<P: AsRef<Path>>(path: P) -> io::Result<bool> {
//TODO: Rewrite with hyper or reqwest, tar-rs, sha2, and some gzip crate?
pub fn toolchain() -> io::Result<PathBuf> {
if let Ok(redoxer_toolchain) = env::var("REDOXER_TOOLCHAIN") {
return Ok(PathBuf::from(redoxer_toolchain));
}
let url = format!("https://static.redox-os.org/toolchain/{}", TARGET);
let toolchain_dir = redoxer_dir().join("toolchain");
if ! toolchain_dir.is_dir() {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment