Compare commits

..

No commits in common. "acbd1bf20ccb8bf62abb46e02c39af65b5106eae" and "f12a4bc9c1718e73e05b03ee1533bed01c49d566" have entirely different histories.

2 changed files with 3 additions and 5 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "matrix-terminal", "name": "matrix-terminal",
"version": "1.0.1", "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",
"license": "AGPL-3.0-only", "license": "AGPL-3.0-only",

View File

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