Skip to content
This repository has been archived by the owner on Oct 9, 2024. It is now read-only.

Commit

Permalink
update repo
Browse files Browse the repository at this point in the history
  • Loading branch information
nicolashajdys committed May 11, 2023
1 parent 324b280 commit 0c484e6
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 39 deletions.
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -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": {
Expand All @@ -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": "[email protected]"
Expand Down
38 changes: 1 addition & 37 deletions src/main/main.js
Original file line number Diff line number Diff line change
@@ -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')
Expand Down Expand Up @@ -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')
}
Expand Down

0 comments on commit 0c484e6

Please sign in to comment.