build: platform specific builds (#480)
* build: upgrade electron-builder and updater * build: pack or publish managed by ENV * fix typo * ci: appveyor y64 build * style: fix indent in release.js * build: upgrade package version * build: upgrade node-hid => 0.5.7 * build: upgrade node-hid => 0.5.7 * build: setup new release script * build: setup new release script
This commit is contained in:
committed by
László Monda
parent
bcf9607ae3
commit
053352467d
32
packages/uhk-web/package-lock.json
generated
32
packages/uhk-web/package-lock.json
generated
@@ -3949,6 +3949,13 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "1.0.1",
|
||||
"bundled": true,
|
||||
"requires": {
|
||||
"safe-buffer": "5.0.1"
|
||||
}
|
||||
},
|
||||
"string-width": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
@@ -3958,13 +3965,6 @@
|
||||
"strip-ansi": "3.0.1"
|
||||
}
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "1.0.1",
|
||||
"bundled": true,
|
||||
"requires": {
|
||||
"safe-buffer": "5.0.1"
|
||||
}
|
||||
},
|
||||
"stringstream": {
|
||||
"version": "0.0.5",
|
||||
"bundled": true,
|
||||
@@ -6547,6 +6547,10 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "0.10.31",
|
||||
"bundled": true
|
||||
},
|
||||
"string-width": {
|
||||
"version": "1.0.2",
|
||||
"bundled": true,
|
||||
@@ -6556,10 +6560,6 @@
|
||||
"strip-ansi": "3.0.1"
|
||||
}
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "0.10.31",
|
||||
"bundled": true
|
||||
},
|
||||
"stringstream": {
|
||||
"version": "0.0.5",
|
||||
"bundled": true
|
||||
@@ -9212,6 +9212,11 @@
|
||||
"resolved": "https://registry.npmjs.org/strict-uri-encode/-/strict-uri-encode-1.1.0.tgz",
|
||||
"integrity": "sha1-J5siXfHVgrH1TmWt3UNS4Y+qBxM="
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "0.10.31",
|
||||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
|
||||
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ="
|
||||
},
|
||||
"string-width": {
|
||||
"version": "2.1.1",
|
||||
"resolved": "https://registry.npmjs.org/string-width/-/string-width-2.1.1.tgz",
|
||||
@@ -9236,11 +9241,6 @@
|
||||
}
|
||||
}
|
||||
},
|
||||
"string_decoder": {
|
||||
"version": "0.10.31",
|
||||
"resolved": "https://registry.npmjs.org/string_decoder/-/string_decoder-0.10.31.tgz",
|
||||
"integrity": "sha1-YuIDvEF2bGwoyfyEMB2rHFMQ+pQ="
|
||||
},
|
||||
"stringstream": {
|
||||
"version": "0.0.5",
|
||||
"resolved": "https://registry.npmjs.org/stringstream/-/stringstream-0.0.5.tgz",
|
||||
|
||||
@@ -2,7 +2,7 @@ import { Injectable, NgZone } from '@angular/core';
|
||||
import { Action, Store } from '@ngrx/store';
|
||||
|
||||
import { IpcEvents } from 'uhk-common';
|
||||
import { AppState } from '../store/index';
|
||||
import { AppState } from '../store';
|
||||
import { UpdateDownloadedAction, UpdateErrorAction } from '../store/actions/app-update.action';
|
||||
import { CheckForUpdateFailedAction, CheckForUpdateSuccessAction } from '../store/actions/auto-update-settings';
|
||||
import { IpcCommonRenderer } from './ipc-common-renderer';
|
||||
|
||||
@@ -79,13 +79,13 @@ import { AutoUpdateSettings } from './components/auto-update-settings/auto-updat
|
||||
import { angularNotifierConfig } from './models/angular-notifier-config';
|
||||
import { UndoableNotifierComponent } from './components/undoable-notifier';
|
||||
import { UhkHeader } from './components/uhk-header/uhk-header';
|
||||
import { UpdateAvailableComponent } from './components/update-available/update-available.component';
|
||||
import { UhkMessageComponent } from './components/uhk-message/uhk-message.component';
|
||||
import { UpdateAvailableComponent } from './components/update-available';
|
||||
import { UhkMessageComponent } from './components/uhk-message';
|
||||
import { AppRendererService } from './services/app-renderer.service';
|
||||
import { AppUpdateRendererService } from './services/app-update-renderer.service';
|
||||
import { IpcCommonRenderer } from './services/ipc-common-renderer';
|
||||
import { MissingDeviceComponent } from './components/missing-device/missing-device.component';
|
||||
import { PrivilegeCheckerComponent } from './components/privilege-checker/privilege-checker.component';
|
||||
import { MissingDeviceComponent } from './components/missing-device';
|
||||
import { PrivilegeCheckerComponent } from './components/privilege-checker';
|
||||
import { UhkDeviceConnectedGuard } from './services/uhk-device-connected.guard';
|
||||
import { UhkDeviceDisconnectedGuard } from './services/uhk-device-disconnected.guard';
|
||||
import { UhkDeviceUninitializedGuard } from './services/uhk-device-uninitialized.guard';
|
||||
|
||||
@@ -1,15 +1,15 @@
|
||||
import { Injectable } from '@angular/core';
|
||||
import { Action } from '@ngrx/store';
|
||||
import { Actions, Effect, toPayload } from '@ngrx/effects';
|
||||
import { Actions, Effect } from '@ngrx/effects';
|
||||
import { Observable } from 'rxjs/Observable';
|
||||
|
||||
import 'rxjs/add/operator/do';
|
||||
import 'rxjs/add/operator/map';
|
||||
import 'rxjs/add/operator/first';
|
||||
|
||||
import { NotificationType } from 'uhk-common';
|
||||
import { LogService, NotificationType } from 'uhk-common';
|
||||
|
||||
import { ActionTypes } from '../actions/app-update.action';
|
||||
import { ActionTypes, UpdateErrorAction } from '../actions/app-update.action';
|
||||
import { ActionTypes as AutoUpdateActionTypes } from '../actions/auto-update-settings';
|
||||
import { ShowNotificationAction } from '../actions/app';
|
||||
import { AppUpdateRendererService } from '../../services/app-update-renderer.service';
|
||||
@@ -27,12 +27,13 @@ export class AppUpdateEffect {
|
||||
@Effect({ dispatch: false }) checkForUpdate$: Observable<Action> = this.actions$
|
||||
.ofType(AutoUpdateActionTypes.CHECK_FOR_UPDATE_NOW)
|
||||
.do(() => {
|
||||
this.logService.debug('[AppUpdateEffect] call checkForUpdate');
|
||||
this.appUpdateRendererService.checkForUpdate();
|
||||
});
|
||||
|
||||
@Effect() handleError$: Observable<Action> = this.actions$
|
||||
.ofType(ActionTypes.UPDATE_ERROR)
|
||||
.map(toPayload)
|
||||
.ofType<UpdateErrorAction>(ActionTypes.UPDATE_ERROR)
|
||||
.map(action => action.payload)
|
||||
.map((message: string) => {
|
||||
return new ShowNotificationAction({
|
||||
type: NotificationType.Error,
|
||||
@@ -41,7 +42,8 @@ export class AppUpdateEffect {
|
||||
});
|
||||
|
||||
constructor(private actions$: Actions,
|
||||
private appUpdateRendererService: AppUpdateRendererService) {
|
||||
private appUpdateRendererService: AppUpdateRendererService,
|
||||
private logService: LogService) {
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
@@ -4,6 +4,7 @@ import { MacroEffects } from './macro';
|
||||
import { KeymapEffects } from './keymap';
|
||||
import { UserConfigEffects } from './user-config';
|
||||
import { ApplicationEffects } from './app';
|
||||
import { AppUpdateEffect } from './app-update';
|
||||
|
||||
export * from './keymap';
|
||||
export * from './macro';
|
||||
@@ -13,6 +14,7 @@ export * from './app';
|
||||
|
||||
export const effects = [
|
||||
ApplicationEffects,
|
||||
AppUpdateEffect,
|
||||
UserConfigEffects,
|
||||
KeymapEffects,
|
||||
MacroEffects,
|
||||
|
||||
@@ -4,8 +4,8 @@ import { LogService } from 'uhk-common';
|
||||
import { ElectronDataStorageRepositoryService } from './services/electron-datastorage-repository.service';
|
||||
import { ElectronLogService } from './services/electron-log.service';
|
||||
import { ElectronErrorHandlerService } from './services/electron-error-handler.service';
|
||||
import { routing } from '../app/app.routes';
|
||||
import { MainAppComponent } from '../app/app.component';
|
||||
import { routing } from '../../';
|
||||
import { MainAppComponent } from '../../';
|
||||
import { IpcUhkRenderer } from './services/ipc-uhk-renderer';
|
||||
import { IpcCommonRenderer } from '../app/services/ipc-common-renderer';
|
||||
import { DataStorageRepositoryService } from '../app/services/datastorage-repository.service';
|
||||
|
||||
Reference in New Issue
Block a user