🐛 Fix building issues

This commit is contained in:
LittleSheep 2025-01-12 01:09:15 +08:00
parent c619de17dc
commit 87ebd71d89
4 changed files with 8 additions and 4 deletions

1
.gitignore vendored
View File

@ -3,3 +3,4 @@ dist
out
.DS_Store
*.log*
*.lock

View File

@ -13,12 +13,14 @@ asarUnpack:
- resources/**
win:
executableName: MatrixTerminal
publisherName: Solsynth LLC
nsis:
artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName}
uninstallDisplayName: ${productName}
createDesktopShortcut: always
mac:
darkModeSupport: true
entitlementsInherit: build/entitlements.mac.plist
extendInfo:
- CFBundleName: MatrixTerminal

View File

@ -3,7 +3,8 @@
"version": "1.0.0",
"description": "An Electron application with React and TypeScript",
"main": "./out/main/index.js",
"author": "example.com",
"license": "AGPL-3.0-only",
"author": "Solsynth LLC",
"homepage": "https://electron-vite.org",
"scripts": {
"format": "prettier --write .",

View File

@ -1,5 +1,5 @@
import { CssBaseline, ThemeProvider, createTheme } from '@mui/material'
import { BrowserRouter, Route, Routes } from 'react-router'
import { HashRouter, Route, Routes } from 'react-router'
import { MaAppBar } from '@renderer/components/MaAppBar'
import Landing from '@renderer/pages/Landing'
@ -36,7 +36,7 @@ function App(): JSX.Element {
return (
<ThemeProvider theme={appTheme}>
<BrowserRouter>
<HashRouter>
<CssBaseline />
<MaAppBar />
@ -48,7 +48,7 @@ function App(): JSX.Element {
<Route path="/products/:id" element={<ProductDetails />} />
<Route path="/library/:id" element={<LibraryDetails />} />
</Routes>
</BrowserRouter>
</HashRouter>
</ThemeProvider>
)
}