Minor changes

This commit is contained in:
Konstantin von Engelhardt 2026-10-02 14:46:44 +02:00
parent 46cda692fc
commit 21af56e76e
4 changed files with 22 additions and 18 deletions

8
.gitignore vendored
View file

@ -1,8 +1,12 @@
/target
/repos
/dist
.DS_Store
.07build
*.dxvk-cache
higu01
higu_script_compile_status.txt
*.dxvk-cache
# Games
higu01

View file

@ -1,3 +1,3 @@
# 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
View 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

View file

@ -60,9 +60,6 @@ enum CLISubcommand {
/// Directory of the patch
#[arg(short, long, default_value = ".")]
patch: PathBuf,
/// Zip the built patch
#[arg(short, long, default_value = "false")]
zip: bool,
},
/// Builds the UI patch
BuildUI {
@ -112,8 +109,7 @@ fn main() -> anyhow::Result<()> {
working,
patch,
dist,
zip,
} => build_patch(chapter, working, patch, dist, zip)?,
} => build_patch(chapter, working, patch, dist)?,
CLISubcommand::BuildUI { chapter, dist, ui } => build_ui(chapter, dist, ui)?,
CLISubcommand::Install {
chapter,
@ -352,7 +348,6 @@ fn build_patch(
working: PathBuf,
patch: PathBuf,
dist: PathBuf,
zip: bool,
) -> anyhow::Result<()> {
// BUILD PATCH
@ -449,16 +444,15 @@ fn build_patch(
// Zip the patch
if zip {
let patch_7z_path = dist.join(format!("{chapter}-patch.7z"));
println!("Zipping the patch...");
Command::new("7z")
.arg("a")
.arg(patch_7z_path)
.arg(data_path)
.arg("-y")
.status()?;
}
Command::new("7z")
.arg("a")
.arg(format!("{chapter}-patch.7z"))
.arg("-y")
.arg(data_subdir)
.current_dir(dist)
.status()?;
Ok(())
}