-
Notifications
You must be signed in to change notification settings - Fork 14
Gradle copy to mods task #27
Gradle copy to mods task #27
Conversation
Please use the default file: Additionally, please make the task run after build has finished, but instead of throwing skip the copy if the directory is not set (could do with a warning message). |
Are you sure about this? The reason I did not use "gradle.properties" is because this is the default file used by gradle for various shared settings that developers may want to define. It is generally not used for local settings but shared settings. I can do it. The need for any shared settings might not be necessary in this project. |
Can you elaborate the point of building if you have nothing to copy? You can run |
I thought of redefining build as build + (conditional) copy. Perhaps that's a wrong approach. Keeping throw is fine, just point the user to dist file. |
Yes please. If for some reason we do end up needing shared properties then we'll revert this and go with custom (local) variation. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Happy with this but would be great if you could make it more generic:
gradle.properties:
game.dir = C:\\Something\\Starsector
game.executable = starsector.exe (or starsector.sh for Linux)
With another task to start the game (depends on copyMod) and copyMod changed so the mod name is not hardcoded (taken from mod_info.json instead).
No description provided.