-
Notifications
You must be signed in to change notification settings - Fork 66
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Use RELATIVE_PROJECT_PATH in export #28
Conversation
This assumes presets.export_path is relative to RELATIVE_PROJECT_PATH.
This means we use the whole path relative to RELATIVE_PROJECT_PATH rather than just filename.
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.
Thanks for the contribution! I have some thoughts about the change that I'd like your response to. Also, you'll need to run a yarn build
so that the js
file is generated with the changes you make.
As preparation for a new approach
Update moveBuildsToExportDirectory to use new USE_PRESET_EXPORT_PATH constant
Update main file to call moveBuildsToExportDirectory if USE_PRESET_EXPORT_PATH is true
Okay, I think I found the best way to implement this. I am also happy with the documentation. |
Awesome! Yeah if you aren't familiar with Yarn you can check it out here https://yarnpkg.com/ Once you have it installed do a |
That should be all! Should be all done now. But there is one thing I would like to discuss. And that is changing this new constant to default to true. I set it to false now while working but I think it should actually be changed. |
Thinking through the pros and cons I realized that it could be good to document the current bias. |
So I have a few thoughts, totally open to doing what you want to do but here are some things for consideration:
Basically, if we want to get this change in without too many changes we'd have to keep the value defaulted to false and do a minor version upgrade. However, if you'd be OK with me (or you!) taking the opportunity to rework some things as part of a major version upgrade I would be totally open to that, with the caveat that this feature would then go out at some point in the future. And then there's a middle road where this goes in now, and becomes default behavior in a future version. I'm totally fine with whatever decision you choose to make, so just let me know! I'll be leaving a comment or two on the code and I'll have time to test the change tomorrow. Nice work, and thanks again for the contribution! |
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.
Looks great overall! The only blocking thing is that the new input needs to be defined in action.yml
. See my comments for more info
Regarding breaking change, I say we merge it like this and I'll open another pull request that changes the default and removes |
Ok, sounds good! Please make sure you've built your latest changes with |
Alright, I built again! |
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.
I just completed my testing and it works really well 👍 I just have one thing that I missed yesterday, as soon as you address that I'll merge this change in and create a new release!
Includes build
Fixed that spammy message now, cd9b652 includes build. |
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.
Perfect, thanks again for your contribution!
Here we assume preset.export_path is relative to the project path, which should be the case since this is set up in the editor were the project is the root.
Fixes #25, no longer needing
../../../.local/share/godot/builds/
to reach it during deployment.