diff --git a/Makefile b/Makefile new file mode 100644 index 0000000..9448afd --- /dev/null +++ b/Makefile @@ -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 diff --git a/README.MD b/README.MD index ed9ceaf..b2886aa 100644 --- a/README.MD +++ b/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 \ No newline at end of file +- Discord bot/TypeScript portion: Elijah R diff --git a/package.json b/package.json index 03195c9..cc72dec 100644 --- a/package.json +++ b/package.json @@ -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",