-
Notifications
You must be signed in to change notification settings - Fork 7
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
Split install instructions into separate pages #60
Merged
+268
−186
Merged
Changes from all commits
Commits
Show all changes
22 commits
Select commit
Hold shift + click to select a range
eacb1b6
Split install instructions into separate pages
ISSOtm 2ec664e
Touch up wording of OS list
ISSOtm c385cfd
Fix typo
ISSOtm 05da4df
Improve wording of Linux page
ISSOtm ef77332
Integrate Sylvie's improvements
ISSOtm 6419d29
Add link back to "main" install page to sub-pages
ISSOtm 6a73196
Fix up install instructions more
ISSOtm 672dc7e
Make the breakage disclaimer of `master` less scary
ISSOtm 76008cd
Clean up documentation related to `master`
ISSOtm 6c57d2b
Prefer following links instead of clicking them
ISSOtm 7700cad
Simplify directions to install downloads
ISSOtm bf8d916
Use headings for different installation methods
ISSOtm abd5c8f
Clarify availability of Homebrew install method
ISSOtm 878e4b6
Make install docs into a separate "doc instance"
ISSOtm 0bdacb6
Use markdown links in install instructions
ISSOtm 34f66a5
Update install/linux.md
avivace 01e4e35
Update install/macos.md
avivace ac4c1bd
Update install/source.md
avivace d40484b
Update install/windows.md
avivace 33378d0
Recommend the use of WSL
ISSOtm c17a4a9
final touches
avivace 8ff4555
macos: add note about homebrew on old OS
avivace File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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
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
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,31 @@ | ||
--- | ||
sidebar_label: Available install methods | ||
--- | ||
|
||
# Installing RGBDS | ||
|
||
Most people will want to use a stable release (the more recent the better). | ||
|
||
These are the operating systems for which pre-built executables of recent releases of RGBDS are available: | ||
- [Linux](linux.md) | ||
- [macOS](macos.md) | ||
- [Windows](windows.md) | ||
|
||
If none of these options fit your needs, you can [build from source](source.md). | ||
|
||
### Docker | ||
|
||
We distribute an [official container image for RGBDS](https://github.com/gbdev/rgbds/pkgs/container/rgbds). | ||
It contains the built executables *and* the build dependencies, in case you want to compile from source. | ||
|
||
```bash | ||
docker pull ghcr.io/gbdev/rgbds:latest | ||
``` | ||
|
||
### Installing a development version | ||
|
||
If you are willing to help us test new features, consider [using a development version](master.md). | ||
|
||
### Managing multiple versions | ||
|
||
If you need to frequently switch between different versions of RGBDS, consider using [rgbenv](https://github.com/gbdev/rgbenv), the RGBDS version manager. |
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,28 @@ | ||
--- | ||
sidebar_label: Linux | ||
--- | ||
|
||
# Installing RGBDS on Linux | ||
|
||
## Using your package manager | ||
|
||
Check if RGBDS is available in your distribution's software center or package manager repositories. | ||
If a satisfactory version is available, it is a good idea to install from there. | ||
|
||
## Using our pre-built binaries | ||
ISSOtm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
|
||
1. Go the [latest release](https://github.com/gbdev/rgbds/releases/latest) (or pick [a specific version](https://github.com/gbdev/rgbds/releases)) | ||
2. Under "Assets" at the bottom, download <code>rgbds-<var><version></var>-linux-x86_64.tar.xz</code> (for example, version 0.7.0 would have `rgbds-0.7.0-linux-x86_64.tar.xz`) | ||
3. Extract the .tar.xz file into a new directory, and run `install.sh` as root in that directory. E.g.: | ||
```console | ||
% mkdir rgbds | ||
% tar xf rgbds-0.7.0-linux-x86_64.tar.xz -C rgbds | ||
% cd rgbds | ||
% sudo ./install.sh | ||
``` | ||
4. Check that RGBDS was correctly installed by running `rgbasm -V`. | ||
It should print out the version number you installed! | ||
|
||
--- | ||
|
||
If none of these options are suitable to you, [build RGBDS from source](source.md). |
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,40 @@ | ||
--- | ||
sidebar_label: macOS | ||
--- | ||
|
||
# Installing RGBDS on macOS | ||
|
||
## Using the Homebrew package manager | ||
|
||
On recent macOS major releases[^1], RGBDS is available on [Homebrew](https://brew.sh) as the [`rgbds` package](https://formulae.brew.sh/formula/rgbds). | ||
|
||
```bash | ||
brew install rgbds | ||
``` | ||
|
||
Then you will be able to update RGBDS at any time by simply running `brew update` then `brew upgrade`! | ||
|
||
You can also install the [`master` branch](/docs/master) by passing the `--HEAD` flag: | ||
```bash | ||
brew install rgbds --HEAD | ||
``` | ||
|
||
## Using our pre-built binaries | ||
|
||
1. Go the [latest release](https://github.com/gbdev/rgbds/releases/latest) (or pick [a specific version](https://github.com/gbdev/rgbds/releases)) | ||
2. Under "Assets" at the bottom, download <code>rgbds-<var><version></var>-macos-x86-64.zip</code> (for example, version 0.7.0 would have `rgbds-0.7.0-macos-x86-64.zip`). | ||
3. Extract the .zip file into a new directory, and run `install.sh` as root inside that directory. | ||
For example, you can do that with these Console commands: | ||
```console | ||
% unzip -d rgbds rgbds-0.7.0-macos-x86-64.zip | ||
% cd rgbds | ||
% sudo ./install.sh | ||
``` | ||
4. Check that RGBDS was correctly installed by running `rgbasm -V`. | ||
It should print out the version number you installed! | ||
|
||
--- | ||
|
||
If none of these options are suitable to you, [build RGBDS from source](source.md). | ||
|
||
[^1]: Older macOS systems have been reported to compile for several days with Homebrew. |
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
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
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,101 @@ | ||
--- | ||
sidebar_label: Windows | ||
--- | ||
|
||
import Tabs from '@theme/Tabs'; | ||
import TabItem from '@theme/TabItem'; | ||
|
||
# Installing RGBDS on Windows | ||
|
||
The install instructions are a bit different depending on the environment in which you wish to use RGBDS. | ||
|
||
<Tabs> | ||
<TabItem value="wsl" label="WSL"> | ||
|
||
ISSOtm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
Using WSL is recommended if your version of Windows supports it (which Windows 10 and 11 do). | ||
|
||
Please refer to [the install instructions](linux.md) for your WSL's running Linux distribution. | ||
You can check what your WSL distribution is by running `wsl -l -v` in the Command Prompt. | ||
(The default Linux distribution on WSL is Ubuntu, whose package manager is `apt`.) | ||
|
||
</TabItem> | ||
<TabItem value="cygwin" label="Cygwin / MSYS2"> | ||
|
||
ISSOtm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
1. Go the [latest release](https://github.com/gbdev/rgbds/releases/latest) (or pick a specific version from [the list](https://github.com/gbdev/rgbds/releases)). | ||
2. Under "Assets" at the bottom, download either <code>rgbds-<var><version></var>-win32.zip</code> (for 32-bit Windows) or <code>rgbds-<var><version></var>-win64.zip</code> (for 64-bit Windows). | ||
(For example, version 0.7.0 for 64-bit Windows would have `rgbds-0.7.0-win64.zip`). | ||
3. Unzip the .zip file. | ||
It should give you the RGBDS `.exe` files and a couple of `.dll` files. | ||
4. Copy all of those `.exe` and `.dll` files to the `/usr/local/bin` directory of your Cygwin/MSYS2 installation. | ||
(You can learn its equivalent Windows path by running `cygpath -w /usr/local/bin` in the Cygwin terminal.) | ||
|
||
:::caution | ||
|
||
Do not put them in a subdirectory (e.g. `/usr/local/bin/rgbds/`)! | ||
This would not work. | ||
|
||
::: | ||
|
||
After that, you should be able to use RGBDS from within the Cygwin/MSYS2 terminal, which you can confirm by running `rgbasm -V`. | ||
|
||
If `rgbasm -V` doesn't work, check that `/usr/local/bin` is listed in your Cygwin/MSYS2 `PATH` (run `echo $PATH` to check). | ||
If it isn't listed, you must add it (e.g. run `echo 'export PATH="/usr/local/bin:$PATH"' >> ~/.bashrc`, then close your Cygwin terminal and open a new one). | ||
|
||
:::tip | ||
|
||
If you can choose between using Cygwin or MSYS2, be advised that Cygwin is slower and has been reported to cause a bit of trouble to some. | ||
|
||
::: | ||
|
||
</TabItem> | ||
<TabItem value="win32" label="None of those"> | ||
|
||
ISSOtm marked this conversation as resolved.
Show resolved
Hide resolved
|
||
1. Go the [latest release](https://github.com/gbdev/rgbds/releases/latest) (or pick a specific version from [the list](https://github.com/gbdev/rgbds/releases)) | ||
2. Under "Assets" at the bottom, download either <code>rgbds-<var><version></var>-win32.zip</code> (for 32-bit Windows) or <code>rgbds-<var><version></var>-win64.zip</code> (for 64-bit Windows). | ||
(For example, version 0.7.0 for 64-bit Windows would have `rgbds-0.7.0-win64.zip`). | ||
3. Unzip the .zip file. | ||
It should give you the RGBDS `.exe` files and a couple of `.dll` files. | ||
4. Either: | ||
- ...put all of the files in a directory, then add that directory to Windows' `PATH`. | ||
This will *permanently* allow you to use RGBDS *from any directory*. | ||
|
||
<Tabs> | ||
<TabItem value="gui" label="Graphically"> | ||
|
||
1. Open the Environment Variables dialog for your account. | ||
You can do this by either: | ||
- ...typing "edit environment variables for your account" in the Start menu's Search box and clicking the Control Panel item that's found. | ||
- ...opening the Control Panel, clicking its "User Accounts" item, clicking the "User Accounts" heading in that item, and clicking "Change my environment variables" in the sidebar. | ||
2. Click the "Path" line in the **top** panel to highlight it. | ||
6. Click "Edit..." to open the "Edit environment variable" dialog for "Path". | ||
7. Click "Browse...", select the folder that the RGBDS files are in, and click OK. | ||
8. The folder should be added to the bottom of the "Path" list. | ||
Make sure that the new entry (which should be highlighted) is at the bottom of the list; if not, click on "Move Down" until it is. | ||
9. Click "OK" to finish the "Edit environment variable" dialog, and again for the "Environment Variables" dialog. | ||
|
||
</TabItem> | ||
<TabItem value="cmd" label="Command Prompt"> | ||
|
||
Run the command <code>setx PATH "%PATH%<var><rgbds_path></var>;"</code>, replacing <code><var><rgbds_path></var></code> with the path to the directory that contains `rgbasm.exe`, `rgblink.exe`, etc. | ||
Then close the Command Prompt and open a new one for the changes to take effect. | ||
|
||
If you only want to modify the `PATH` temporarily, instead of the permanent [`setx`](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/setx) command, you can use the **temporary** [`set`](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/set_1). | ||
|
||
</TabItem> | ||
<TabItem value="pwsh" label="PowerShell"> | ||
|
||
Run the command <code>setx PATH \$\{Env:PATH\}<var><rgbds_path></var>;</code>, replacing <code><var><rgbds_path></var></code> with the path to the directory that contains `rgbasm.exe`, `rgblink.exe`, etc. | ||
Then close the PowerShell window and open a new one for the changes to take effect. | ||
|
||
If you only want to modify the `PATH` temporarily, instead of the permanent [`setx`](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/setx) command, you can use the **temporary** [`set`](https://docs.microsoft.com/en-us/windows-server/administration/windows-commands/set_1). | ||
|
||
</TabItem> | ||
</Tabs> | ||
|
||
- ...or put all of the files in your project's directory. | ||
- ...or put all of the files in a directory already in the `PATH`. | ||
5. RGBDS can now be used from your favorite command line (most likely the Command prompt or PowerShell). | ||
You can test it by running `rgbasm -V`, which should print the version you installed! | ||
|
||
</TabItem> | ||
</Tabs> |
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,22 @@ | ||
// @ts-check | ||
|
||
/** @type {import('@docusaurus/plugin-content-docs').SidebarsConfig} */ | ||
const sidebars = { | ||
nav: [ | ||
"index", | ||
{ | ||
type: "category", | ||
label: "Supported OSes", | ||
collapsible: false, | ||
items: [ | ||
"linux", | ||
"macos", | ||
"windows", | ||
], | ||
}, | ||
"source", | ||
"master", | ||
], | ||
}; | ||
|
||
module.exports = sidebars; |
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
and change more frequently (?)
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Isn't that implied by the "Get the latest changes quickly" pro? Arguably some people may consider it a con, but I think that's okay.