From 6b1876b0f4ecd2dea4991c9578c7b9e79fefb5c8 Mon Sep 17 00:00:00 2001 From: Patrick Fic Date: Mon, 24 Mar 2025 14:17:40 -0700 Subject: [PATCH] Add WIN code signing --- electron-builder.yml | 6 +++++- src/renderer/src/App.tsx | 6 +++--- 2 files changed, 8 insertions(+), 4 deletions(-) diff --git a/electron-builder.yml b/electron-builder.yml index f12cc71..9ea9467 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -13,7 +13,11 @@ asarUnpack: - resources/** win: executableName: bodyshop-desktop - + azureSignOptions: + endpoint: https://eus.codesigning.azure.net + certificateProfileName: ImEXRPS + codeSigningAccountName: ImEX + nsis: artifactName: ${name}-${version}-setup.${ext} shortcutName: ${productName} diff --git a/src/renderer/src/App.tsx b/src/renderer/src/App.tsx index 1bb5c6f..8df06c3 100644 --- a/src/renderer/src/App.tsx +++ b/src/renderer/src/App.tsx @@ -4,7 +4,7 @@ import { User } from "firebase/auth"; import { useEffect, useState } from "react"; import { ErrorBoundary } from "react-error-boundary"; import { Provider } from "react-redux"; -import { BrowserRouter, Route, Routes } from "react-router"; +import { HashRouter, Route, Routes } from "react-router"; import ipcTypes from "../../util/ipcTypes"; import ErrorBoundaryFallback from "./components/ErrorBoundaryFallback/ErrorBoundaryFallback"; import Home from "./components/Home/Home"; @@ -37,7 +37,7 @@ const App: React.FC = () => { return ( - + {!user ? ( @@ -53,7 +53,7 @@ const App: React.FC = () => { )} - + ); };