diff --git a/src/electron/electron-builder.json b/src/electron/electron-builder.json index 76ade7c8e5..c182416a39 100644 --- a/src/electron/electron-builder.json +++ b/src/electron/electron-builder.json @@ -1,5 +1,5 @@ { - "files": ["build/electron", "www", "resources/tray", "!node_modules/electron"], + "files": ["build/electron", "www", "client/resources/tray", "!node_modules/electron"], "asarUnpack": ["output", "tools"], "artifactName": "Outline-Client.${ext}", "directories": { diff --git a/src/electron/index.ts b/src/electron/index.ts index a3749bb403..70c06f2f44 100644 --- a/src/electron/index.ts +++ b/src/electron/index.ts @@ -223,7 +223,7 @@ function updateTray(status: TunnelStatus) { } function createTrayIconImage(imageName: string) { - const image = nativeImage.createFromPath(path.join(app.getAppPath(), 'resources', 'tray', imageName)); + const image = nativeImage.createFromPath(path.join(app.getAppPath(), 'client', 'resources', 'tray', imageName)); if (image.isEmpty()) { throw new Error(`cannot find ${imageName} tray icon image`); }