You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
let out_dir = PathBuf::from(&env::var_os("OUT_DIR").unwrap());
13
+
let grovedbg_zip_path = out_dir.join("grovedbg.zip");
14
+
15
+
if !grovedbg_zip_path.exists(){
16
+
let response = reqwest::blocking::get(format!("https://github.com/dashpay/grovedbg/releases/download/{GROVEDBG_VERSION}/grovedbg-{GROVEDBG_VERSION}.zip"))
17
+
.expect("can't download GroveDBG artifact");
10
18
11
-
letOutput{
12
-
status,
13
-
stdout,
14
-
stderr,
15
-
} = Command::new("trunk")
16
-
.arg("build")
17
-
.arg("--release")
18
-
.arg("--dist")
19
-
.arg(&out_dir)
20
-
.arg("grovedbg/index.html")
21
-
.output()
22
-
.expect("cannot start trunk process");
23
-
24
-
if !status.success(){
25
-
let stdout_msg = String::from_utf8_lossy(&stdout);
26
-
let stderr_msg = String::from_utf8_lossy(&stderr);
27
-
let bindgen_version = env::var_os("TRUNK_TOOLS_WASM_BINDGEN").unwrap_or_default();
0 commit comments