-
Notifications
You must be signed in to change notification settings - Fork 48
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
Update Installer Script (run postInstall before shortcut creation) #1170
Conversation
@qparis can you remember if there was a reason to use this order? |
I don't see a reason why we should not be able to change the order. We should only face an issue with this if inside |
For me it's fine to try it. Could you take a look at the |
This is interesting. It seems like some installers use a different order: scripts/Engines/Wine/QuickScript/Origin Script/script.js Lines 48 to 65 in 5fe4e1f
|
ZipScript as well |
Ok, then let's merge this. |
…hoenicisOrg#1170) Avoid issues if postInstall() creates the executable which the shortcut refers to.
Description
Thanks to #1144 we have discovered that scripts will fail if
.executable()
points to a file that only exist afterpostInstall
step is done. Since @plata mentioned something about Installer Script working this way for a reason (though I was unable to find that reason in closed PRs and issues) this is a WIP draft untill me or someone else test this with other scripts that usepostInstall
.What works
Heroes of Might & Magic IV
no longer crash due to non-existing.executable()
What was not tested
Other scripts with
postInstall
Test
Ready for review
json-align
andeslint
run according to the documentation.