mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 10:34:18 +00:00
exec on finish
This commit is contained in:
parent
6a85669d5a
commit
2088ee7ee5
@ -45,8 +45,12 @@ class ElectronApp {
|
||||
"pkg:install": async (event, manifest) => {
|
||||
this.pkgManager.install(manifest)
|
||||
},
|
||||
"pkg:update": (event, manifest_id) => {
|
||||
this.pkgManager.update(manifest_id)
|
||||
"pkg:update": async (event, manifest_id, { execOnFinish = false } = {}) => {
|
||||
await this.pkgManager.update(manifest_id)
|
||||
|
||||
if(execOnFinish) {
|
||||
await this.pkgManager.execute(manifest_id)
|
||||
}
|
||||
},
|
||||
"pkg:apply": (event, manifest_id, changes) => {
|
||||
this.pkgManager.applyChanges(manifest_id, changes)
|
||||
|
@ -5,7 +5,9 @@ import "./index.less"
|
||||
|
||||
const PackageUpdateAvailable = ({ update, close }) => {
|
||||
function handleUpdate() {
|
||||
ipc.exec("pkg:update", update.manifest.id)
|
||||
ipc.exec("pkg:update", update.manifest.id, {
|
||||
execOnFinish: true
|
||||
})
|
||||
|
||||
close()
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user