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",
"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",

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)
}