temp disable auto upd

This commit is contained in:
Maikiwi 2022-02-15 19:29:29 -08:00
parent 182e4a0611
commit 3e38e32119
3 changed files with 4 additions and 36 deletions

View file

@ -647,7 +647,7 @@ export class BrowserWindow {
console.log(err) console.log(err)
}); });
}); });
/*
ipcMain.on('check-for-update', async (_event) => { ipcMain.on('check-for-update', async (_event) => {
const branch = utils.getStoreValue('general.update_branch') const branch = utils.getStoreValue('general.update_branch')
let latestbranch = await fetch(`https://circleci.com/api/v1.1/project/gh/ciderapp/Cider/latest/artifacts?branch=${branch}&filter=successful`) let latestbranch = await fetch(`https://circleci.com/api/v1.1/project/gh/ciderapp/Cider/latest/artifacts?branch=${branch}&filter=successful`)
@ -663,10 +663,10 @@ export class BrowserWindow {
const options: any = { const options: any = {
provider: 'generic', provider: 'generic',
url: `${base_url}` url: `${base_url}`
} }*/
/* /*
* Have to handle the auto updaters seperatly until we can support macOS. electron-builder limitation -q * Have to handle the auto updaters seperatly until we can support macOS. electron-builder limitation -q
*/ */ /*
const win_autoUpdater = new NsisUpdater(options) //Windows const win_autoUpdater = new NsisUpdater(options) //Windows
const linux_autoUpdater = new AppImageUpdater(options) //Linux const linux_autoUpdater = new AppImageUpdater(options) //Linux
await win_autoUpdater.checkForUpdatesAndNotify() await win_autoUpdater.checkForUpdatesAndNotify()
@ -680,7 +680,7 @@ export class BrowserWindow {
event.returnValue = true event.returnValue = true
} }
}) })
*/
ipcMain.on('share-menu', async (_event, url) => { ipcMain.on('share-menu', async (_event, url) => {
if (process.platform != 'darwin') return; if (process.platform != 'darwin') return;

View file

@ -3667,9 +3667,6 @@ const app = new Vue({
closeWindow() { closeWindow() {
ipcRenderer.send('close'); ipcRenderer.send('close');
}, },
checkForUpdate() {
ipcRenderer.send('check-for-update')
},
darwinShare(url) { darwinShare(url) {
ipcRenderer.send('share-menu', url) ipcRenderer.send('share-menu', url)
}, },

View file

@ -684,35 +684,6 @@
<input type="checkbox" v-model="app.cfg.general.close_button_hide" switch/> <input type="checkbox" v-model="app.cfg.general.close_button_hide" switch/>
</div> </div>
</div> </div>
<div class="md-option-line update-check">
<div class="md-option-segment">
{{$root.getLz('settings.option.general.updateCider')}}
</div>
<div class="md-option-segment md-option-segment_auto">
<button class="md-btn" @click="app.checkForUpdate()">
{{$root.getLz('term.check')}}
</button>
</div>
</div>
<div class="md-option-line update-check">
<div class="md-option-segment">
{{$root.getLz('settings.option.general.updateCider.branch')}}<br>
<small>({{$root.getLz('settings.option.general.updateCider.branch.description')}})</small>
</div>
<div class="md-option-segment md-option-segment_auto">
<select class="md-select" style="width:180px;" v-model="app.cfg.general.update_branch">
<option value="main">
{{$root.getLz('settings.option.general.updateCider.branch.main')}}
</option>
<option value="develop">
{{$root.getLz('settings.option.general.updateCider.branch.develop')}}
</option>
<option value="innolab">
Maikiwi Inno Lab
</option>
</select>
</div>
</div>
<div class="md-option-line"> <div class="md-option-line">
<div class="md-option-segment"> <div class="md-option-segment">
{{$root.getLz('settings.option.experimental.copy_log')}} {{$root.getLz('settings.option.experimental.copy_log')}}