Skip to content

Commit

Permalink
notification
Browse files Browse the repository at this point in the history
  • Loading branch information
selector2 committed Jun 21, 2017
1 parent 3d9930d commit 11093a5
Show file tree
Hide file tree
Showing 202 changed files with 233 additions and 20,630 deletions.
9 changes: 5 additions & 4 deletions app.es6
@@ -1,6 +1,6 @@
import url from 'url';
import path from 'path';
import glob from 'glob';
// import glob from 'glob';
import { app, BrowserWindow, Menu, MenuItem, ipcMain as ipc } from 'electron';
import { autoUpdater } from 'electron-updater';

Expand All @@ -25,9 +25,10 @@ function sendStatusToWindow(message) {
function createWindow() {
// Create the browser window.
mainWindow = new BrowserWindow({
title: 'Hexo 客户端',
minWidth: 800,
minHeight: 600,
icon: path.join(ASSETS_PATH, 'icon.png')
icon: path.join(__dirname, 'build', 'icon.ico')
});

let prefix = getPrefix(),
Expand Down Expand Up @@ -69,12 +70,12 @@ app.on('ready', function () {
// });
// });

createWindow();

registry(BlogController);
registry(WindowController);
registry(ArticleController);
registry(SettingController);

createWindow();
});

app.on('activate', function () {
Expand Down
5 changes: 3 additions & 2 deletions app/config/menu.es6
Expand Up @@ -3,6 +3,7 @@ import path from 'path';
import { app, shell, BrowserWindow } from 'electron';
import { ASSETS_PATH } from './global.es6';
import setting from '../../lib/setting.es6';
import about from '../../lib/about.es6';

const name = app.getName();

Expand All @@ -12,8 +13,8 @@ module.exports = [
role: name,
submenu: [
{
role: 'about',
label: `关于${ name }`
label: `关于 ${ name }`,
click: about
}, {
type: 'separator'
}, {
Expand Down
2 changes: 1 addition & 1 deletion app/controllers/BlogController.es6
@@ -1,9 +1,9 @@
import path from 'path';
import _ from 'underscore';
import fs from 'fs-jetpack';
import shell from 'shelljs';
import response from '../../lib/response.es6';
import { getPrefix } from '../../lib/utilities.es6';
import shell from 'shelljs';

function exec(command, options = {}) {
options.async = true;
Expand Down
Binary file added build/icon.ico
Binary file not shown.
Binary file removed dist/Hexo 客户端-1.0.0-mac.zip
Binary file not shown.
Binary file removed dist/Hexo 客户端-1.0.0.dmg
Binary file not shown.

This file was deleted.

This file was deleted.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

0 comments on commit 11093a5

Please sign in to comment.