From 0c484e62fa28d29d732b297a6da39c08b8f983bd Mon Sep 17 00:00:00 2001 From: nicolashajdys Date: Thu, 11 May 2023 10:44:17 +0200 Subject: [PATCH] update repo --- package.json | 4 ++-- src/main/main.js | 38 +------------------------------------- 2 files changed, 3 insertions(+), 39 deletions(-) diff --git a/package.json b/package.json index 8fa0f4c..a04200f 100644 --- a/package.json +++ b/package.json @@ -1,7 +1,7 @@ { "name": "CodaBox-SyncTool", "productName": "CodaBox SyncTool Test", - "version": "0.3.14", + "version": "0.3.15", "description": "CodaBox desktop client", "main": ".webpack/main", "scripts": { @@ -13,7 +13,7 @@ "lint:fix": "eslint --ext .js,.vue -f ./node_modules/eslint-friendly-formatter --fix", "test": "jest" }, - "repository": "https://github.com/codabox/sync-tool-artefacts", + "repository": "https://github.com/codabox/synctool-test-update", "author": { "name": "CodaBox", "email": "support@codabox.com" diff --git a/src/main/main.js b/src/main/main.js index 0ca0764..a50a887 100644 --- a/src/main/main.js +++ b/src/main/main.js @@ -1,17 +1,6 @@ /* global MAIN_WINDOW_PRELOAD_WEBPACK_ENTRY MAIN_WINDOW_WEBPACK_ENTRY */ /* global win:writable */ -const { - app, - // autoUpdater, - dialog, - ipcMain, - nativeImage, - safeStorage, - shell, - BrowserWindow, - Menu, - Tray, -} = require('electron') +const { app, dialog, ipcMain, nativeImage, safeStorage, shell, BrowserWindow, Menu, Tray } = require('electron') const fs = require('fs') const path = require('path') const Client = require('ssh2-sftp-client') @@ -42,31 +31,6 @@ if (!applicationLock) { // Auto update require('update-electron-app')() -// const server = 'https://www.github.com' -// const feed = `${server}/codabox/synctool-test-update/${process.platform}-${process.arch}/${app.getVersion()}` - -// autoUpdater.setFeedURL(feed) - -// setInterval(() => { -// autoUpdater.checkForUpdates() -// }, 10000) - -// autoUpdater.on('update-downloaded', (event, releaseNotes, releaseName) => { -// const dialogOpts = { -// type: 'info', -// buttons: ['Restart', 'Later'], -// title: 'Application Update', -// message: process.platform === 'win32' ? releaseNotes : releaseName, -// detail: -// 'A new version has been downloaded. Restart the application to apply the updates. ' + -// 'Please do it now because I realy want you to have the latest version', -// } - -// dialog.showMessageBox(dialogOpts).then((returnValue) => { -// if (returnValue.response === 0) autoUpdater.quitAndInstall() -// }) -// }) - function getLogPath () { return path.join(app.getPath('userData'), 'logs') }