Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Q
qjclaw-dmg
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
AI-甘富林
qjclaw-dmg
Commits
43eb29a5
Commit
43eb29a5
authored
May 09, 2026
by
edy
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
test: add mac workspace startup smoke
parent
43d6c777
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
71 additions
and
0 deletions
+71
-0
mac-workspace-startup-smoke.mjs
build/scripts/mac-workspace-startup-smoke.mjs
+70
-0
package.json
package.json
+1
-0
No files found.
build/scripts/mac-workspace-startup-smoke.mjs
0 → 100644
View file @
43eb29a5
#!/usr/bin/env node
import
{
execFileSync
}
from
"node:child_process"
import
{
existsSync
,
mkdirSync
,
rmSync
,
writeFileSync
}
from
"node:fs"
import
{
dirname
,
join
,
resolve
}
from
"node:path"
const
repoRoot
=
resolve
(
import
.
meta
.
dirname
,
".."
,
".."
)
const
desktopAppRoot
=
join
(
repoRoot
,
"apps"
,
"desktop"
)
const
sourcePath
=
join
(
repoRoot
,
"build"
,
"scripts"
,
"workspace-startup-smoke.ts"
)
const
tempRoot
=
join
(
repoRoot
,
".tmp"
,
"workspace-startup-smoke"
)
const
compileRoot
=
join
(
tempRoot
,
"compiled"
)
const
entryPath
=
join
(
compileRoot
,
"build"
,
"scripts"
,
"workspace-startup-smoke.js"
)
const
compilePackagePath
=
join
(
compileRoot
,
"package.json"
)
const
resultPath
=
resolve
(
process
.
argv
[
2
]
??
join
(
tempRoot
,
"result.json"
))
function
writeUtf8File
(
filePath
,
content
)
{
mkdirSync
(
dirname
(
filePath
),
{
recursive
:
true
})
writeFileSync
(
filePath
,
content
,
"utf8"
)
}
if
(
!
existsSync
(
sourcePath
))
{
throw
new
Error
(
`Workspace startup smoke source was not found:
${
sourcePath
}
`
)
}
rmSync
(
compileRoot
,
{
recursive
:
true
,
force
:
true
})
mkdirSync
(
compileRoot
,
{
recursive
:
true
})
console
.
log
(
"Compiling workspace startup smoke with local TypeScript"
)
execFileSync
(
"corepack"
,
[
"pnpm"
,
"--dir"
,
desktopAppRoot
,
"exec"
,
"tsc"
,
"--module"
,
"ES2022"
,
"--moduleResolution"
,
"node"
,
"--target"
,
"ES2022"
,
"--lib"
,
"ES2022"
,
"--types"
,
"node"
,
"--esModuleInterop"
,
"--allowSyntheticDefaultImports"
,
"--skipLibCheck"
,
"--outDir"
,
compileRoot
,
sourcePath
,
],
{
cwd
:
repoRoot
,
stdio
:
"inherit"
,
})
if
(
!
existsSync
(
entryPath
))
{
throw
new
Error
(
`Workspace startup smoke entry was not emitted:
${
entryPath
}
`
)
}
writeUtf8File
(
compilePackagePath
,
'{"type":"module"}'
)
console
.
log
(
"Running workspace startup smoke"
)
execFileSync
(
"node"
,
[
entryPath
,
resultPath
],
{
cwd
:
repoRoot
,
stdio
:
"inherit"
,
})
if
(
!
existsSync
(
resultPath
))
{
throw
new
Error
(
`Workspace startup smoke did not produce a result file:
${
resultPath
}
`
)
}
package.json
View file @
43eb29a5
...
...
@@ -19,6 +19,7 @@
"smoke:mac:package"
:
"node build/scripts/mac-package-smoke.mjs"
,
"smoke:mac:workspace-entry"
:
"node build/scripts/mac-workspace-entry-smoke.mjs"
,
"smoke:mac:workspace-service"
:
"node build/scripts/mac-workspace-service-smoke.mjs"
,
"smoke:mac:workspace-startup"
:
"node build/scripts/mac-workspace-startup-smoke.mjs"
,
"smoke:bundled-runtime"
:
"powershell -ExecutionPolicy Bypass -File build/scripts/bundled-runtime-smoke.ps1"
,
"smoke:workspace-entry"
:
"powershell -ExecutionPolicy Bypass -File build/scripts/workspace-entry-smoke.ps1"
,
"smoke:cloud-bundle"
:
"powershell -ExecutionPolicy Bypass -File build/scripts/cloud-bundle-smoke.ps1"
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment