Simple Script Installer (SSI) #698
Replies: 1 comment 1 reply
-
|
I'd have to trust in the availability and integrity of another third-party tool for my install script to work, but hey, don't I have to do the same for all dependencies and the sources I install them from anyway? So yeah, this idea sounds really neat! It takes away a huge chunk of boilerplate code I'd really rather not write (and maintain!!) myself. The only other thing that'd make me hesitate is the fact that (1.) the runtime of this "dependency" is outside of the runtime of my application and (2.) the scripts environment (the users system) is different from the environment my application runs in (which might be created or prepared by my install script). So my ability to assess the quality and fitness of this script is very limited. This isn't a good reason not to use it, though, because if I wrote this logic myself I'd be the one to make sure it works. I'm just saying I'd give up control over quite an integral piece of logic and I'd like for such a tool to be somewhat battle-tested before I integrate it. All in all I think this could be a perfect community project that'd profit a lot from the experience of the many people shipping things to the hundreds of different platforms all the time. I guess that for this to work best (and to keep it maintainable) it'd be quite important to have a nice and clean, fun-to-work-with modular architecture with an interface for devs from the community to integrate platform-specific logic. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
I wanted to share a utility script I built with Bashly that might be useful for people distributing bash tools.
This is a classic "built by bashly, for bashly" scenario... 😎
When publishing a bash CLI, we often need to provide an installation script. That script usually needs to decide:
/usr/local/bin,~/.local/bin, etc.)sudovs user installs)I found myself re-solving these problems for every project, so I created Simple Script Installer (SSI).
SSI is a bash utility that helps developers build portable setup and uninstall scripts for their CLI tools.
It provides simple primitives for installing things like:
An installer using SSI can look something like this:
The idea is that SSI handles the platform decisions (paths, permissions, etc.), while your install script just describes what should be installed.
If this sounds useful, you can check it out here:
https://github.com/DannyBen/ssi
It is still early stage, but I have already converted many of my setup scripts (examples) to use this approach.
I'd love feedback, suggestions, or ideas from the Bashly community.
Beta Was this translation helpful? Give feedback.
All reactions