nfdi4plants / ARCCommander

Tool to manage your ARCs
MIT License
11 stars 9 forks source link

[Feature Request] Latest and OS tags for releases #116

Closed Brilator closed 1 year ago

Brilator commented 2 years ago

Is your feature request related to a problem? Please describe. The unix installations are currently a bit clicking back and forth. And we're tearing people into the terminal anyways, so let's make ArcCommander fully installable from there.

Describe the solution you'd like Is it possible to automagically get linked to the latest arc releases for a specific OS: https://github.com/nfdi4plants/arcCommander/releases/latest/macos https://github.com/nfdi4plants/arcCommander/releases/latest/linux

Additional context

I've tried to write out the linux installation a bit more click-and-copy.
We'd just have to replace the "v0.2.1-linux.x64/arc" by e.g. "latest/linux.x64/arc" in the wget. Assuming that wget is installed on linux by default (not an expert).

Install ArcCommander on Linux

  1. Download latest release

    wget https://github.com/nfdi4plants/arcCommander/releases/download/v0.2.1-linux.x64/arc
  2. Make executable

    chmod a+x arc
  3. Move to suitable place (e.g. in your home directory or to /home/bin/ to make it accessible for all users)

    mkdir ~/ArcCommander # Create folder "ArcCommander" in your home directory 
    mv arc ~/ArcCommander # move executable to that folder
  4. Add that place to your path. This allows you to start the ArcCommander from any folder.

    export PATH=$PATH:~/ArcCommander
  5. Test that ArcCommander is properly installed

    arc --version # check the current version 
    mkdir ~/testArc; cd ~/testArc # create a test folder in your home directory and change into it    
    arc init # initialize arc    
    cd ~/; rm -rf testArc # remove test folder    
omaus commented 2 years ago

Is it possible to automagically get linked to the latest arc releases for a specific OS: https://github.com/nfdi4plants/arcCommander/releases/latest/macos https://github.com/nfdi4plants/arcCommander/releases/latest/linux

Afaik that's not possible, unfortunately.
But we could move all releases into one release per OS, meaning that we'd always override the current one.
Downside: Impossible to get older releases without building the repo yourself.


image

The URL is set to a specific release. But I think we can enhance the current GitHub action to also change this line in the README.md. Otherwise, we'd have to update the README.md with every release manually.
Besides that, I like your suggestion.

Brilator commented 2 years ago

Shit, I had to look up afaik. :older_man:

If the gh action can take care of this, that would be perfect. Would probably also be easier for user trouble-shooting with the version specified rather than "latest".

Brilator commented 2 years ago

Reminder to automate installation (instructions). #136