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
@@ -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