Skip to content

Commit

Permalink
Merge #21
Browse files Browse the repository at this point in the history
21: Expand install to include uninstall, MSI directions. r=amanjeev a=Hoverbear

This change expands on how to install (as well as uninstall) CriticalUp while clarifying how it works.

Co-authored-by: Ana Hobden <[email protected]>
  • Loading branch information
bors-ferrocene[bot] and Hoverbear committed May 24, 2024
2 parents 3f53f56 + 7163dab commit 324f37b
Showing 1 changed file with 31 additions and 3 deletions.
34 changes: 31 additions & 3 deletions docs/src/install.rst
Original file line number Diff line number Diff line change
Expand Up @@ -25,9 +25,12 @@ From a terminal run:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/ferrocene/criticalup/releases/latest/download/criticalup-installer.sh | sh
CriticalUp will install toolchains into ``$XDG_DATA_HOME/criticalup``, or if that
This will install CriticalUp into ``$HOME/.cargo/bin/criticalup``.

CriticalUp will create a state directory where it installs toolchains in ``$XDG_DATA_HOME/criticalup``, or if that
environment variable is not set, ``$HOME/.local/share/criticalup``.

To uninstall, remove ``$HOME/.cargo/bin/criticalup`` then delete the state directory.

MacOS
-----
Expand All @@ -38,16 +41,41 @@ From a terminal run:
curl --proto '=https' --tlsv1.2 -LsSf https://github.com/ferrocene/criticalup/releases/latest/download/criticalup-installer.sh | sh
CriticalUp will install toolchains into ``$HOME/Library/Application Support/criticalup``.
This will install CriticalUp into ``$HOME/.cargo/bin/criticalup``.

CriticalUp will create a state directory where it installs toolchains in ``$HOME/Library/Application Support/criticalup``.

To uninstall, remove ``$HOME/.cargo/bin/criticalup`` then delete the state directory.

Windows
-------

We recommend using the MSI installation method. If you'd prefer not to use the MSI, a powershell based install is available.

MSI based
^^^^^^^^^

The recommended method of installation is to `download and run the MSI <https://github.com/ferrocene/criticalup/releases/latest/download/criticalup-x86_64-pc-windows-msvc.msi>`_.

This will install CriticalUp into ``C:\Program Files\criticalup`` by default, but the location is configurable in the installer interface.

CriticalUp will create a state directory where it installs toolchains in
``{FOLDERID_RoamingAppData}``, usually ``%appdata%\criticalup``.

To uninstall, use the Windows Add/Remove programs interface or run ``winget remove criticalup``, then delete the state directory.

Powershell based
^^^^^^^^^^^^^^^^

From a terminal run:

.. code-block::
powershell -c "irm https://github.com/ferrocene/criticalup/releases/latest/download/criticalup-installer.ps1 | iex"
CriticalUp will install toolchains into ``{FOLDERID_RoamingAppData}``, usually ``%appdata%\criticalup``.
This will install CriticalUp into ``$HOME/.cargo/bin/criticalup``.

CriticalUp will create a state directory where it installs toolchains in
``{FOLDERID_RoamingAppData}``, usually ``%appdata%\criticalup``.

To uninstall, remove ``$HOME/.cargo/bin/criticalup`` then delete the state directory.

0 comments on commit 324f37b

Please sign in to comment.