add makefile
This commit is contained in:
parent
a8ed63b682
commit
7afbed4020
3 changed files with 11 additions and 9 deletions
6
Makefile
Normal file
6
Makefile
Normal file
|
@ -0,0 +1,6 @@
|
|||
all:
|
||||
mkdir bin || true
|
||||
cc audio.c -lvncclient -o bin/audio
|
||||
gcc name.c -lvncclient -o bin/name
|
||||
clean:
|
||||
rm -rf bin
|
12
README.MD
12
README.MD
|
@ -8,15 +8,11 @@ A simple bot that relays audio from a QEMU VM to a Discord call. Developed for u
|
|||
## Running
|
||||
|
||||
1. Install depencencies: `npm i`
|
||||
2. Build the typescript: `npm run build`
|
||||
3. Build the C binaries: (TODO: Add build system)
|
||||
- `mkdir bin`
|
||||
- `gcc audio.c -lvncclient -o bin/audio`
|
||||
- `gcc name.c -lvncclient -o bin/name`
|
||||
4. Copy config.example.json to config.json, and fill out your discord token and client ID, as well as a list of available VMs and their VNC servers
|
||||
5. **Run it:** `node build/index.js`
|
||||
2. Build the typescript and audio binaries: `npm run build`
|
||||
3. Copy config.example.json to config.json, and fill out your discord token and client ID, as well as a list of available VMs and their VNC servers
|
||||
4. **Run it:** `node build/index.js`
|
||||
|
||||
## Credits
|
||||
|
||||
- QEMU Audio/C portion: DarkOK
|
||||
- Discord bot/TypeScript portion: Elijah R
|
||||
- Discord bot/TypeScript portion: Elijah R
|
||||
|
|
|
@ -4,7 +4,7 @@
|
|||
"description": "QEMU VNC Audio to Discord bridge",
|
||||
"main": "build/index.js",
|
||||
"scripts": {
|
||||
"build": "tsc"
|
||||
"build": "tsc && make"
|
||||
},
|
||||
"author": "DarkOK, Elijah R",
|
||||
"license": "ISC",
|
||||
|
|
Loading…
Reference in a new issue