mirror of
https://github.com/WebTools-NG/WebTools-NG
synced 2024-11-23 03:23:05 +00:00
HotFix for AutoUpdate
This commit is contained in:
parent
23650d4743
commit
ae7e0cbca9
3 changed files with 6 additions and 37 deletions
|
@ -315,36 +315,6 @@ const github = new class GitHub {
|
|||
const releases = await response.json();
|
||||
return releases;
|
||||
}
|
||||
|
||||
// Is an update present?
|
||||
async UpdatePresentDEAD(){
|
||||
// Get release page from GitHub
|
||||
const releases = await this.Releases();
|
||||
// Walk releases
|
||||
// eslint-disable-next-line no-unused-vars
|
||||
let release = {}
|
||||
for(var i = 0; i < releases.length; i++)
|
||||
{
|
||||
// Check for current release on GitHub
|
||||
if (wtconfig.get('Update.Beta') == releases[i].prerelease){
|
||||
release = releases[i];
|
||||
if ('v' + wtutils.AppVersion != release.tag_name){
|
||||
console.log('Ged Update Present');
|
||||
|
||||
//Store.commit("UPDATE_GIT_PRESENT", true);
|
||||
/*
|
||||
store.commit("UPDATE_GIT_NAME", releases[i].name);
|
||||
store.commit("UPDATE_GIT_VERSION", releases[i].tag_name);
|
||||
store.commit("UPDATE_GIT_DESCRIPTION", releases[i].body);
|
||||
store.commit("UPDATE_GIT_DOWNLOADURL", releases[i].url);
|
||||
store.commit("UPDATE_GIT_PUBLISHEDAT", releases[i].published_at);
|
||||
*/
|
||||
}
|
||||
|
||||
break;
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
|
|
|
@ -72,12 +72,12 @@
|
|||
wtconfig.set('Log.fileLevel', value)
|
||||
},
|
||||
setBeta: function(value){
|
||||
log.info(`Beta level set to ${value}`)
|
||||
wtconfig.set('Update.Beta', value)
|
||||
log.info(`Beta level set to ${value}`);
|
||||
wtconfig.set('Update.Beta', value == 'true');
|
||||
},
|
||||
setLogLevelConsole: function(value){
|
||||
log.info(`Log Console level set to ${value}`)
|
||||
wtconfig.set('Log.consoleLevel', value)
|
||||
log.info(`Log Console level set to ${value}`);
|
||||
wtconfig.set('Log.consoleLevel', value);
|
||||
},
|
||||
getLogFileSize: function(){
|
||||
const logSizeBytes = wtconfig.get('Log.maxSize');
|
||||
|
|
|
@ -58,8 +58,7 @@ export default {
|
|||
for(var i = 0; i < releases.length; i++)
|
||||
{
|
||||
// Check for current release on GitHub
|
||||
if (wtconfig.get('Update.Beta') == releases[i].prerelease){
|
||||
//release = releases[i];
|
||||
if ( Boolean(wtconfig.get('Update.Beta')) == releases[i].prerelease){
|
||||
if ('v' + wtutils.AppVersion != releases[i].tag_name){
|
||||
log.info('Update detected');
|
||||
this.body = this.$t('Common.Update.Body', [releases[i].name, releases[i].published_at.substring(0, 10)]),
|
||||
|
|
Loading…
Reference in a new issue