1
0
Fork 0
forked from Elijah/AudioBot

add makefile

This commit is contained in:
Elijah R 2024-03-10 19:22:57 -04:00
parent a8ed63b682
commit 7afbed4020
3 changed files with 11 additions and 9 deletions

6
Makefile Normal file
View 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

View file

@ -8,15 +8,11 @@ A simple bot that relays audio from a QEMU VM to a Discord call. Developed for u
## Running ## Running
1. Install depencencies: `npm i` 1. Install depencencies: `npm i`
2. Build the typescript: `npm run build` 2. Build the typescript and audio binaries: `npm run build`
3. Build the C binaries: (TODO: Add build system) 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
- `mkdir bin` 4. **Run it:** `node build/index.js`
- `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`
## Credits ## Credits
- QEMU Audio/C portion: DarkOK - QEMU Audio/C portion: DarkOK
- Discord bot/TypeScript portion: Elijah R - Discord bot/TypeScript portion: Elijah R

View file

@ -4,7 +4,7 @@
"description": "QEMU VNC Audio to Discord bridge", "description": "QEMU VNC Audio to Discord bridge",
"main": "build/index.js", "main": "build/index.js",
"scripts": { "scripts": {
"build": "tsc" "build": "tsc && make"
}, },
"author": "DarkOK, Elijah R", "author": "DarkOK, Elijah R",
"license": "ISC", "license": "ISC",