Skip to content

Commit

Permalink
docs: 📝 update README.md
Browse files Browse the repository at this point in the history
  • Loading branch information
OnCloud125252 committed Apr 22, 2024
1 parent c62b767 commit 94fb72f
Showing 1 changed file with 4 additions and 13 deletions.
17 changes: 4 additions & 13 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -9,27 +9,18 @@ Never struggle with download links again.<br>
# Installation
## Build from source
### Requirements
- Go (1.22)
- [Go (1.22)](https://go.dev/doc/install)
- [upx](https://github.com/upx/upx/releases/latest)

### Installation Steps
Download the source files.
```bash
git clone https://github.com/Update-Install/CLI.git
```

Install dependencies and build.
Run the build script.
```bash
# Install dependencies
go install

# Build the executable
go build -ldflags "-w" -o ./dist/ui-cli_linux_amd64_uncompressed
```

You can compress the executable file with `upx` pack tool to make it smaller.
> Get the `upx` tool from [the upx release page](https://github.com/upx/upx/releases/latest)
```bash
upx --best --lzma ./dist/ui-cli_linux_amd64_uncompressed -o ./dist/ui-cli_linux_amd64
./build.sh
```

Then copy the executable file to `/usr/local/bin`
Expand Down

0 comments on commit 94fb72f

Please sign in to comment.