diff --git a/dist/ServerStatus-linux b/dist/ServerStatus-linux index 40389d7..fde56eb 100755 Binary files a/dist/ServerStatus-linux and b/dist/ServerStatus-linux differ diff --git a/dist/ServerStatus-mac b/dist/ServerStatus-mac new file mode 100755 index 0000000..bc4a99a Binary files /dev/null and b/dist/ServerStatus-mac differ diff --git a/dist/ServerStatus-windows.exe b/dist/ServerStatus-windows.exe index 3ec57ba..073ac4c 100755 Binary files a/dist/ServerStatus-windows.exe and b/dist/ServerStatus-windows.exe differ diff --git a/makefile b/makefile index 7c6e105..7b389db 100644 --- a/makefile +++ b/makefile @@ -1,16 +1,19 @@ run: - @go run ./src/main.go + go run ./src/main.go linux: - @go build -o ./dist/ServerStatus-linux ./src/main.go + go build -o ./dist/ServerStatus-linux ./src/main.go +mac: + GOOS=darwin GOARCH=amd64 go build -o ./dist/ServerStatus-mac ./src/main.go + windows: - @GOOS=windows GOARCH=386 go build -o ./dist/ServerStatus-windows.exe ./src/main.go + GOOS=windows GOARCH=386 go build -o ./dist/ServerStatus-windows.exe ./src/main.go clean: - @rm -rf ./dist + rm -rf ./dist copyfiles: - @cp config.template.json ./dist/config.json + cp config.template.json ./dist/config.json -all: linux windows copyfiles \ No newline at end of file +all: linux mac windows copyfiles \ No newline at end of file diff --git a/readme.md b/readme.md index 034977e..5b4f32a 100644 --- a/readme.md +++ b/readme.md @@ -6,8 +6,8 @@ This bot will send a chat notification when the status of a server changes. ## Configuration - Download or Clone the repository -- Add your bot token and room ID to the config.json file in the dist folder -- Execute the Windows or Linux binary! +- Add your bot token and room ID to the config.json in the dist folder +- Execute the correct binary according to your operating system! ### How to get the bot token https://github.com/reactiflux/discord-irc/wiki/Creating-a-discord-bot-&-getting-a-token