installer and packaging

This commit is contained in:
2026-06-28 09:57:06 -05:00
parent b860b031bb
commit df8a59d03b
6 changed files with 396 additions and 0 deletions
+52
View File
@@ -12,6 +12,32 @@ Dependencies:
- libvncclient development files
- pkg-config
## Install
```sh
./install.sh
```
Uninstall:
```sh
./install.sh uninstall
```
System install:
```sh
./install.sh --system
```
Custom prefix:
```sh
./install.sh --prefix /path/to/prefix
```
## Build Manually
```sh
cmake --preset default
cmake --build --preset default
@@ -32,6 +58,32 @@ cmake --build --preset debug
Use `./build/wayviewer --help` for all options.
## Launcher
Launching `wayviewer` without arguments from wofi opens graphical prompts for:
- server address
- username
- password
- quality
Install the binary and desktop entry into your user prefix:
```sh
cmake --install build
```
Then open wofi in `drun` mode and choose `wayviewer`.
## Source Layout
- `src/main.cpp`: process entry point
- `src/options.*`: command-line parsing and wofi or terminal prompts
- `src/vnc_client.*`: VNC client setup and callbacks
- `src/viewer_state.*`: framebuffer state and dirty rectangles
- `src/input.*`: SDL input translation
- `src/sdl_app.*`: SDL window, rendering, and event loop
## Why?
Because I needed a VNC viewer that didnt suck and so here it is. Provided with no warranty to anyone who wants to build off of this hunk of complete trash