mirror of
https://github.com/fluxerapp/fluxer
synced 2026-10-18 05:25:40 +09:00
feat(desktop): prefer the bundled renderer, own update prompts (#3341)
This commit is contained in:
1 parent
7a5b9a0ded
commit
5072488f1e
33 files changed
+2197
-113
No files matched your search
@@ -4,6 +4,7 @@ import {Buffer} from 'node:buffer';
|
||||
import fs from 'node:fs';
|
||||
import path from 'node:path';
|
||||
import {Readable} from 'node:stream';
|
||||
import {resolveAsarUnpackedPath} from '@electron/common/ModuleSystem';
|
||||
import {isServedLocalAppExtension, localAppCacheControl, localAppContentType} from '@electron/main/LocalAppMime';
|
||||
import {isLocalAppURL} from '@electron/main/LocalAppURL';
|
||||
import {app} from 'electron';
|
||||
@@ -429,7 +430,10 @@ export class DesktopLocalAppFiles {
|
||||
}
|
||||
|
||||
private rendererRootPath(): string {
|
||||
return this.configuredRendererRoot ?? path.join(app.getAppPath(), ...RENDERER_DIRECTORY_SEGMENTS);
|
||||
return (
|
||||
this.configuredRendererRoot ??
|
||||
resolveAsarUnpackedPath(path.join(app.getAppPath(), ...RENDERER_DIRECTORY_SEGMENTS))
|
||||
);
|
||||
}
|
||||
|
||||
private resolveRendererRoot(): Promise<string | null> {
|
||||
|
||||
Reference in new issue
Block a user