Skip to content

Commit

Permalink
Add config.ron to zip, default ot static dir if not configured
Browse files Browse the repository at this point in the history
  • Loading branch information
Andras Mocsary committed Sep 12, 2019
1 parent f7f2fb2 commit 8d6fec9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion build.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@

zip -r tera_design_0-0-0.zip examples README.md LICENSE
zip -r tera_design_0-0-0.zip examples README.md LICENSE config.ron
cross build --release --target x86_64-pc-windows-gnu
zip -r tera_design_0-0-0.zip target/x86_64-pc-windows-gnu/release/tera_design.exe

Expand Down
6 changes: 4 additions & 2 deletions src/config.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,10 @@ fn load_config() -> Config {
match from_reader(&conf_file) {
Ok(x) => x,
Err(e) => {
println!("Failed to load config: {}", e);
std::process::exit(1);
println!("Failed to load config: {}, defaulting...", e);
Config {
static_dirs: vec!["static".to_owned()]
}
}
}
}
Expand Down

0 comments on commit 8d6fec9

Please sign in to comment.