Compare commits

..

3 Commits

Author SHA1 Message Date
f12a4bc9c1 🐛 Fix move files error 2025-01-12 01:26:51 +08:00
87ebd71d89 🐛 Fix building issues 2025-01-12 01:09:15 +08:00
c619de17dc 🔨 Update linux build script 2025-01-12 00:16:17 +08:00
5 changed files with 13 additions and 5 deletions

1
.gitignore vendored
View File

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

View File

@ -13,12 +13,14 @@ asarUnpack:
- resources/** - resources/**
win: win:
executableName: MatrixTerminal executableName: MatrixTerminal
publisherName: Solsynth LLC
nsis: nsis:
artifactName: ${name}-${version}-setup.${ext} artifactName: ${name}-${version}-setup.${ext}
shortcutName: ${productName} shortcutName: ${productName}
uninstallDisplayName: ${productName} uninstallDisplayName: ${productName}
createDesktopShortcut: always createDesktopShortcut: always
mac: mac:
darkModeSupport: true
entitlementsInherit: build/entitlements.mac.plist entitlementsInherit: build/entitlements.mac.plist
extendInfo: extendInfo:
- CFBundleName: MatrixTerminal - CFBundleName: MatrixTerminal
@ -33,8 +35,8 @@ dmg:
linux: linux:
target: target:
- AppImage - AppImage
- snap
- deb - deb
- rpm
maintainer: solsynth.dev maintainer: solsynth.dev
category: Utility category: Utility
appImage: appImage:

View File

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

View File

@ -105,6 +105,10 @@ export async function downloadAssets(task: InstallTask): Promise<string | undefi
function moveFiles(from: string, to: string) { function moveFiles(from: string, to: string) {
const files = fs.readdirSync(from) const files = fs.readdirSync(from)
if (!fs.existsSync(to)) {
fs.mkdirSync(to, { recursive: true })
}
for (const file of files) { for (const file of files) {
const sourcePath = path.join(from, file) const sourcePath = path.join(from, file)
const targetPath = path.join(to, file) const targetPath = path.join(to, file)

View File

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