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

feat: provide autonomi-launcher binary #1663

Merged
merged 2 commits into from
May 4, 2024

Conversation

jacderida
Copy link
Contributor

@jacderida jacderida commented May 4, 2024

  • 4173de5 refactor: small reorganisation of launchpad crate

    The crate is slightly reorganised to accommodate the addition of the launcher binary. It will be
    useful to have the launcher and TUI tightly coupled, with the same version number.

    The changes:

    • Move node-launchpad into its own bin directory. Shortly the launcher will be added as a
      directory alongside it.
    • Since the Cli struct was the only thing in the cli module, the module can be removed in favour
      of the struct sitting alongside the TUI binary's main module.
    • Correct misspelled version keys in references.
    • Tidy dependencies to be sorted alphabetically for easier reference.
  • e93ac2b feat: provide autonomi-launcher binary

    This small binary attempts to detect the presence of a terminal executable, then uses it to run the
    node-launchpad TUI inside it.

    The TUI is downloaded and stored at ~/.local/bin/autonomi-launcher on Linux/macOS and
    %USERPROFILE%\safe\autonomi-launcher.exe on Windows. Right now, the version it downloads is hard
    coded to 0.1.0-alpha.0. This can be changed quite easily once we get a new release.

    The launcher is added to the release process as a new binary. However, there is a complication not
    yet dealt with. The autonomi-launcher and node-launchpad binaries are in the same crate, so the
    process for uploading assets to Github releases will need to be modified to accommodate that. We can
    come back to it.

Description

reviewpad:summary

@jacderida jacderida changed the title Feat node man tui launcher feat: provide autonomi-launcher binary May 4, 2024
jacderida added 2 commits May 4, 2024 22:58
The crate is slightly reorganised to accommodate the addition of the launcher binary. It will be
useful to have the launcher and TUI tightly coupled, with the same version number.

The changes:
* Move `node-launchpad` into its own `bin` directory. Shortly the launcher will be added as a
  directory alongside it.
* Since the `Cli` struct was the only thing in the `cli` module, the module can be removed in favour
  of the struct sitting alongside the TUI binary's `main` module.
* Correct misspelled version keys in references.
* Tidy dependencies to be sorted alphabetically for easier reference.
This small binary attempts to detect the presence of a terminal executable, then uses it to run the
`node-launchpad` TUI inside it.

The TUI is downloaded and stored at `~/.local/bin/autonomi-launcher` on Linux/macOS and
`%USERPROFILE%\safe\autonomi-launcher.exe` on Windows. Right now, the version it downloads is hard
coded to `0.1.0-alpha.0`. This can be changed quite easily once we get a new release.

The launcher is added to the release process as a new binary. However, there is a complication not
yet dealt with. The `autonomi-launcher` and `node-launchpad` binaries are in the same crate, so the
process for uploading assets to Github releases will need to be modified to accommodate that. We can
come back to it.
@jacderida jacderida force-pushed the feat-node_man_tui_launcher branch from d6981b3 to e93ac2b Compare May 4, 2024 22:01
@jacderida jacderida merged commit a58c73a into maidsafe:main May 4, 2024
12 of 34 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant