Compare commits
No commits in common. "21af56e76eedf44dffc05b22bd421d36e35057f5" and "main" have entirely different histories.
21af56e76e
...
main
11
.gitignore
vendored
|
|
@ -1,12 +1 @@
|
||||||
/target
|
|
||||||
/repos
|
|
||||||
/dist
|
|
||||||
|
|
||||||
.DS_Store
|
.DS_Store
|
||||||
.07build
|
|
||||||
|
|
||||||
higu_script_compile_status.txt
|
|
||||||
*.dxvk-cache
|
|
||||||
|
|
||||||
# Games
|
|
||||||
higu01
|
|
||||||
|
|
|
||||||
200
Cargo.lock
generated
|
|
@ -1,200 +0,0 @@
|
||||||
# This file is automatically @generated by Cargo.
|
|
||||||
# It is not intended for manual editing.
|
|
||||||
version = 4
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "anstream"
|
|
||||||
version = "1.0.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "824a212faf96e9acacdbd09febd34438f8f711fb84e09a8916013cd7815ca28d"
|
|
||||||
dependencies = [
|
|
||||||
"anstyle",
|
|
||||||
"anstyle-parse",
|
|
||||||
"anstyle-query",
|
|
||||||
"anstyle-wincon",
|
|
||||||
"colorchoice",
|
|
||||||
"is_terminal_polyfill",
|
|
||||||
"utf8parse",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "anstyle"
|
|
||||||
version = "1.0.14"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "940b3a0ca603d1eade50a4846a2afffd5ef57a9feac2c0e2ec2e14f9ead76000"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "anstyle-parse"
|
|
||||||
version = "1.0.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "52ce7f38b242319f7cabaa6813055467063ecdc9d355bbb4ce0c68908cd8130e"
|
|
||||||
dependencies = [
|
|
||||||
"utf8parse",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "anstyle-query"
|
|
||||||
version = "1.1.5"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "40c48f72fd53cd289104fc64099abca73db4166ad86ea0b4341abe65af83dadc"
|
|
||||||
dependencies = [
|
|
||||||
"windows-sys",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "anstyle-wincon"
|
|
||||||
version = "3.0.11"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "291e6a250ff86cd4a820112fb8898808a366d8f9f58ce16d1f538353ad55747d"
|
|
||||||
dependencies = [
|
|
||||||
"anstyle",
|
|
||||||
"once_cell_polyfill",
|
|
||||||
"windows-sys",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "anyhow"
|
|
||||||
version = "1.0.102"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "7f202df86484c868dbad7eaa557ef785d5c66295e41b460ef922eca0723b842c"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "clap"
|
|
||||||
version = "4.6.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "1ddb117e43bbf7dacf0a4190fef4d345b9bad68dfc649cb349e7d17d28428e51"
|
|
||||||
dependencies = [
|
|
||||||
"clap_builder",
|
|
||||||
"clap_derive",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "clap_builder"
|
|
||||||
version = "4.6.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "714a53001bf66416adb0e2ef5ac857140e7dc3a0c48fb28b2f10762fc4b5069f"
|
|
||||||
dependencies = [
|
|
||||||
"anstream",
|
|
||||||
"anstyle",
|
|
||||||
"clap_lex",
|
|
||||||
"strsim",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "clap_derive"
|
|
||||||
version = "4.6.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "f2ce8604710f6733aa641a2b3731eaa1e8b3d9973d5e3565da11800813f997a9"
|
|
||||||
dependencies = [
|
|
||||||
"heck",
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"syn",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "clap_lex"
|
|
||||||
version = "1.1.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "c8d4a3bb8b1e0c1050499d1815f5ab16d04f0959b233085fb31653fbfc9d98f9"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "colorchoice"
|
|
||||||
version = "1.0.5"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "1d07550c9036bf2ae0c684c4297d503f838287c83c53686d05370d0e139ae570"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "fs_extra"
|
|
||||||
version = "1.3.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "42703706b716c37f96a77aea830392ad231f44c9e9a67872fa5548707e11b11c"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "heck"
|
|
||||||
version = "0.5.0"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "2304e00983f87ffb38b55b444b5e3b60a884b5d30c0fca7d82fe33449bbe55ea"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "is_terminal_polyfill"
|
|
||||||
version = "1.70.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "a6cb138bb79a146c1bd460005623e142ef0181e3d0219cb493e02f7d08a35695"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "once_cell_polyfill"
|
|
||||||
version = "1.70.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "384b8ab6d37215f3c5301a95a4accb5d64aa607f1fcb26a11b5303878451b4fe"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "proc-macro2"
|
|
||||||
version = "1.0.106"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "8fd00f0bb2e90d81d1044c2b32617f68fcb9fa3bb7640c23e9c748e53fb30934"
|
|
||||||
dependencies = [
|
|
||||||
"unicode-ident",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "quote"
|
|
||||||
version = "1.0.45"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "41f2619966050689382d2b44f664f4bc593e129785a36d6ee376ddf37259b924"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "strsim"
|
|
||||||
version = "0.11.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "7da8b5736845d9f2fcb837ea5d9e2628564b3b043a70948a3f0b778838c5fb4f"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "syn"
|
|
||||||
version = "2.0.117"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "e665b8803e7b1d2a727f4023456bbbbe74da67099c585258af0ad9c5013b9b99"
|
|
||||||
dependencies = [
|
|
||||||
"proc-macro2",
|
|
||||||
"quote",
|
|
||||||
"unicode-ident",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "unicode-ident"
|
|
||||||
version = "1.0.24"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "e6e4313cd5fcd3dad5cafa179702e2b244f760991f45397d14d4ebf38247da75"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "utf8parse"
|
|
||||||
version = "0.2.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "06abde3611657adf66d383f00b093d7faecc7fa57071cce2578660c9f1010821"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "windows-link"
|
|
||||||
version = "0.2.1"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "f0805222e57f7521d6a62e36fa9163bc891acd422f971defe97d64e70d0a4fe5"
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "windows-sys"
|
|
||||||
version = "0.61.2"
|
|
||||||
source = "registry+https://github.com/rust-lang/crates.io-index"
|
|
||||||
checksum = "ae137229bcbd6cdf0f7b80a31df61766145077ddf49416a728b02cb3921ff3fc"
|
|
||||||
dependencies = [
|
|
||||||
"windows-link",
|
|
||||||
]
|
|
||||||
|
|
||||||
[[package]]
|
|
||||||
name = "zeronanabuild"
|
|
||||||
version = "0.1.0"
|
|
||||||
dependencies = [
|
|
||||||
"anyhow",
|
|
||||||
"clap",
|
|
||||||
"fs_extra",
|
|
||||||
]
|
|
||||||
|
|
@ -1,9 +0,0 @@
|
||||||
[package]
|
|
||||||
name = "zeronanabuild"
|
|
||||||
version = "0.1.0"
|
|
||||||
edition = "2024"
|
|
||||||
|
|
||||||
[dependencies]
|
|
||||||
anyhow = "1.0.102"
|
|
||||||
clap = { version = "4.6.0", features = ["derive"] }
|
|
||||||
fs_extra = "1.3.0"
|
|
||||||
|
|
@ -1,3 +1,3 @@
|
||||||
# 07build
|
# Branding CZchanu
|
||||||
|
|
||||||
Custom tool for building and installing the 07th-Mod Higurashi patches. (WIP, currently purpose-built for the Czech localization project)
|
Tento repozitář obsashuje oficiální loga a designové prvky CZchanu a ostatních stránek v síti.
|
||||||
|
|
|
||||||
|
|
@ -1,6 +0,0 @@
|
||||||
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
|
|
||||||
BIN
png/common/logo-1024.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
png/common/logo-2048.png
Normal file
|
After Width: | Height: | Size: 58 KiB |
BIN
png/common/logo-256.png
Normal file
|
After Width: | Height: | Size: 6.5 KiB |
BIN
png/common/logo-512.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
png/common/logo-short-1024.png
Normal file
|
After Width: | Height: | Size: 27 KiB |
BIN
png/common/logo-short-2048.png
Normal file
|
After Width: | Height: | Size: 59 KiB |
BIN
png/common/logo-short-256.png
Normal file
|
After Width: | Height: | Size: 6.6 KiB |
BIN
png/common/logo-short-512.png
Normal file
|
After Width: | Height: | Size: 14 KiB |
BIN
png/common/star-1024.png
Normal file
|
After Width: | Height: | Size: 47 KiB |
BIN
png/common/star-2048.png
Normal file
|
After Width: | Height: | Size: 108 KiB |
BIN
png/common/star-256.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
png/common/star-512.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
png/common/wordmark-1024.png
Normal file
|
After Width: | Height: | Size: 21 KiB |
BIN
png/common/wordmark-2048.png
Normal file
|
After Width: | Height: | Size: 45 KiB |
BIN
png/common/wordmark-256.png
Normal file
|
After Width: | Height: | Size: 5.1 KiB |
BIN
png/common/wordmark-512.png
Normal file
|
After Width: | Height: | Size: 10 KiB |
BIN
png/common/wordmark-short-1024.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
png/common/wordmark-short-2048.png
Normal file
|
After Width: | Height: | Size: 43 KiB |
BIN
png/common/wordmark-short-256.png
Normal file
|
After Width: | Height: | Size: 4.8 KiB |
BIN
png/common/wordmark-short-512.png
Normal file
|
After Width: | Height: | Size: 9.7 KiB |
BIN
png/studios.png
Normal file
|
After Width: | Height: | Size: 214 KiB |
BIN
png/wiki/logo-135.png
Normal file
|
After Width: | Height: | Size: 9.9 KiB |
BIN
png/wiki/logo-202.png
Normal file
|
After Width: | Height: | Size: 15 KiB |
BIN
png/wiki/logo-270.png
Normal file
|
After Width: | Height: | Size: 20 KiB |
BIN
png/wiki/wordmark.png
Normal file
|
After Width: | Height: | Size: 2.3 KiB |
579
src/main.rs
|
|
@ -1,579 +0,0 @@
|
||||||
use anyhow::bail;
|
|
||||||
use clap::{Parser, Subcommand};
|
|
||||||
use fs_extra::{
|
|
||||||
copy_items,
|
|
||||||
dir::CopyOptions as DirCopyOptions,
|
|
||||||
file::{CopyOptions as FileCopyOptions, move_file},
|
|
||||||
};
|
|
||||||
use std::{
|
|
||||||
fs::{copy, create_dir_all, remove_dir_all},
|
|
||||||
path::PathBuf,
|
|
||||||
process::Command,
|
|
||||||
};
|
|
||||||
|
|
||||||
/// 07th-Mod build tool
|
|
||||||
#[derive(Parser, Debug)]
|
|
||||||
#[command(version, about, long_about = None)]
|
|
||||||
struct Args {
|
|
||||||
/// The subcommand to run
|
|
||||||
#[command(subcommand)]
|
|
||||||
command: CLISubcommand,
|
|
||||||
}
|
|
||||||
|
|
||||||
#[derive(Subcommand, Debug)]
|
|
||||||
enum CLISubcommand {
|
|
||||||
/// Prepares tools for building and installing the patch
|
|
||||||
InitPatch {
|
|
||||||
/// ID of the chapter ("onikakushi", ...)
|
|
||||||
#[arg(short, long)]
|
|
||||||
chapter: String,
|
|
||||||
/// The working directory to initialize
|
|
||||||
#[arg(short, long, default_value = ".07build")]
|
|
||||||
working: PathBuf,
|
|
||||||
/// Don't pull base (for build only)
|
|
||||||
#[arg(long, default_value = "false")]
|
|
||||||
no_base: bool,
|
|
||||||
/// Don't pull build dependencies (for installation only)
|
|
||||||
#[arg(long, default_value = "false")]
|
|
||||||
no_build_deps: bool,
|
|
||||||
},
|
|
||||||
/// Prepares tools for building the UI patch
|
|
||||||
InitUI {
|
|
||||||
/// The working directory to initialize
|
|
||||||
#[arg(short, long, default_value = ".07build")]
|
|
||||||
working: PathBuf,
|
|
||||||
/// Path to the UI directory to initialize
|
|
||||||
#[arg(short, long, default_value = ".")]
|
|
||||||
ui: PathBuf,
|
|
||||||
},
|
|
||||||
/// Builds the patch
|
|
||||||
BuildPatch {
|
|
||||||
/// ID of the chapter ("onikakushi", ...)
|
|
||||||
#[arg(short, long)]
|
|
||||||
chapter: String,
|
|
||||||
/// The initialized working directory
|
|
||||||
#[arg(short, long, default_value = ".07build")]
|
|
||||||
working: PathBuf,
|
|
||||||
/// Directory to output the built patch
|
|
||||||
#[arg(short, long, default_value = "dist")]
|
|
||||||
dist: PathBuf,
|
|
||||||
/// Directory of the patch
|
|
||||||
#[arg(short, long, default_value = ".")]
|
|
||||||
patch: PathBuf,
|
|
||||||
},
|
|
||||||
/// Builds the UI patch
|
|
||||||
BuildUI {
|
|
||||||
/// ID of the chapter ("onikakushi", ...)
|
|
||||||
#[arg(short, long)]
|
|
||||||
chapter: String,
|
|
||||||
/// Directory of the built patch
|
|
||||||
#[arg(short, long, default_value = "dist")]
|
|
||||||
dist: PathBuf,
|
|
||||||
/// Path to the UI directory
|
|
||||||
#[arg(short, long, default_value = ".")]
|
|
||||||
ui: PathBuf,
|
|
||||||
},
|
|
||||||
/// Installs patches
|
|
||||||
Install {
|
|
||||||
/// ID of the chapter ("onikakushi", ...)
|
|
||||||
#[arg(short, long)]
|
|
||||||
chapter: String,
|
|
||||||
/// The initialized working directory
|
|
||||||
#[arg(short, long, default_value = ".07build")]
|
|
||||||
working: PathBuf,
|
|
||||||
/// The patch
|
|
||||||
#[arg(short, long)]
|
|
||||||
patch: PathBuf,
|
|
||||||
/// The UI patch
|
|
||||||
#[arg(short, long)]
|
|
||||||
ui: PathBuf,
|
|
||||||
/// The game directory (with the exe)
|
|
||||||
#[arg(short, long, default_value = ".")]
|
|
||||||
game: PathBuf,
|
|
||||||
},
|
|
||||||
}
|
|
||||||
|
|
||||||
fn main() -> anyhow::Result<()> {
|
|
||||||
let args = Args::parse();
|
|
||||||
|
|
||||||
match args.command {
|
|
||||||
CLISubcommand::InitPatch {
|
|
||||||
chapter,
|
|
||||||
working,
|
|
||||||
no_base,
|
|
||||||
no_build_deps,
|
|
||||||
} => init_patch(chapter, working, no_base, no_build_deps)?,
|
|
||||||
CLISubcommand::InitUI { working, ui } => init_ui(working, ui)?,
|
|
||||||
CLISubcommand::BuildPatch {
|
|
||||||
chapter,
|
|
||||||
working,
|
|
||||||
patch,
|
|
||||||
dist,
|
|
||||||
} => build_patch(chapter, working, patch, dist)?,
|
|
||||||
CLISubcommand::BuildUI { chapter, dist, ui } => build_ui(chapter, dist, ui)?,
|
|
||||||
CLISubcommand::Install {
|
|
||||||
chapter,
|
|
||||||
working,
|
|
||||||
patch,
|
|
||||||
ui,
|
|
||||||
game,
|
|
||||||
} => install(chapter, working, patch, ui, game)?,
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn chapter_to_strings(chapter: &str) -> anyhow::Result<(&str, &str, &str, &str)> {
|
|
||||||
match chapter {
|
|
||||||
"onikakushi" => Ok((
|
|
||||||
"https://github.com/07th-mod/patch-releases/releases/download/onikakushi-v1.0/onikakushi-base.7z",
|
|
||||||
"HigurashiEp01_Data",
|
|
||||||
"5.2.2f1",
|
|
||||||
"Onikakushi",
|
|
||||||
)),
|
|
||||||
_ => bail!("Chapter {chapter} isn't supported yet!"),
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
fn init_patch(
|
|
||||||
chapter: String,
|
|
||||||
working: PathBuf,
|
|
||||||
no_base: bool,
|
|
||||||
no_build_deps: bool,
|
|
||||||
) -> anyhow::Result<()> {
|
|
||||||
create_dir_all(&working)?;
|
|
||||||
|
|
||||||
// DOWNLOAD
|
|
||||||
|
|
||||||
// Download base
|
|
||||||
|
|
||||||
let (base_url, _, _, _) = chapter_to_strings(&chapter)?;
|
|
||||||
|
|
||||||
let base_7z_path = working.join(format!("{chapter}-base.7z"));
|
|
||||||
let base_path = working.join(format!("{chapter}-base"));
|
|
||||||
|
|
||||||
if !no_base && !base_7z_path.exists() {
|
|
||||||
println!("Downloading base...");
|
|
||||||
|
|
||||||
Command::new("wget")
|
|
||||||
.arg(base_url)
|
|
||||||
.arg("-O")
|
|
||||||
.arg(&base_7z_path)
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
if !no_base && !base_path.exists() {
|
|
||||||
println!("Unzipping base...");
|
|
||||||
|
|
||||||
Command::new("7z")
|
|
||||||
.arg("x")
|
|
||||||
.arg(base_7z_path)
|
|
||||||
.arg("-y")
|
|
||||||
.arg(format!("-o{}", base_path.to_string_lossy().to_string()))
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
if no_build_deps {
|
|
||||||
return Ok(());
|
|
||||||
}
|
|
||||||
|
|
||||||
// Download video DLL
|
|
||||||
|
|
||||||
let avpv_path = working.join("AVProVideo.dll");
|
|
||||||
|
|
||||||
if !avpv_path.exists() {
|
|
||||||
println!("Downloading AVProVideo.dll...");
|
|
||||||
|
|
||||||
Command::new("wget")
|
|
||||||
.arg("https://github.com/07th-mod/patch-releases/releases/download/developer-v1.0/AVProVideo.dll")
|
|
||||||
.arg("-O")
|
|
||||||
.arg(avpv_path)
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Download the assembly
|
|
||||||
|
|
||||||
let assemply_path = working.join("assembly");
|
|
||||||
|
|
||||||
if !assemply_path.exists() {
|
|
||||||
println!("Downloading assembly...");
|
|
||||||
|
|
||||||
Command::new("git")
|
|
||||||
.arg("clone")
|
|
||||||
.arg("https://github.com/07th-mod/higurashi-assembly.git")
|
|
||||||
.arg(&assemply_path)
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
// BUILD DEPENDENCIES
|
|
||||||
|
|
||||||
// Common
|
|
||||||
let assembly_csproj_path = assemply_path.join("Assembly-CSharp.csproj");
|
|
||||||
|
|
||||||
// Build the assembly
|
|
||||||
|
|
||||||
let assembly_dll_path = assemply_path
|
|
||||||
.join("bin")
|
|
||||||
.join("Release")
|
|
||||||
.join("Assembly-CSharp.dll");
|
|
||||||
|
|
||||||
if !assembly_dll_path.exists() {
|
|
||||||
println!("Building the assembly...");
|
|
||||||
|
|
||||||
Command::new("xbuild")
|
|
||||||
.arg("/p:Configuration=Release")
|
|
||||||
.arg(&assembly_csproj_path)
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Build the script compiler
|
|
||||||
|
|
||||||
let script_compiler_path = assemply_path
|
|
||||||
.join("bin")
|
|
||||||
.join("ScriptCompiler")
|
|
||||||
.join("HigurashiScriptCompiler.exe");
|
|
||||||
|
|
||||||
if !script_compiler_path.exists() {
|
|
||||||
println!("Building the script compiler...");
|
|
||||||
|
|
||||||
Command::new("xbuild")
|
|
||||||
.arg("/p:Configuration=ScriptCompiler")
|
|
||||||
.arg(assembly_csproj_path)
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn init_ui(working: PathBuf, ui: PathBuf) -> anyhow::Result<()> {
|
|
||||||
create_dir_all(&working)?;
|
|
||||||
|
|
||||||
// INIT
|
|
||||||
|
|
||||||
// Initialize venv
|
|
||||||
let ui_venv_path = ui.join("venv");
|
|
||||||
|
|
||||||
if !ui_venv_path.exists() {
|
|
||||||
println!("Initializing UI venv...");
|
|
||||||
|
|
||||||
Command::new("python3")
|
|
||||||
.arg("-m")
|
|
||||||
.arg("venv")
|
|
||||||
.arg("venv")
|
|
||||||
.current_dir(&ui)
|
|
||||||
.status()?;
|
|
||||||
|
|
||||||
println!("Installing UI requirements...");
|
|
||||||
|
|
||||||
Command::new("venv/bin/pip")
|
|
||||||
.arg("install")
|
|
||||||
.arg("-r")
|
|
||||||
.arg("requirements.txt")
|
|
||||||
.current_dir(&ui)
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Download vanilla UI
|
|
||||||
|
|
||||||
let vanilla_7z_path = working.join("vanilla.7z");
|
|
||||||
let vanilla_path = ui.join("assets").join("vanilla");
|
|
||||||
|
|
||||||
if !vanilla_7z_path.exists() {
|
|
||||||
println!("Downloading vanilla UI...");
|
|
||||||
|
|
||||||
Command::new("wget")
|
|
||||||
.arg("https://github.com/07th-mod/patch-releases/releases/download/developer-v1.0/vanilla.7z")
|
|
||||||
.arg("-O")
|
|
||||||
.arg(&vanilla_7z_path)
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
if !vanilla_path.exists() {
|
|
||||||
println!("Unzipping vanilla UI...");
|
|
||||||
|
|
||||||
Command::new("7z")
|
|
||||||
.arg("x")
|
|
||||||
.arg(vanilla_7z_path)
|
|
||||||
.arg("-y")
|
|
||||||
.arg(format!("-o{}", ui.to_string_lossy().to_string()))
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Download UABE (into the UI directory)
|
|
||||||
|
|
||||||
let uabe_7z_path = working.join("uabe.7z");
|
|
||||||
let uabe_path = ui.join("64bit").join("AssetBundleExtractor.exe");
|
|
||||||
|
|
||||||
if !uabe_7z_path.exists() {
|
|
||||||
println!("Downloading UABE...");
|
|
||||||
|
|
||||||
Command::new("wget")
|
|
||||||
.arg("https://github.com/07th-mod/patch-releases/releases/download/developer-v1.0/AssetsBundleExtractor_2.2stabled_64bit_with_VC2010.zip")
|
|
||||||
.arg("-O")
|
|
||||||
.arg(&uabe_7z_path)
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
if !uabe_path.exists() {
|
|
||||||
println!("Unzipping UABE...");
|
|
||||||
|
|
||||||
Command::new("7z")
|
|
||||||
.arg("x")
|
|
||||||
.arg(uabe_7z_path)
|
|
||||||
.arg("-y")
|
|
||||||
.arg(format!("-o{}", ui.to_string_lossy().to_string()))
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
// BUILD
|
|
||||||
|
|
||||||
// Build the UI compiler (bin)
|
|
||||||
let ui_compiler_path = ui.join("target").join("release").join("ui-compiler");
|
|
||||||
|
|
||||||
if !ui_compiler_path.exists() {
|
|
||||||
println!("Building the UI compiler...");
|
|
||||||
|
|
||||||
Command::new("cargo")
|
|
||||||
.arg("build")
|
|
||||||
.arg("--release")
|
|
||||||
.current_dir(ui)
|
|
||||||
.status()?;
|
|
||||||
}
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn build_patch(
|
|
||||||
chapter: String,
|
|
||||||
working: PathBuf,
|
|
||||||
patch: PathBuf,
|
|
||||||
dist: PathBuf,
|
|
||||||
) -> anyhow::Result<()> {
|
|
||||||
// BUILD PATCH
|
|
||||||
|
|
||||||
let scripts_path = patch.join("Update");
|
|
||||||
|
|
||||||
// Compile scripts
|
|
||||||
|
|
||||||
let compiled_scripts_path = patch.join("CompiledUpdateScripts");
|
|
||||||
create_dir_all(&compiled_scripts_path)?;
|
|
||||||
|
|
||||||
let script_compiler_path = working
|
|
||||||
.join("assembly")
|
|
||||||
.join("bin")
|
|
||||||
.join("ScriptCompiler")
|
|
||||||
.join("HigurashiScriptCompiler.exe");
|
|
||||||
|
|
||||||
println!("Compiling scripts...");
|
|
||||||
|
|
||||||
Command::new("wine")
|
|
||||||
.arg(script_compiler_path)
|
|
||||||
.arg(scripts_path)
|
|
||||||
.arg(compiled_scripts_path)
|
|
||||||
.status()?;
|
|
||||||
|
|
||||||
// COPY
|
|
||||||
|
|
||||||
let (_, data_subdir, _, _) = chapter_to_strings(&chapter)?;
|
|
||||||
|
|
||||||
let data_path = dist.join(data_subdir);
|
|
||||||
let managed_path = data_path.join("Managed");
|
|
||||||
let plugins_path = data_path.join("Plugins");
|
|
||||||
let streaming_assets_path = data_path.join("StreamingAssets");
|
|
||||||
|
|
||||||
create_dir_all(&data_path)?;
|
|
||||||
create_dir_all(&managed_path)?;
|
|
||||||
create_dir_all(&plugins_path)?;
|
|
||||||
create_dir_all(&streaming_assets_path)?;
|
|
||||||
|
|
||||||
// Copy tips.json
|
|
||||||
|
|
||||||
let src_tips_path = patch.join("tips.json");
|
|
||||||
let dist_tips_path = data_path.join("tips.json");
|
|
||||||
|
|
||||||
println!("Copying tips.json...");
|
|
||||||
|
|
||||||
copy(src_tips_path, dist_tips_path)?;
|
|
||||||
|
|
||||||
// Copy assembly
|
|
||||||
|
|
||||||
let src_assembly_path = working
|
|
||||||
.join("assembly")
|
|
||||||
.join("bin")
|
|
||||||
.join("Release")
|
|
||||||
.join("Assembly-CSharp.dll");
|
|
||||||
|
|
||||||
let dist_assembly_path = managed_path.join("Assembly-CSharp.dll");
|
|
||||||
|
|
||||||
println!("Copying assembly...");
|
|
||||||
|
|
||||||
copy(src_assembly_path, dist_assembly_path)?;
|
|
||||||
|
|
||||||
// Copy AVProVideo.dll
|
|
||||||
|
|
||||||
let src_avpv_path = working.join("AVProVideo.dll");
|
|
||||||
let dist_avpv_path = plugins_path.join("AVProVideo.dll");
|
|
||||||
|
|
||||||
println!("Copying AVProVideo.dll...");
|
|
||||||
|
|
||||||
copy(src_avpv_path, dist_avpv_path)?;
|
|
||||||
|
|
||||||
// Copy StreamingAssets
|
|
||||||
|
|
||||||
let cp_dirs: Vec<PathBuf> = [
|
|
||||||
"CG",
|
|
||||||
"CGAlt",
|
|
||||||
"CompiledUpdateScripts",
|
|
||||||
"OGSprites",
|
|
||||||
"spectrum",
|
|
||||||
"Update",
|
|
||||||
"voice",
|
|
||||||
]
|
|
||||||
.map(|dir| patch.join(dir))
|
|
||||||
.into_iter()
|
|
||||||
.filter(|path| path.exists())
|
|
||||||
.collect();
|
|
||||||
|
|
||||||
println!("Copying StreamingAssets...");
|
|
||||||
|
|
||||||
copy_items(
|
|
||||||
&cp_dirs,
|
|
||||||
&streaming_assets_path,
|
|
||||||
&DirCopyOptions::new().overwrite(true),
|
|
||||||
)?;
|
|
||||||
|
|
||||||
// Zip the patch
|
|
||||||
|
|
||||||
println!("Zipping the patch...");
|
|
||||||
|
|
||||||
Command::new("7z")
|
|
||||||
.arg("a")
|
|
||||||
.arg(format!("{chapter}-patch.7z"))
|
|
||||||
.arg("-y")
|
|
||||||
.arg(data_subdir)
|
|
||||||
.current_dir(dist)
|
|
||||||
.status()?;
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn build_ui(chapter: String, dist: PathBuf, ui: PathBuf) -> anyhow::Result<()> {
|
|
||||||
let (_, _, unity, title) = chapter_to_strings(&chapter)?;
|
|
||||||
|
|
||||||
// Compile for Windows
|
|
||||||
|
|
||||||
println!("Compiling UI for Windows...");
|
|
||||||
|
|
||||||
Command::new("target/release/ui-compiler")
|
|
||||||
.arg(&chapter)
|
|
||||||
.arg(unity)
|
|
||||||
.arg("win")
|
|
||||||
.current_dir(&ui)
|
|
||||||
.status()?;
|
|
||||||
|
|
||||||
// Compile for Unix
|
|
||||||
|
|
||||||
println!("Compiling UI for Unix...");
|
|
||||||
|
|
||||||
Command::new("target/release/ui-compiler")
|
|
||||||
.arg(&chapter)
|
|
||||||
.arg(unity)
|
|
||||||
.arg("unix")
|
|
||||||
.current_dir(&ui)
|
|
||||||
.status()?;
|
|
||||||
|
|
||||||
// Move to dist
|
|
||||||
|
|
||||||
let win_patch_src = ui
|
|
||||||
.join("output")
|
|
||||||
.join(format!("{}-UI_{}_win.7z", title, unity));
|
|
||||||
|
|
||||||
let win_patch_dist = dist.join(format!("{chapter}-ui-win.7z"));
|
|
||||||
|
|
||||||
let unix_patch_src = ui
|
|
||||||
.join("output")
|
|
||||||
.join(format!("{}-UI_{}_unix.7z", title, unity));
|
|
||||||
|
|
||||||
let unix_patch_dist = dist.join(format!("{chapter}-ui-unix.7z"));
|
|
||||||
|
|
||||||
println!("Moving to dist...");
|
|
||||||
|
|
||||||
move_file(
|
|
||||||
win_patch_src,
|
|
||||||
win_patch_dist,
|
|
||||||
&FileCopyOptions::new().overwrite(true),
|
|
||||||
)?;
|
|
||||||
|
|
||||||
move_file(
|
|
||||||
unix_patch_src,
|
|
||||||
unix_patch_dist,
|
|
||||||
&FileCopyOptions::new().overwrite(true),
|
|
||||||
)?;
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
|
|
||||||
fn install(
|
|
||||||
chapter: String,
|
|
||||||
working: PathBuf,
|
|
||||||
patch: PathBuf,
|
|
||||||
ui: PathBuf,
|
|
||||||
game: PathBuf,
|
|
||||||
) -> anyhow::Result<()> {
|
|
||||||
let (_, data_dir, _, _) = chapter_to_strings(&chapter)?;
|
|
||||||
|
|
||||||
let base_data_path = working.join(format!("{chapter}-base")).join(&data_dir);
|
|
||||||
let dist_data_path = game.join(&data_dir);
|
|
||||||
|
|
||||||
// Remove CG and CGAlt
|
|
||||||
|
|
||||||
println!("Removing CG and CGAlt...");
|
|
||||||
|
|
||||||
let cg_dirs: Vec<PathBuf> = [
|
|
||||||
dist_data_path.join("StreamingAssets").join("CG"),
|
|
||||||
dist_data_path.join("StreamingAssets").join("CGAlt"),
|
|
||||||
]
|
|
||||||
.into_iter()
|
|
||||||
.filter(|path| path.exists())
|
|
||||||
.collect();
|
|
||||||
|
|
||||||
for dir in cg_dirs {
|
|
||||||
remove_dir_all(dir)?;
|
|
||||||
}
|
|
||||||
|
|
||||||
// Install base
|
|
||||||
|
|
||||||
println!("Installing base...");
|
|
||||||
|
|
||||||
copy_items(
|
|
||||||
&[base_data_path],
|
|
||||||
&game,
|
|
||||||
&DirCopyOptions::new().overwrite(true),
|
|
||||||
)?;
|
|
||||||
|
|
||||||
// Install patch
|
|
||||||
|
|
||||||
println!("Installing patch...");
|
|
||||||
|
|
||||||
Command::new("7z")
|
|
||||||
.arg("x")
|
|
||||||
.arg(patch)
|
|
||||||
.arg("-y")
|
|
||||||
.arg("-aoa")
|
|
||||||
.arg(format!("-o{}", game.to_string_lossy().to_string()))
|
|
||||||
.status()?;
|
|
||||||
|
|
||||||
// Install UI patch
|
|
||||||
|
|
||||||
println!("Installing UI patch");
|
|
||||||
|
|
||||||
Command::new("7z")
|
|
||||||
.arg("x")
|
|
||||||
.arg(ui)
|
|
||||||
.arg("-y")
|
|
||||||
.arg("-aoa")
|
|
||||||
.arg(format!("-o{}", game.to_string_lossy().to_string()))
|
|
||||||
.status()?;
|
|
||||||
|
|
||||||
Ok(())
|
|
||||||
}
|
|
||||||
1
svg/common/logo-short.svg
Normal file
|
After Width: | Height: | Size: 6.1 KiB |
1
svg/common/logo.svg
Normal file
|
After Width: | Height: | Size: 9 KiB |
1
svg/common/star.svg
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><g><path d="M512,72.902l105.684,341.484l342,0l-276.684,211.048l105.684,341.484l-276.684,-211.048l-276.684,211.048l105.684,-341.484l-276.684,-211.048l342,0l105.684,-341.484Z" style="fill:#d7141a;"/><path d="M64.316,414.386l342,0l105.684,-341.484l105.684,341.484l342,0l-138.342,105.524l-618.683,0l-138.342,-105.524l-0.001,0Z" style="fill:#fff;"/><path d="M64.316,414.386l342,0l105.684,105.524l-200.21,199.908l29.21,-94.384l-276.684,-211.048l-0,-0.001Z" style="fill:#11457e;"/><path d="M633.705,392.656l390.295,0l-315.755,240.852l121.286,391.897l-317.531,-242.206l-317.531,242.206l121.286,-391.897l-315.755,-240.852l390.295,0l121.705,-393.252l121.705,393.252Zm-121.705,-309.254l-103.395,334.089l-335.1,0l271.102,206.791l-103.455,334.282l270.849,-206.597l270.849,206.597l-103.455,-334.282l271.102,-206.791l-335.1,0l-103.395,-334.089Z"/></g></svg>
|
||||||
|
After Width: | Height: | Size: 1.3 KiB |
1
svg/common/wordmark-short.svg
Normal file
|
After Width: | Height: | Size: 5.3 KiB |
1
svg/common/wordmark.svg
Normal file
|
After Width: | Height: | Size: 8.4 KiB |
1
svg/wiki/logo.svg
Normal file
|
|
@ -0,0 +1 @@
|
||||||
|
<?xml version="1.0" encoding="UTF-8" standalone="no"?><!DOCTYPE svg PUBLIC "-//W3C//DTD SVG 1.1//EN" "http://www.w3.org/Graphics/SVG/1.1/DTD/svg11.dtd"><svg width="100%" height="100%" viewBox="0 0 1024 1024" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" xml:space="preserve" xmlns:serif="http://www.serif.com/" style="fill-rule:evenodd;clip-rule:evenodd;stroke-linejoin:round;stroke-miterlimit:2;"><g><path d="M512,73.355l105.684,340.818l342,0l-276.684,210.637l105.684,340.818l-276.684,-210.637l-276.684,210.637l105.684,-340.818l-276.684,-210.637l342,0l105.684,-340.818Z" style="fill:#d7141a;"/><path d="M64.316,414.172l342,0l105.684,-340.818l105.684,340.818l342,0l-138.342,105.318l-618.683,0l-138.342,-105.318l-0.001,0Z" style="fill:#fff;"/><path d="M64.316,414.172l342,0l105.684,105.318l-200.21,199.519l29.21,-94.199l-276.684,-210.637l0,-0.001Z" style="fill:#11457e;"/><path d="M633.705,392.485l390.295,0l-315.755,240.382l121.286,391.133l-317.531,-241.734l-317.531,241.734l121.286,-391.133l-315.755,-240.382l390.295,0l121.705,-392.485l121.705,392.485Zm-121.705,-308.651l-103.395,333.437l-335.1,0l271.102,206.388l-103.455,333.63l270.849,-206.194l270.849,206.194l-103.455,-333.63l271.102,-206.388l-335.1,0l-103.395,-333.437Z"/><g><path d="M507.662,330.722l139.684,514.352l68.541,-0l131.008,-482.313c29.499,-109.971 52.056,-138.546 112.789,-147.205l0,-21.648l-219.504,0l0,21.648c21.69,1.732 34.704,3.464 45.983,6.928c26.028,8.659 39.042,26.843 39.042,53.687c0,19.916 -4.338,49.357 -12.147,77.932l-92.833,355.024l-133.611,-503.095l-78.084,-0l-146.625,505.693l-90.231,-374.074c-8.676,-33.771 -12.146,-56.284 -12.146,-72.736c0,-15.587 5.206,-28.575 15.617,-35.503c10.411,-8.659 21.69,-11.257 57.262,-13.855l0,-21.648l-268.09,0l0,21.648c27.763,3.464 40.777,8.659 51.189,19.916c14.749,15.587 26.028,42.43 39.042,92.653l129.273,516.95l71.144,-0l152.698,-514.352Z" style="fill-rule:nonzero;"/></g><g><path d="M507.052,382.84l-141.448,476.456l-92.914,0l-131.953,-527.668c-12.095,-46.666 -21.881,-71.903 -35.647,-86.451l-0.055,-0.059c-8.569,-9.265 -19.635,-12.599 -42.485,-15.451l-12.483,-1.557l0,-48.425l296.59,0l0,49.09l-13.21,0.964c-30.374,2.218 -40.289,3.202 -49.179,10.596l-0.585,0.487l-0.633,0.421c-6.824,4.54 -9.272,13.453 -9.272,23.669c0,15.659 3.443,37.063 11.726,69.305l77.665,321.981l134.65,-464.392l99.76,-0l122.539,461.405l79.172,-302.779l0.021,-0.075c7.434,-27.207 11.644,-55.227 11.644,-74.19c0,-20.059 -9.743,-33.633 -29.147,-40.144c-10.487,-3.197 -22.628,-4.686 -42.764,-6.293l-13.114,-1.047l0,-49l248.004,0l0,48.205l-12.235,1.744c-55.699,7.941 -73.985,35.948 -101.044,136.825l-133.866,492.836l-90.344,0l-129.393,-476.456Zm0.61,-52.118l139.684,514.352l68.541,-0l131.008,-482.313c29.499,-109.971 52.056,-138.546 112.789,-147.205l0,-21.648l-219.504,0l0,21.648c21.69,1.732 34.704,3.464 45.983,6.928c26.028,8.659 39.042,26.843 39.042,53.687c0,19.916 -4.338,49.357 -12.147,77.932l-92.833,355.024l-133.611,-503.095l-78.084,-0l-146.625,505.693l-90.231,-374.074c-8.676,-33.771 -12.146,-56.284 -12.146,-72.736c0,-15.587 5.206,-28.575 15.617,-35.503c10.411,-8.659 21.69,-11.257 57.262,-13.855l0,-21.648l-268.09,0l0,21.648c27.763,3.464 40.777,8.659 51.189,19.916c14.749,15.587 26.028,42.43 39.042,92.653l129.273,516.95l71.144,-0l152.698,-514.352Z" style="fill:#fff;"/></g></g></svg>
|
||||||
|
After Width: | Height: | Size: 3.2 KiB |
1
svg/wiki/wordmark.svg
Normal file
|
After Width: | Height: | Size: 7.1 KiB |
50
vectors.sh
Executable file
|
|
@ -0,0 +1,50 @@
|
||||||
|
#!/bin/bash
|
||||||
|
|
||||||
|
# Common
|
||||||
|
|
||||||
|
COMMON_IN_DIR="./svg/common"
|
||||||
|
OUT_DIR="./png/common"
|
||||||
|
|
||||||
|
mkdir -p "$OUT_DIR"
|
||||||
|
|
||||||
|
SIZES=(256 512 1024 2048)
|
||||||
|
|
||||||
|
for svg in "$COMMON_IN_DIR"/*.svg; do
|
||||||
|
filename=$(basename "$svg" .svg)
|
||||||
|
|
||||||
|
for size in "${SIZES[@]}"; do
|
||||||
|
output_file="$OUT_DIR/${filename}-${size}.png"
|
||||||
|
inkscape "$svg" \
|
||||||
|
--export-type=png \
|
||||||
|
--export-background-opacity=0 \
|
||||||
|
--export-width=$size \
|
||||||
|
--export-filename="$output_file"
|
||||||
|
done
|
||||||
|
done
|
||||||
|
|
||||||
|
# Wiki
|
||||||
|
|
||||||
|
WIKI_IN_DIR="./svg/wiki"
|
||||||
|
WIKI_OUT_DIR="./png/wiki"
|
||||||
|
|
||||||
|
mkdir -p "$WIKI_OUT_DIR"
|
||||||
|
|
||||||
|
WIKI_SIZES=(135 202 270)
|
||||||
|
|
||||||
|
for size in "${WIKI_SIZES[@]}"; do
|
||||||
|
output_file="$WIKI_OUT_DIR/logo-${size}.png"
|
||||||
|
inkscape "$WIKI_IN_DIR/logo.svg" \
|
||||||
|
--export-type=png \
|
||||||
|
--export-background-opacity=0 \
|
||||||
|
--export-width=$size \
|
||||||
|
--export-filename="$output_file"
|
||||||
|
done
|
||||||
|
|
||||||
|
|
||||||
|
output_file="$WIKI_OUT_DIR/wordmark.png"
|
||||||
|
|
||||||
|
inkscape "$WIKI_IN_DIR/wordmark.svg" \
|
||||||
|
--export-type=png \
|
||||||
|
--export-background-opacity=0 \
|
||||||
|
--export-width=124 \
|
||||||
|
--export-filename="$output_file"
|
||||||