Files
daily_stock_analysis/scripts/run-desktop.ps1
Krane 2ac96674fe feat: Support electron desktop mode 新增Electron Windows桌面端打包配置 (#264)
* feat: Support `electron` desktop mode

* fix: remove package-lock.json
2026-02-06 20:25:17 +08:00

18 lines
353 B
PowerShell

$ErrorActionPreference = 'Stop'
Write-Host 'Building React UI (static assets)...'
Push-Location 'apps\dsa-web'
if (!(Test-Path 'node_modules')) {
npm install
}
npm run build
Pop-Location
Write-Host 'Starting Electron desktop (dev mode)...'
Push-Location 'apps\dsa-desktop'
if (!(Test-Path 'node_modules')) {
npm install
}
npm run dev
Pop-Location