Compare commits
5 Commits
Author | SHA1 | Date | |
---|---|---|---|
acbd1bf20c | |||
a719ac8aeb | |||
f12a4bc9c1 | |||
87ebd71d89 | |||
c619de17dc |
1
.gitignore
vendored
1
.gitignore
vendored
@ -3,3 +3,4 @@ dist
|
||||
out
|
||||
.DS_Store
|
||||
*.log*
|
||||
*.lock
|
@ -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
|
||||
@ -33,8 +35,8 @@ dmg:
|
||||
linux:
|
||||
target:
|
||||
- AppImage
|
||||
- snap
|
||||
- deb
|
||||
- rpm
|
||||
maintainer: solsynth.dev
|
||||
category: Utility
|
||||
appImage:
|
||||
|
@ -1,9 +1,10 @@
|
||||
{
|
||||
"name": "matrix-terminal",
|
||||
"version": "1.0.0",
|
||||
"version": "1.0.1",
|
||||
"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 .",
|
||||
|
@ -105,6 +105,10 @@ 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)
|
||||
|
@ -103,13 +103,15 @@ export function launchApp(id: string): void {
|
||||
const platform = process.platform
|
||||
const runner = app.release.runners[platform]
|
||||
|
||||
const segments = runner.script.split(' ')
|
||||
const segments = runner.script.split(' ').map(decodeURIComponent)
|
||||
|
||||
try {
|
||||
spawn(segments[0], segments.length > 1 ? segments.slice(1) : [], {
|
||||
const child = 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)
|
||||
}
|
||||
|
@ -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>
|
||||
)
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user