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) => {
|
"pkg:install": async (event, manifest) => {
|
||||||
this.pkgManager.install(manifest)
|
this.pkgManager.install(manifest)
|
||||||
},
|
},
|
||||||
"pkg:update": (event, manifest_id) => {
|
"pkg:update": async (event, manifest_id, { execOnFinish = false } = {}) => {
|
||||||
this.pkgManager.update(manifest_id)
|
await this.pkgManager.update(manifest_id)
|
||||||
|
|
||||||
|
if(execOnFinish) {
|
||||||
|
await this.pkgManager.execute(manifest_id)
|
||||||
|
}
|
||||||
},
|
},
|
||||||
"pkg:apply": (event, manifest_id, changes) => {
|
"pkg:apply": (event, manifest_id, changes) => {
|
||||||
this.pkgManager.applyChanges(manifest_id, changes)
|
this.pkgManager.applyChanges(manifest_id, changes)
|
||||||
|
@ -5,7 +5,9 @@ import "./index.less"
|
|||||||
|
|
||||||
const PackageUpdateAvailable = ({ update, close }) => {
|
const PackageUpdateAvailable = ({ update, close }) => {
|
||||||
function handleUpdate() {
|
function handleUpdate() {
|
||||||
ipc.exec("pkg:update", update.manifest.id)
|
ipc.exec("pkg:update", update.manifest.id, {
|
||||||
|
execOnFinish: true
|
||||||
|
})
|
||||||
|
|
||||||
close()
|
close()
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user