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(installer): add installer script #1280

Merged
merged 9 commits into from
Oct 2, 2023

Conversation

orhun
Copy link
Contributor

@orhun orhun commented Sep 27, 2023

Description of change

This PR adds the installer script for easily installing cargo-shuttle on different platforms.

Currently, it supports:

  • Native installation on Arch Linux (and derivaties) via pacman
  • Installing via cargo-binstall (if cargo-binstall is installed)
  • Installing pre-built binaries from GitHub (only Linux/MacOS for now)
  • Installing directly via cargo install (installs cargo via rustup if it is not found)

How has this been tested? (if applicable)

On my local machine by running ./install.sh

We need to test this on MacOS as well.

@orhun orhun force-pushed the chore/add_installer_script branch from d918b3d to 5a09bca Compare September 27, 2023 18:42
Copy link
Contributor

@chesedo chesedo left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Does this mean we are not going to use cargo-dist?

@orhun
Copy link
Contributor Author

orhun commented Sep 28, 2023

Yup, it is not really needed. At first I thought we didn't have binary releases but we have so we can simply install them with this script.

Copy link
Member

@jonaro00 jonaro00 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

We also need a redirect from shuttle.rs/install to this file on main :) I can fix that if you want.

install.sh Show resolved Hide resolved
install.sh Show resolved Hide resolved
install.sh Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
install.sh Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
install.sh Show resolved Hide resolved
install.sh Outdated Show resolved Hide resolved
@orhun orhun requested a review from jonaro00 September 28, 2023 11:55
@orhun
Copy link
Contributor Author

orhun commented Sep 29, 2023

ready for re-review

we also need to test this on MacOS before merge.

Copy link
Contributor

@oddgrd oddgrd left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This is great, thanks Orhun!

Comment on lines +6 to +10
_ _ _ _
___| |__ _ _| |_| |_| | ___
/ __| '_ \\| | | | __| __| |/ _ \\
\__ \\ | | | |_| | |_| |_| | __/
|___/_| |_|\\__,_|\\__|\\__|_|\\___|
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

😍

@oddgrd
Copy link
Contributor

oddgrd commented Oct 2, 2023

We should also update the readme in this repo with the fact that you can install with this script now, and we should add it to the installation guide in the docs repo. We should be clear about the fact that it doesn't work on windows yet.

@jonaro00
Copy link
Member

jonaro00 commented Oct 2, 2023

@oddgrd I can make those changes. (separate PRs)

@jonaro00 jonaro00 merged commit 0935c27 into shuttle-hq:main Oct 2, 2023
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.

4 participants