Minor changes
This commit is contained in:
parent
46cda692fc
commit
21af56e76e
4 changed files with 22 additions and 18 deletions
8
.gitignore
vendored
8
.gitignore
vendored
|
|
@ -1,8 +1,12 @@
|
||||||
/target
|
/target
|
||||||
/repos
|
/repos
|
||||||
/dist
|
/dist
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.07build
|
.07build
|
||||||
*.dxvk-cache
|
|
||||||
higu01
|
|
||||||
higu_script_compile_status.txt
|
higu_script_compile_status.txt
|
||||||
|
*.dxvk-cache
|
||||||
|
|
||||||
|
# Games
|
||||||
|
higu01
|
||||||
|
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
# 07build
|
# 07build
|
||||||
|
|
||||||
Custom tool for building and installing the 07th-Mod Higurashi patches.
|
Custom tool for building and installing the 07th-Mod Higurashi patches. (WIP, currently purpose-built for the Czech localization project)
|
||||||
|
|
|
||||||
6
dev/onikakushi.sh
Executable file
6
dev/onikakushi.sh
Executable file
|
|
@ -0,0 +1,6 @@
|
||||||
|
set -e
|
||||||
|
|
||||||
|
cargo run -- build-patch -c onikakushi -p repos/onikakushi
|
||||||
|
cargo run -- build-ui -c onikakushi -u repos/ui
|
||||||
|
cargo run -- install -c onikakushi -p dist/onikakushi-patch.7z -u dist/onikakushi-ui-win.7z -g higu01
|
||||||
|
wine higu01/HigurashiEp01.exe
|
||||||
24
src/main.rs
24
src/main.rs
|
|
@ -60,9 +60,6 @@ enum CLISubcommand {
|
||||||
/// Directory of the patch
|
/// Directory of the patch
|
||||||
#[arg(short, long, default_value = ".")]
|
#[arg(short, long, default_value = ".")]
|
||||||
patch: PathBuf,
|
patch: PathBuf,
|
||||||
/// Zip the built patch
|
|
||||||
#[arg(short, long, default_value = "false")]
|
|
||||||
zip: bool,
|
|
||||||
},
|
},
|
||||||
/// Builds the UI patch
|
/// Builds the UI patch
|
||||||
BuildUI {
|
BuildUI {
|
||||||
|
|
@ -112,8 +109,7 @@ fn main() -> anyhow::Result<()> {
|
||||||
working,
|
working,
|
||||||
patch,
|
patch,
|
||||||
dist,
|
dist,
|
||||||
zip,
|
} => build_patch(chapter, working, patch, dist)?,
|
||||||
} => build_patch(chapter, working, patch, dist, zip)?,
|
|
||||||
CLISubcommand::BuildUI { chapter, dist, ui } => build_ui(chapter, dist, ui)?,
|
CLISubcommand::BuildUI { chapter, dist, ui } => build_ui(chapter, dist, ui)?,
|
||||||
CLISubcommand::Install {
|
CLISubcommand::Install {
|
||||||
chapter,
|
chapter,
|
||||||
|
|
@ -352,7 +348,6 @@ fn build_patch(
|
||||||
working: PathBuf,
|
working: PathBuf,
|
||||||
patch: PathBuf,
|
patch: PathBuf,
|
||||||
dist: PathBuf,
|
dist: PathBuf,
|
||||||
zip: bool,
|
|
||||||
) -> anyhow::Result<()> {
|
) -> anyhow::Result<()> {
|
||||||
// BUILD PATCH
|
// BUILD PATCH
|
||||||
|
|
||||||
|
|
@ -449,16 +444,15 @@ fn build_patch(
|
||||||
|
|
||||||
// Zip the patch
|
// Zip the patch
|
||||||
|
|
||||||
if zip {
|
println!("Zipping the patch...");
|
||||||
let patch_7z_path = dist.join(format!("{chapter}-patch.7z"));
|
|
||||||
|
|
||||||
Command::new("7z")
|
Command::new("7z")
|
||||||
.arg("a")
|
.arg("a")
|
||||||
.arg(patch_7z_path)
|
.arg(format!("{chapter}-patch.7z"))
|
||||||
.arg(data_path)
|
.arg("-y")
|
||||||
.arg("-y")
|
.arg(data_subdir)
|
||||||
.status()?;
|
.current_dir(dist)
|
||||||
}
|
.status()?;
|
||||||
|
|
||||||
Ok(())
|
Ok(())
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue