Skip to content

Commit 5aa2fe2

Browse files
committed
improve: generate cache in app folder
1 parent 882b061 commit 5aa2fe2

File tree

2 files changed

+2
-0
lines changed

2 files changed

+2
-0
lines changed

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
package-lock.json
22
forge.config.js
33
random.js
4+
cache/
45
eng.traineddata
56
# Logs
67
logs

app/main.js

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ if (handleSquirrelEvent(app)) {
4040
}
4141
/* Squirrel end */
4242

43+
app.setPath('sessionData', path.resolve(app.getAppPath(), `cache`)); // Set cache folder in the app folder
4344

4445
const showChoiceWarning = (win, warning, title, button1, button2) => {
4546
return dialog.showMessageBoxSync(win, {

0 commit comments

Comments
 (0)