mirror of
https://github.com/ragestudio/relic.git
synced 2025-06-09 02:24:18 +00:00
support delete_after_extract
This commit is contained in:
parent
5b4d81b4c7
commit
c9541bc352
@ -86,5 +86,14 @@ export default async (manifest, step) => {
|
||||
})
|
||||
|
||||
await extractFile(_path, step.extract)
|
||||
|
||||
if (step.delete_after_extract) {
|
||||
sendToRenderer(`installation:status`, {
|
||||
...manifest,
|
||||
statusText: `Deleting temporal files...`,
|
||||
})
|
||||
|
||||
await fs.promises.rm(_path, { recursive: true })
|
||||
}
|
||||
}
|
||||
}
|
Loading…
x
Reference in New Issue
Block a user