Fix desktop artifact CI packaging

This commit is contained in:
Brad Groux 2026-06-04 01:52:14 -07:00
parent 6b6dd234cd
commit 4d6fb59a83
2 changed files with 3 additions and 11 deletions

View file

@ -2,6 +2,7 @@
"name": "@veritas-kanban/desktop",
"version": "4.3.2",
"private": true,
"homepage": "https://github.com/BradGroux/veritas-kanban",
"description": "Veritas Kanban native desktop shell",
"author": "Brad Groux <brad@digitalmeld.io>",
"license": "MIT",

View file

@ -11,14 +11,11 @@ const stagingDir = path.join(desktopDir, '.desktop-release');
const serverStage = path.join(stagingDir, 'server');
const webStage = path.join(stagingDir, 'web');
function pnpmCommand() {
return process.platform === 'win32' ? 'pnpm.cmd' : 'pnpm';
}
function run(command, args) {
const result = spawnSync(command, args, {
cwd: rootDir,
encoding: 'utf8',
shell: process.platform === 'win32',
stdio: 'inherit',
});
@ -55,13 +52,7 @@ async function main() {
await rm(stagingDir, { recursive: true, force: true });
await mkdir(stagingDir, { recursive: true });
run(pnpmCommand(), [
'--filter',
'@veritas-kanban/server',
'deploy',
'--prod',
serverStage,
]);
run('pnpm', ['--filter', '@veritas-kanban/server', 'deploy', '--prod', serverStage]);
await pruneServerDeploy();
await mkdir(webStage, { recursive: true });