Open Giermann opened 9 years ago
Find version from ccu.io.js:
var fs = require('fs'); var myCCUjs = fs.readFileSync("/opt/ccu.io/ccu.io.js"); var findVer = /settings.version\s=\s"([^"]*)"/ var setVer = findVer.exec(myCCUjs); console.log(setVer.length > 1 ? setVer[1] : "unknown");
TODO: Update branch "auto-update-new" and merge to master. Also change "update-self.js" to update from configured repository!!
Change from simply loading 'http://ccu.io/version.php' to extract current version from available file on GitHub: https://raw.githubusercontent.com/Giermann/ccu.io/master/ccu.io.js
Maybe along with configurable update-URL for different repositories...