mirror of
https://github.com/quine-global/hyper.git
synced 2026-01-13 04:28:41 -09:00
22 lines
541 B
TypeScript
22 lines
541 B
TypeScript
import {UPDATE_INSTALL, UPDATE_AVAILABLE} from '../../typings/constants/updater';
|
|
import rpc from '../rpc';
|
|
import type {HyperActions} from '../../typings/hyper';
|
|
|
|
export function installUpdate(): HyperActions {
|
|
return {
|
|
type: UPDATE_INSTALL,
|
|
effect: () => {
|
|
rpc.emit('quit and install');
|
|
}
|
|
};
|
|
}
|
|
|
|
export function updateAvailable(version: string, notes: string, releaseUrl: string, canInstall: boolean): HyperActions {
|
|
return {
|
|
type: UPDATE_AVAILABLE,
|
|
version,
|
|
notes,
|
|
releaseUrl,
|
|
canInstall
|
|
};
|
|
}
|