Closed brlin-tw closed 2 years ago
You can use the "RUN_EXE" environment variable for this. Just add the exe to your snap and point RUN_EXE
to that location.
This is what the notepad-plus-plus snap does. Taqi recently ported it to sommelier-core: https://github.com/mmtrt/notepad-plus-plus/blob/master/snap/snapcraft.yaml
docs contributions are welcome! :)
Apologies for the ignorance, I finally am able to come back to this.
My implementation is to download the executable in runtime using a launcher script, then set the RUN_EXE environment variable to the path
Not sure how to improve the documentation, though, my thought is to simply enumerate different kinds of applications and their corresponding snap recipe in the Example Snaps section of the README for reference. I've quickly made up #30 for the idea.
The target application provides a portable executable that doesn't require installing, how to snap it?