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