You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Sometimes it's important to perform actions before running the actual app. The classic approach is to tell people to write custom AppRun scripts.
That's not very elegant, though, as the code is pretty much the same every time. Also some plugins might have to set e.g., environment variables to work properly (a good example is #80).
Therefore linuxdeploy should, if necessary, generate an AppRun stub that is prepared to run hooks created by plugins. I guess sourceing all files in some special directory in the AppDir should be sufficient. It'll be best to make a rule that the order must not have any influence on the result.
The text was updated successfully, but these errors were encountered:
I drafted a new section in the wiki describing a method how to allow linuxdeploy to auto-generate an AppRun script that automatically sources plugin-created files.
There's two important rules for such scripts:
must be idempotent: scripts must be able to deal with previous/multiple executions and shall deal with changes of other scripts
must not rely on any special order of execution: scripts must not expect any special order in which they are run
Sometimes it's important to perform actions before running the actual app. The classic approach is to tell people to write custom AppRun scripts.
That's not very elegant, though, as the code is pretty much the same every time. Also some plugins might have to set e.g., environment variables to work properly (a good example is #80).
Therefore linuxdeploy should, if necessary, generate an AppRun stub that is prepared to run hooks created by plugins. I guess
source
ing all files in some special directory in the AppDir should be sufficient. It'll be best to make a rule that the order must not have any influence on the result.The text was updated successfully, but these errors were encountered: