Skip to content

An demo app that is auto-updated via a background routine that downloads the latest update to the user's machine and applies upon confirmation or restart.

Notifications You must be signed in to change notification settings

Villarrealized/audemo

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

70 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Auto Update Demo

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.

Env File

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, Run

# Build release binaries
make build
# Upload binaries to the update server
./upload.sh
# Run app - change name according to your system
./audemo-darwin-amd64

Logging

Logs 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.

About

An demo app that is auto-updated via a background routine that downloads the latest update to the user's machine and applies upon confirmation or restart.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published