This project is to demo an app that is auto-updated via a background routine that downloads the latest update to the user's machine and applies the update when the user chooses. If the user does not apply the update, it will automatically be applied the next time the program is started.
Create a .env file with contents like this:
# The url of the update server that the program will poll
SERVER_URL=https://audemo.dev.local
# How often in seconds that the updater will look for updates to download and install
UPDATE_CHECK_INTERVAL=60# Build release binaries
make build
# Upload binaries to the update server
./upload.sh
# Run app - change name according to your system
./audemo-darwin-amd64Logs are produced to the system's user cache directory. The exact path can be found by running make printconfig. You can navigate to that directory and run tail -f audemo.log to follow the logs while the application is running. A maximum of 4 logs files will be created and auto-rotated with a maximum size of 5MB each.