mirror of
https://github.com/yuzu-emu/liftinstall.git
synced 2024-11-29 07:54:38 +01:00
Use "bootstrap" as part of filename for bootstrap configuration files
This commit is contained in:
parent
0571a5238a
commit
f2c5382dc4
6
build.rs
6
build.rs
@ -79,12 +79,12 @@ fn main() {
|
|||||||
let os = OS.to_lowercase();
|
let os = OS.to_lowercase();
|
||||||
|
|
||||||
// Find target config
|
// Find target config
|
||||||
let target_config = PathBuf::from(format!("config.{}.toml", os));
|
let target_config = PathBuf::from(format!("bootstrap.{}.toml", os));
|
||||||
|
|
||||||
if !target_config.exists() {
|
if !target_config.exists() {
|
||||||
panic!(
|
panic!(
|
||||||
"There is no config file specified for the platform: {:?}. \
|
"There is no config file specified for the platform: {:?}. \
|
||||||
Create a file named \"config.{}.toml\" in the root directory.",
|
Create a file named \"bootstrap.{}.toml\" in the root directory.",
|
||||||
os, os
|
os, os
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@ -103,7 +103,7 @@ fn main() {
|
|||||||
handle_binary(&config);
|
handle_binary(&config);
|
||||||
|
|
||||||
// Copy for the main build
|
// Copy for the main build
|
||||||
copy(&target_config, output_dir.join("config.toml")).expect("Unable to copy config file");
|
copy(&target_config, output_dir.join("bootstrap.toml")).expect("Unable to copy config file");
|
||||||
|
|
||||||
// Copy files from static/ to build dir
|
// Copy files from static/ to build dir
|
||||||
for entry in WalkDir::new("static") {
|
for entry in WalkDir::new("static") {
|
||||||
|
@ -84,7 +84,7 @@ use log::Level;
|
|||||||
|
|
||||||
use config::BaseAttributes;
|
use config::BaseAttributes;
|
||||||
|
|
||||||
static RAW_CONFIG: &'static str = include_str!(concat!(env!("OUT_DIR"), "/config.toml"));
|
static RAW_CONFIG: &'static str = include_str!(concat!(env!("OUT_DIR"), "/bootstrap.toml"));
|
||||||
|
|
||||||
#[derive(Deserialize, Debug)]
|
#[derive(Deserialize, Debug)]
|
||||||
enum CallbackType {
|
enum CallbackType {
|
||||||
|
Loading…
Reference in New Issue
Block a user