自动安装

Windows
1. 解压 Bootstrap ZIP。
2. 在解压目录运行：
   powershell -ExecutionPolicy Bypass -File .\install_bootstrap.ps1 -GameRoot "游戏目录" -Branch master

Linux
1. 解压 Bootstrap ZIP。
2. 在解压目录运行：
   sh ./install_bootstrap.sh "/绝对路径/starsector" master
3. 运行：
   "/绝对路径/starsector/starsector-localized.sh"

手动安装

Windows
1. 下载并解压：https://github.com/TruthOriginem/Starsector-Localization-CN/archive/refs/heads/master.zip
2. 在下载目录运行：
   powershell -ExecutionPolicy Bypass -File .\packaging\install_agent.ps1 -GameRoot "游戏目录"

Linux
1. 下载并解压：https://github.com/TruthOriginem/Starsector-Localization-CN/archive/refs/heads/master.zip
2. 在下载目录运行：
   sh ./packaging/install_agent.sh "/绝对路径/starsector"
3. 运行：
   "/绝对路径/starsector/starsector-localized.sh"

自动卸载

Windows
powershell -ExecutionPolicy Bypass -File .\uninstall_bootstrap.ps1 -GameRoot "游戏目录"

Linux
sh ./uninstall_bootstrap.sh "/绝对路径/starsector"

手动卸载

Windows
powershell -ExecutionPolicy Bypass -File .\packaging\uninstall_agent.ps1 -GameRoot "游戏目录"

Linux
sh ./packaging/uninstall_agent.sh "/绝对路径/starsector"

新版安装脚本会自动恢复首次安装前的备份。仅旧版手工复制安装、且游戏目录中没有
`.starsector-localization-agent` 状态目录时，才需要另行将 `original/` 内容复制回游戏目录。
