#!/bin/sh

# by: zyriu1 (mdawid581@gmail.com)

# This CLI tool spoofs the build_info.json to be the latest version in order to stop those annoying messages.
# Turns out the updates still download after changing the version.
# Make sure the working directory is /Discord/resources

# Requirements: JQuery (pacman -S jq or similar on other distro's), CUrl

echo \{\"releaseChannel\":\"stable\"\,\"version\":\"$(curl https://discord.com/api/updates?platform=linux -s | jq -r .name)\"\} > build_info.json && ../Discord