forked from ptm-admin/ptm-tools
This repository exists for non-creative scripts and tools.
Created the installation script for PtM repo. What does it do: - Detects the installation directory of BG3 (checks common Steam folders on each drive) - Helps user to remove existing repository and files (with big warning) if the repository is already present in BG3 directory - Initializes git repository with `core.autocrlf false` and `core.longpaths true` - Fetches the current development branch Installation safeguard: script uses temporary file `.ptm_install_in_progress` to distinguish between the actual git repo or the interrupted install. If we remove the validation and directory lookup, all that this script does in BG3 directory is: ``` git init git config core.autocrlf false git config core.longpaths true git remote add origin <repo_url> git fetch origin development git checkout -b development --track origin/development ``` That should cover the installation with default git params with the bonus of avoiding manual file operations. ## How we can use it after merge I expect that we can just attach a link to the `game-repo-installation` directory somewhere in the onboarding section and ask to download and run `install-ptm.bat` script. ## Further possible improvements - Incorporate paths to remove PtM skillcheck as well as actual PtM directories - Option to just remove the current PtM repository without installation, so it would act both as install and uninstall script Reviewed-on: ptm-admin/ptm-tools#1 Co-authored-by: mutex64 <mutex64@gmail.com> Co-committed-by: mutex64 <mutex64@gmail.com> |
||
|---|---|---|
| game-repo-installation | ||
| README.md | ||
PtM tools repository.