-
Notifications
You must be signed in to change notification settings - Fork 2.3k
use app.isPackaged instead of checking for node env development #5465
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change | ||||||||||||||||||
|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
|
@@ -2,21 +2,11 @@ import log from 'electron-log'; | |||||||||||||||||||
| import path from 'node:path'; | ||||||||||||||||||||
| import { app } from 'electron'; | ||||||||||||||||||||
|
|
||||||||||||||||||||
|
Comment on lines
3
to
4
|
||||||||||||||||||||
| import { app } from 'electron'; | |
| import { app } from 'electron'; | |
| import fs from 'node:fs'; | |
| // Ensure the 'logs' directory exists | |
| const logsDir = path.join(app.getPath('userData'), 'logs'); | |
| if (!fs.existsSync(logsDir)) { | |
| fs.mkdirSync(logsDir, { recursive: true }); | |
| } |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Removed comment 'Import the proper type from ConfigContext' which was inaccurate since this file doesn't import anything from ConfigContext.