You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: README.md
+78-8Lines changed: 78 additions & 8 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -46,24 +46,94 @@ PICO-8 powered games launcher for the [PeX Console](https://pex-labs.com/)
46
46
47
47
## Getting started
48
48
49
-
**PicoLauncher** requires an installed version of PICO-8 (if you don't have it, you can buy it [here](https://www.lexaloffle.com/pico-8.php?#getpico8)). You can either use a pre-compiled version from the latest [release]() or build this project from source.
49
+
**PicoLauncher** requires an installed version of PICO-8 (if you don't have it, you can buy it [here](https://www.lexaloffle.com/pico-8.php?#getpico8)). You can either use a pre-compiled version from the [latest release](https://github.com/pex-labs/picolauncher/releases/latest) or build this project from source.
50
50
51
-
### Pre-compiled
51
+
### Linux
52
52
53
-
Download the pre-compiled release for your platform and unzip it. You will then find executables for all supported platforms. The `drive/` directory will be where the PICO-8 data files will be stored. For now, you can only run **PicoLauncher** from the same directory as the executables.
53
+
<details>
54
+
<summary>click to expand</summary>
55
+
<div>
56
+
Download the latest pre-compiled binary titled `picolauncher-linux-x86_64.zip`. The unzip and navigate to the directory
57
+
```sh
58
+
unzip picolauncher-linux-x86_64.zip
59
+
cd picolauncher-linux-x86_64/
60
+
```
54
61
55
-
On windows, if your PICO-8 binary doesn't reside at the default location of `C:\Program Files (x86)\PICO-8\pico8.exe`, you need to set the environment variable `PICO8_BINARY` before launching.
62
+
Next, ensure that `pico8` is included in your path. In your `.bashrc` or equivalent, add the line
56
63
```sh
57
-
set PICO8_BINARY=<path to pico8>
58
-
picolauncher.exe
64
+
export PATH="$PATH:<path to pico8 directory>"
65
+
```
66
+
For example
67
+
```sh
68
+
export PATH="$PATH:~/Downloads/pico-8/"
59
69
```
60
70
61
-
On linux, if PICO-8 is not in your PATH, you need to set the environment variable as well.
71
+
You can now run **PicoLauncher**:
62
72
```sh
63
-
PICO8_BINARY=<path to pico8>
64
73
./picolauncher
65
74
```
66
75
76
+
It is also possible to explicitly pass a binary to use to launch pico8 by setting the `PICO8_BINARY` environment variable:
77
+
```sh
78
+
PICO8_BINARY=<path to pico8 binary> ./picolauncher
First double check if you are running 64-bit or 32-bit Raspberry Pi OS.
93
+
```sh
94
+
uname -m
95
+
```
96
+
If the output of the above command is `aarch64`, you are 64-bit, and if the output is `armv7` or something similar, you are 32-bit.
97
+
98
+
In the case that you are 64-bit, you should download the latest pre-compiled binary titled `picolauncher-linux-aarch64.zip`. Otherwise, download `picolauncher-linux-armv7.zip`. Similar to the above instructions, unzip and enter the directory
99
+
```sh
100
+
unzip picolauncher-linux-aarch64.zip
101
+
cd picolauncher-linux-aarch64/
102
+
```
103
+
104
+
Once again, add the pico8 directory to your PATH environment variables in your `.bashrc` or equivalent:
105
+
```sh
106
+
export PATH="$PATH:<path to pico8 directory>"
107
+
```
108
+
109
+
When launching **PicoLauncher** and supplying the binary explicitly, if you are on 64-bit Raspberry Pi, ensure that you are using the `pico8_64` binary.
110
+
</div>
111
+
</details>
112
+
113
+
114
+
### Windows
115
+
116
+
<details>
117
+
<summary>click to expand</summary>
118
+
<div>
119
+
Download the `picolauncher-windows.zip` zip file from the latest releases and unzip it. If your pico8 binary doesn't reside at the default location of `C:\Program Files (x86)\PICO-8\pico8.exe`, you need to set the environment variable `PICO8_BINARY` before launching.
120
+
```sh
121
+
set PICO8_BINARY=<path to pico8>
122
+
picolauncher.exe
123
+
```
124
+
125
+
You can also do this graphically. First search up 'Environment Variables' in your start menu.
Add a new path and set the value to the directory where you have installed pico8. If you used the windows installer for pico8, this should be set to `C:\Program Files (x86)\PICO-8\pico8.exe`
To build from source, you need to have a [rust toolchain](https://www.rust-lang.org/tools/install) installed. To build **PicoLauncher** for all platforms, there is a provided build script at `dev/scripts/build-linux-x86_64.sh`, `dev/scripts/build-windows.sh`, etc. The built files are present in the `build/build-<platform>` directory, as well as zipped up in `build-<platform>.zip`. This is the same build that is distributed in the pre-compiled release.
0 commit comments