Closed pastudan closed 1 year ago
This is halfway done (route is in, but doesn't actually update itself yet) The app flow should be like this:
tag_name
/api/status
/api/update
{"version":"v1.0.0"}
/opt/pibox-host/index.js
/opt/pibox-host/vX.X.X/server.js
create a GET /update route which checks github, as well as a POST /update that accepts version
This is halfway done (route is in, but doesn't actually update itself yet) The app flow should be like this:
tag_name
property to determine the latest version/api/status
route (use https://sarunw.com/posts/how-to-compare-two-app-version-strings-in-swift/ for reference)/api/update
with the body of{"version":"v1.0.0"}
using the latest tag name