Skip to content

Commit 9b96a3d

Browse files
Syntoxrsimulot
authored andcommitted
Added build instructions for Termux to readme.md
1 parent 86f1a3a commit 9b96a3d

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

readme.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -130,6 +130,25 @@ go build
130130
go install
131131
```
132132

133+
### Building in Termux
134+
The prebuilt `Linux_Arm64` binaries won't work in Termux for Android, so you have to build it yourself.
135+
You can follow the same build steps as above, but install `git` and `golang` via `pkg`.
136+
137+
If you want to use `go install`, make sure to add `GOPATH/bin` to your `PATH`:
138+
```bash
139+
# Create or open .bashrc
140+
nano ~/.bashrc
141+
142+
# Add the following line in order to include GOPATH/bin in your $PATH
143+
export PATH=$PATH:$(go env GOPATH)/bin
144+
145+
# Save and exit with Ctrl+X, then Y and Enter
146+
147+
# Restart your session or apply changes to your current session with:
148+
source ~/.bashrc
149+
150+
```
151+
133152
## Installation with Nix
134153

135154
`immich-go` is packaged with [nix](https://nixos.org/) and distributed via [nixpkgs](https://search.nixos.org/packages?channel=unstable&type=packages&query=immich-go).

0 commit comments

Comments
 (0)