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

Installers for projects #33

Closed
trappitsch opened this issue Mar 28, 2024 · 4 comments · Fixed by #49
Closed

Installers for projects #33

trappitsch opened this issue Mar 28, 2024 · 4 comments · Fixed by #49
Labels
enhancement New feature or request help wanted Extra attention is needed

Comments

@trappitsch
Copy link
Owner

trappitsch commented Mar 28, 2024

One enhancement I really want for box is the capability of not just creating packages, but also to create installers. This would be especially interesting for GUIs.

The idea is to include a next box installer top-level command to directly create the installers on various platforms.

This issue is definitely not well thought out yet and any comments/ideas would be highly appreciated!

Linux:

Package the program into an AppImage for GUIs?

For CLIs: An installer bash script that simply copies the binary to a specified folder and makes it executable.

Windows:

On windows, NSIS can be used to package a nice looking installer fairly automatically. This will require that NSIS is installed on the windows machine, but then, it should work fairly straight forward.

For CLIs on windows, I don't really have an idea yet :)

macos:

applecrate looks very interesting to package CLIs.

For GUIs: Create a dmg file somehow... well, need to think about this more.

@trappitsch trappitsch added enhancement New feature or request help wanted Extra attention is needed labels Mar 28, 2024
@trappitsch
Copy link
Owner Author

trappitsch commented Apr 8, 2024

Minimum requirement for v0.2.0:

Would be nice to have but need help since I don't work on macos (or for later) - moved to a later release

@trappitsch
Copy link
Owner Author

Update on Linux GUI packaging:
Well, AppImages are really not made for this and are completely overkill. How about the following for an installer:

  • same idea of a bash script for installer as for CLI
  • We package the binary and the icon into the installer
  • Bash script does the following:
    • ask user for default folder or for a folder to create for program
    • ask for where to put .desktop file
    • put program and icon into the correct location where user selected
    • put the desktop file in the user selected place
  • Tests similar to what we had before, excpect now, we require an empty or non-existent folder in order to make what folders the user wants.

Again, this is all simple bash scripting, but it would put the binary where we want it and a Desktop file in the right place so the system can find our GUI.

@trappitsch
Copy link
Owner Author

With v0.2.0, this issue is 2/3 solved. Missing are the CLI and GUI installers for macOS...

@trappitsch
Copy link
Owner Author

For macOS - just a note for myself:

This is currently in development on the macos_installers branch. idea is to first add teh functionality, then test it on a Mac, and then write the tests for it. As mentioned before, any help, especially with testing and deugging from mac users would be very much appreciated here!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request help wanted Extra attention is needed
Projects
None yet
Development

Successfully merging a pull request may close this issue.

1 participant