Skip to content
This repository has been archived by the owner on Jun 29, 2019. It is now read-only.

Commit

Permalink
Fix native modules (#263)
Browse files Browse the repository at this point in the history
* Update native modules for Windows

* Remove unused dependency

* FIx version check logic
  • Loading branch information
appetizermonster authored May 14, 2018
1 parent 65ee322 commit c24d173
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 2 deletions.
6 changes: 5 additions & 1 deletion app/main/plugins/hain-commands/index.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
'use strict';

const lo_assign = require('lodash.assign');
const semver = require('semver');

const pkg = require('../../../package.json');
const checkForUpdate = require('./check-update');
Expand Down Expand Up @@ -46,7 +47,10 @@ module.exports = (context) => {

function startup() {
checkForUpdate().then((ret) => {
if (ret.version !== pkg.version) {
const remoteVersion = ret.version;
const isValidVersion = semver.valid(remoteVersion);
const isNewVersion = semver.gt(remoteVersion, pkg.version);
if (isValidVersion && isNewVersion) {
toast.enqueue(
'New version available! Please enter `/hain update`.',
2500
Expand Down
Binary file modified app/native/platform-util/win32-ia32.node
Binary file not shown.
Binary file modified app/native/platform-util/win32-x64.node
Binary file not shown.
1 change: 0 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@
"del": "^2.2.0",
"electron": "^2.0.0",
"electron-packager": "^8.6.0",
"electron-rebuild": "^1.5.7",
"electron-winstaller": "^2.5.2",
"eslint": "^3.2.2",
"eslint-config-prettier": "^2.9.0",
Expand Down

0 comments on commit c24d173

Please sign in to comment.