hyper/lib/actions/updater.ts

22 lines
414 B
TypeScript
Raw Normal View History

import {UPDATE_INSTALL, UPDATE_AVAILABLE} from '../constants/updater';
2016-07-13 12:44:24 -08:00
import rpc from '../rpc';
export function installUpdate() {
2016-07-13 12:44:24 -08:00
return {
type: UPDATE_INSTALL,
effect: () => {
rpc.emit('quit and install');
}
};
}
export function updateAvailable(version, notes, releaseUrl, canInstall) {
2016-07-13 12:44:24 -08:00
return {
type: UPDATE_AVAILABLE,
version,
notes,
releaseUrl,
canInstall
2016-07-13 12:44:24 -08:00
};
}