From c694f8ec81bc717a5b6f67a0272b7b5e14cae543 Mon Sep 17 00:00:00 2001 From: Denis Date: Mon, 12 Feb 2024 22:32:56 -0500 Subject: [PATCH 1/2] Add an icon --- src/main/index.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/main/index.ts b/src/main/index.ts index 7035c089..abbf42f8 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -33,6 +33,7 @@ function createWindow() { preload: path.join(__dirname, 'preload.js'), webSecurity: false, // TODO figure out CORS policy for robot_description server }, + icon: 'public/assets/images/icon/192x192.png', }); log.info('Window created'); From 9af909fd753a6b9b0ff1a51274e9216ecf6bba29 Mon Sep 17 00:00:00 2001 From: Denis Date: Tue, 13 Feb 2024 00:21:15 -0500 Subject: [PATCH 2/2] add icons to build folder --- package.json | 3 ++- src/main/index.ts | 2 +- 2 files changed, 3 insertions(+), 2 deletions(-) diff --git a/package.json b/package.json index 30c9c206..c28c4d88 100644 --- a/package.json +++ b/package.json @@ -44,7 +44,8 @@ "artifactName": "capra_web_ui_setup.${ext}", "extends": "electron-snowpack/config/electron-builder.js", "extraFiles": [ - "script/**" + "script/**", + "./public/assets/images/icon/*" ] }, "dependencies": { diff --git a/src/main/index.ts b/src/main/index.ts index abbf42f8..d1bd0258 100644 --- a/src/main/index.ts +++ b/src/main/index.ts @@ -33,7 +33,7 @@ function createWindow() { preload: path.join(__dirname, 'preload.js'), webSecurity: false, // TODO figure out CORS policy for robot_description server }, - icon: 'public/assets/images/icon/192x192.png', + icon: './public/assets/images/icon/192x192.png', }); log.info('Window created');