Skip to content

Commit

Permalink
release v1.6
Browse files Browse the repository at this point in the history
  • Loading branch information
kanasimi committed Sep 20, 2018
1 parent 807d7bd commit 6413e65
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 3 deletions.
5 changes: 4 additions & 1 deletion gui_electron/gui_electron.js
Original file line number Diff line number Diff line change
Expand Up @@ -93,10 +93,12 @@ require('electron').ipcMain.on('send_message', function(event, message) {
// for update
function start_update(event_sender) {
try {
event_sender.send('send_message', 'Start updating...');
event_sender.send('send_message', 'Start release updating...');

// https://github.com/iffy/electron-updater-example/blob/master/main.js
// https://nicholaslee119.github.io/2018/01/11/electronBuilder%E5%85%A8%E5%AE%B6%E6%A1%B6%E4%BD%BF%E7%94%A8%E6%8C%87%E5%8D%97/
// https://electronjs.org/docs/tutorial/updates
// https://www.electron.build/auto-update
var updater = require("electron-updater"), autoUpdater = updater.autoUpdater;
autoUpdater.checkForUpdatesAndNotify();

Expand Down Expand Up @@ -137,6 +139,7 @@ function start_update(event_sender) {
});

} catch (e) {
// e.g., Error: Cannot find module 'electron-updater'
// win.webContents.send()
event_sender.send('send_message', 'Release update failed: ' + e);
}
Expand Down
2 changes: 1 addition & 1 deletion gui_electron/gui_electron_functions.js
Original file line number Diff line number Diff line change
Expand Up @@ -622,7 +622,7 @@ function check_update() {
// ----------------------------------------------

var NONE_TASKBAR_PROGRESS = -1,
// 不定量的進度
// 不定量的進度,沒有細細的進度條。
INDETERMINATE_TASKBAR_PROGRESS = 2;

// GUI progress bar
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name" : "work_crawler",
"version" : "1.5.20180909",
"version" : "1.6.20180920",
"main" : "gui_electron/gui_electron.js",
"description" : "CeJS online novels / comics downloader, CeJS 線上小說漫畫下載工具.",
"author" : {
Expand Down

0 comments on commit 6413e65

Please sign in to comment.