fix(crash): 修复双击闪退——路径基于可执行文件目录解析、崩溃兜底日志、资源入 bin 与安装包

This commit is contained in:
NianGao Dev
2026-08-16 06:31:00 +08:00
parent 157c769473
commit 854440216f
7 changed files with 92 additions and 18 deletions

View File

@@ -22,6 +22,8 @@ Copy-Item (Join-Path $root "config\client.yaml") (Join-Path $stage "config")
Copy-Item (Join-Path $root "config\server.yaml") (Join-Path $stage "config")
New-Item -ItemType Directory -Force -Path (Join-Path $stage "mods") | Out-Null
Copy-Item (Join-Path $root "mods\README.md") (Join-Path $stage "mods")
# 游戏数据(方块/物品/配方注册表)
Copy-Item (Join-Path $root "assets") (Join-Path $stage "assets") -Recurse
# 默认素材包
Copy-Item (Join-Path $root "resourcepacks") (Join-Path $stage "resourcepacks") -Recurse
# 安装脚本(GBK 编码保证 cmd 中文显示)