-
Notifications
You must be signed in to change notification settings - Fork 72
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
<!-- Please make sure there is an issue that this PR is correlated to. --> ## Changes <!-- If there are frontend changes, please include screenshots. -->
- Loading branch information
Showing
8 changed files
with
58 additions
and
8 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1 change: 1 addition & 0 deletions
1
frontend/apps/hub/src/components/onboarding/initial-setup-install-rivet-cli-cmd.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
powershell -Command "iwr https://releases.rivet.gg/rivet/latest/install.ps1 -useb | iex" |
1 change: 1 addition & 0 deletions
1
frontend/apps/hub/src/components/onboarding/initial-setup-install-rivet-cli-powershell.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
iwr https://releases.rivet.gg/rivet/latest/install.ps1 -useb | iex |
2 changes: 2 additions & 0 deletions
2
frontend/apps/hub/src/components/onboarding/initial-setup-install-rivet-cli-source.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
git clone https://github.com/rivet-gg/rivet | ||
cargo build --bin rivet |
1 change: 1 addition & 0 deletions
1
frontend/apps/hub/src/components/onboarding/initial-setup-install-rivet-cli-unix.sh
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
curl -fsSL https://releases.rivet.gg/rivet/latest/install.sh | sh |
1 change: 0 additions & 1 deletion
1
frontend/apps/hub/src/components/onboarding/initial-setup-install-rivet-cli.sh
This file was deleted.
Oops, something went wrong.
48 changes: 48 additions & 0 deletions
48
frontend/apps/hub/src/components/onboarding/install-cli.tsx
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,48 @@ | ||
import { CodeFrame, CodeGroup, CodeSource } from "@rivet-gg/components"; | ||
import installCliCmd, { | ||
source as installCliCmdSource, | ||
} from "./initial-setup-install-rivet-cli-cmd.sh?shiki&lang=bash"; | ||
import installCliPowerShell, { | ||
source as installCliPowerShellSource, | ||
} from "./initial-setup-install-rivet-cli-powershell.sh?shiki&lang=bash"; | ||
import installCliSource, { | ||
source as installCliSourceSource, | ||
} from "./initial-setup-install-rivet-cli-source.sh?shiki&lang=bash"; | ||
import installCliUnix, { | ||
source as installCliUnixSource, | ||
} from "./initial-setup-install-rivet-cli-unix.sh?shiki&lang=bash"; | ||
|
||
export function InstallCli() { | ||
return ( | ||
<CodeGroup> | ||
<CodeFrame | ||
title="macOS & Linux & WSL" | ||
code={installCliUnixSource} | ||
language="bash" | ||
> | ||
<CodeSource>{installCliUnix}</CodeSource> | ||
</CodeFrame> | ||
<CodeFrame | ||
title="Windows (cmd)" | ||
code={installCliCmdSource} | ||
language="ps1" | ||
> | ||
<CodeSource>{installCliCmd}</CodeSource> | ||
</CodeFrame> | ||
<CodeFrame | ||
title="Windows (PowerShell)" | ||
code={installCliPowerShellSource} | ||
language="powershell" | ||
> | ||
<CodeSource>{installCliPowerShell}</CodeSource> | ||
</CodeFrame> | ||
<CodeFrame | ||
title="Build from source" | ||
code={installCliSourceSource} | ||
language="bash" | ||
> | ||
<CodeSource>{installCliSource}</CodeSource> | ||
</CodeFrame> | ||
</CodeGroup> | ||
); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters