Skip to content

Commit c1fe7b1

Browse files
committed
electron:winquickdev
1 parent 91e397c commit c1fe7b1

1 file changed

Lines changed: 29 additions & 0 deletions

File tree

Taskfile.yml

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,17 @@ tasks:
5454
WCLOUD_ENDPOINT: "https://api-dev.waveterm.dev/central"
5555
WCLOUD_WS_ENDPOINT: "wss://wsapi-dev.waveterm.dev/"
5656

57+
electron:winquickdev:
58+
desc: Run the Electron application via the Vite dev server (quick dev - Windows amd64 only, no generate, no wsh).
59+
cmd: npm run dev
60+
deps:
61+
- npm:install
62+
- build:backend:quickdev:windows
63+
env:
64+
WAVETERM_ENVFILE: "{{.ROOT_DIR}}/.env"
65+
WCLOUD_ENDPOINT: "https://api-dev.waveterm.dev/central"
66+
WCLOUD_WS_ENDPOINT: "wss://wsapi-dev.waveterm.dev/"
67+
5768
docs:npm:install:
5869
desc: Runs `npm install` in docs directory
5970
internal: true
@@ -186,6 +197,24 @@ tasks:
186197
generates:
187198
- dist/bin/wavesrv.*
188199

200+
build:backend:quickdev:windows:
201+
desc: Build only the wavesrv component for quickdev (Windows amd64 only, no generate, no wsh).
202+
platforms: [windows]
203+
cmds:
204+
- task: build:server:internal
205+
vars:
206+
ARCHS: amd64
207+
deps:
208+
- go:mod:tidy
209+
sources:
210+
- "cmd/server/*.go"
211+
- "pkg/**/*.go"
212+
- "pkg/**/*.json"
213+
- "pkg/**/*.sh"
214+
- "tsunami/**/*.go"
215+
generates:
216+
- dist/bin/wavesrv.x64.exe
217+
189218
build:server:windows:
190219
desc: Build the wavesrv component for Windows platforms (only generates artifacts for the current architecture).
191220
platforms: [windows]

0 commit comments

Comments
 (0)