Modify condig file

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-27 04:24:19 +08:00
parent afc62f311b
commit e87bda4f33
4 changed files with 28 additions and 30 deletions

View File

@@ -13,10 +13,11 @@ install:
cd {{ client_dir }} && {{ bun_cmd }} install
clean:
find .outputs -mindepth 1 ! -name config.yaml -exec rm -rf {} +
rm -rf {{ output_dir }}
mkdir -p {{ output_dir }}
cp {{ join(project_dir, "config.default.yaml") }} {{ join(output_dir, "config.yaml") }}
build:
mkdir -p {{ output_dir }}
{{ go_cmd }} build -o {{ exec_path }}{{ if os() == "windows" { ".exe" } else { "" } }} {{ server_enrty }}
cd {{ client_dir }} && {{ bun_cmd }} run build --outDir {{ join(output_dir, "static") }}