Compare commits

..

No commits in common. "master" and "1.0.0" have entirely different histories.

6 changed files with 8 additions and 18 deletions

1
.gitignore vendored
View File

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

View File

@ -13,14 +13,12 @@ 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
@ -35,8 +33,8 @@ dmg:
linux:
target:
- AppImage
- snap
- deb
- rpm
maintainer: solsynth.dev
category: Utility
appImage:

View File

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

View File

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

View File

@ -103,15 +103,13 @@ export function launchApp(id: string): void {
const platform = process.platform
const runner = app.release.runners[platform]
const segments = runner.script.split(' ').map(decodeURIComponent)
const segments = runner.script.split(' ')
try {
const child = spawn(segments[0], segments.length > 1 ? segments.slice(1) : [], {
spawn(segments[0], segments.length > 1 ? segments.slice(1) : [], {
detached: true,
cwd: runner.workdir ? join(app.basePath, runner.workdir) : app.basePath,
})
child.stdout.pipe(process.stdout)
child.stderr.pipe(process.stderr)
} catch (err: any) {
console.error(err)
}

View File

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