fix: revise method for detecting screeps install #17
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Removed
steam-game-path
— its usingregistry-js
and requires Python and C++ build tools on Windows (https://github.com/desktop/registry-js/blob/master/docs/index.md). If those are not installednode-gyp
throws errors.Revised method for finding the Screeps installation:
getScreepsPath()
For MacOS, it checks for 'Steam' in the default location within the user's home directory.
For Linux, it checks for 'Steam' in several common locations within the user's home directory. It also has basic support for the Windows Subsystem for Linux (WSL), where it checks for 'Steam' in the default location on the Windows file system.
For Windows, it first tries to get the 'Steam' path from the Windows Registry using the lightweight
winreg
. If this fails, it falls back to checking for 'Steam' in the default location within the 'Program Files (x86)' directory.Added rollup (was having issues with tsc importing from local files)
More readme updates: View