mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-26 01:10:16 +08:00
chore(main): clean up temp dir on quit
This commit is contained in:
@@ -155,6 +155,13 @@ app.on("activate", () => {
|
||||
}
|
||||
});
|
||||
|
||||
app.on("will-quit", () => {
|
||||
// Clean up temp dir
|
||||
logger.info("Cleaning up temp dir");
|
||||
fs.rmSync("/tmp/apm-store/", { recursive: true, force: true });
|
||||
logger.info("Done, exiting")
|
||||
});
|
||||
|
||||
// 设置托盘
|
||||
// 获取图标路径
|
||||
function getIconPath() {
|
||||
|
||||
Reference in New Issue
Block a user