A native webfishing installer for macos
at master 21 lines 738 B view raw
1use std::process::Command; 2 3const RE_TOOLS: &str = "build/Godot RE Tools.app/Contents/MacOS/Godot RE Tools"; 4 5pub(crate) fn decomp_script(path: &str) { 6 Command::new(RE_TOOLS) 7 .arg("--headless") 8 .arg(format!("--decompile=\"{}\"", path)) 9 .arg("--bytecode=3.5.0") 10 .arg("--output-dir=build/webfishing-decomp") 11 .output().expect(format!("Failed to decompile file: {}", path).as_str()); 12} 13 14pub(crate) fn recomp_file(path: &str) { 15 Command::new(RE_TOOLS) 16 .arg("--headless") 17 .arg(format!("--compile=\"{}\"", path)) 18 .arg("--bytecode=3.5.0") 19 .arg("--output-dir=build/webfishing-recomp") 20 .output().expect(format!("Failed to recompile file: {}", path).as_str()); 21}