-
Notifications
You must be signed in to change notification settings - Fork 48
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
Yarn Dev/Make Fixes, Local ComfyCLI Fix, Todesktop security adjustments #139
Conversation
This should fix the issue Cleaned up and added Documentation Format Fix Bumped up Icon size
index.html
Outdated
@@ -2,6 +2,7 @@ | |||
<html> | |||
<head> | |||
<meta charset="UTF-8" /> | |||
<meta http-equiv="Content-Security-Policy" content="script-src 'self'" /> |
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.
What's this for?
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.
src/main.ts
Outdated
process.env.PUBLISH == true && | ||
todesktop.init({ | ||
customLogger: log, | ||
updateReadyAction: { showInstallAndRestartPrompt: 'always', showNotification: 'always' }, |
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.
autoUpdater was removed from the previous diff.
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.
It needs to inherit from comfySettings.autoUpdate
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.
OK I see, fyi if your on Mac if your not code signed it won't auto-update, this is at least on the default app not sure if Mac for Todesktop uses a diff process
https://www.electron.build/auto-update.html
src/main.ts
Outdated
log.info('Opened Vite Dev Server'); | ||
mainWindow.webContents.openDevTools(); | ||
} else { | ||
mainWindow.loadFile(path.join(__dirname, `../renderer/index.html`)); | ||
} | ||
|
||
session.defaultSession.setPermissionRequestHandler((webContents, permission, callback) => { |
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.
Why are we doing this?
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.
src/main.ts
Outdated
mainWindow.webContents.on('will-navigate', (event, newURL) => { | ||
const approvedHosts: Array<string> = [ | ||
`http://${host}:${port}`, | ||
process.env.VITE_DEV_SERVER_URL as string, |
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.
What do we need this for?
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.
No description provided.