Skip to content
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

Launcher Script with (Java?) Shebang #336

Closed
vorburger opened this issue Nov 3, 2023 · 2 comments
Closed

Launcher Script with (Java?) Shebang #336

vorburger opened this issue Nov 3, 2023 · 2 comments
Labels
build Build, CI, etc. (w.o. #testing) distro Distribution related

Comments

@vorburger
Copy link
Member

vorburger commented Nov 3, 2023

Once #334 is available, there should be an "end-user launch script".

https://docs.enola.dev/use/ could just document curl (or wget) https://raw.githubusercontent.com/enola-dev/enola/main/enola (or from a new distro kinda repo).

This (bash) script would then curl (or wget) the latest JAR from #334, and launch it. (Probably also check and automagically re-download updates, perhaps like this?)

Such a script could later even check if the current or parent directories contain an .enolaversion kind of file, and download the appropriate one.

An alternative could be using JSR x approach, with a #!/usr/local/bin/java --source 11 shebang. It assumes Java is installed - but so does the previous approach. However the previous approach is more in-line with upcoming #337.

@vorburger vorburger added build Build, CI, etc. (w.o. #testing) distro Distribution related labels Nov 3, 2023
vorburger added a commit to vorburger/enola that referenced this issue Dec 31, 2023
vorburger added a commit to vorburger/enola that referenced this issue Dec 31, 2023
@vorburger
Copy link
Member Author

I now don't think this as initially described is really all that useful anymore, after the just merged #393...

... however, #394 is a "Launcher Script with Java Shebang" - differently than the one originally described above, but very cool!

Let me close this issue based on that.

@vorburger
Copy link
Member Author

(Probably also check and automagically re-download updates, perhaps like this?)

#395 adds this, after all.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
build Build, CI, etc. (w.o. #testing) distro Distribution related
Projects
None yet
Development

No branches or pull requests

1 participant