Move icons and sounds to public/resources.
Signed-off-by: Anders Kaseorg <anders@zulip.com>
@@ -41,7 +41,7 @@ const mainUrl = "file://" + path.join(__dirname, "../renderer", "main.html");
 | 
				
			|||||||
const permissionCallbacks = new Map<number, (grant: boolean) => void>();
 | 
					const permissionCallbacks = new Map<number, (grant: boolean) => void>();
 | 
				
			||||||
let nextPermissionCallbackId = 0;
 | 
					let nextPermissionCallbackId = 0;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const appIcon = path.join(__dirname, "../resources", "Icon");
 | 
					const appIcon = path.join(__dirname, "../../public/resources", "Icon");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const iconPath = (): string =>
 | 
					const iconPath = (): string =>
 | 
				
			||||||
  appIcon + (process.platform === "win32" ? ".ico" : ".png");
 | 
					  appIcon + (process.platform === "win32" ? ".ico" : ".png");
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -50,7 +50,7 @@ type ServerOrFunctionalTab = ServerTab | FunctionalTab;
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
const rootWebContents = remote.getCurrentWebContents();
 | 
					const rootWebContents = remote.getCurrentWebContents();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const dingSound = new Audio("../resources/sounds/ding.ogg");
 | 
					const dingSound = new Audio("../../public/resources/sounds/ding.ogg");
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export class ServerManagerView {
 | 
					export class ServerManagerView {
 | 
				
			||||||
  $addServerButton: HTMLButtonElement;
 | 
					  $addServerButton: HTMLButtonElement;
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -14,7 +14,7 @@ import {ipcRenderer} from "./typed-ipc-renderer.js";
 | 
				
			|||||||
 | 
					
 | 
				
			||||||
let tray: ElectronTray | null = null;
 | 
					let tray: ElectronTray | null = null;
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const iconDir = "../../resources/tray";
 | 
					const iconDir = "../../../public/resources/tray";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
const traySuffix = "tray";
 | 
					const traySuffix = "tray";
 | 
				
			||||||
 | 
					
 | 
				
			||||||
 
 | 
				
			|||||||
| 
		 Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB  | 
| 
		 Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB  | 
| 
		 Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB  | 
| 
		 Before Width: | Height: | Size: 321 B After Width: | Height: | Size: 321 B  | 
| 
		 Before Width: | Height: | Size: 631 B After Width: | Height: | Size: 631 B  | 
| 
		 Before Width: | Height: | Size: 932 B After Width: | Height: | Size: 932 B  | 
| 
		 Before Width: | Height: | Size: 1.3 KiB After Width: | Height: | Size: 1.3 KiB  | 
| 
		 Before Width: | Height: | Size: 91 KiB After Width: | Height: | Size: 91 KiB  | 
| 
		 Before Width: | Height: | Size: 106 KiB After Width: | Height: | Size: 106 KiB  |