|
8 | 8 | BIN_DIR: "bin" |
9 | 9 | VERSION: |
10 | 10 | sh: node version.cjs |
11 | | - RMRF: '{{if eq OS "windows"}}powershell Remove-Item -Force -Recurse -ErrorAction SilentlyContinue{{else}}rm -rf{{end}}' |
12 | | - DATE: '{{if eq OS "windows"}}powershell Get-Date -UFormat{{else}}date{{end}}' |
| 11 | + RMRF: '{{if eq OS "windows"}}pwsh -NoProfile -Command Remove-Item -Force -Recurse -ErrorAction SilentlyContinue{{else}}rm -rf{{end}}' |
| 12 | + DATE: '{{if eq OS "windows"}}pwsh -NoProfile -Command Get-Date -UFormat{{else}}date{{end}}' |
13 | 13 | ARTIFACTS_BUCKET: waveterm-github-artifacts/staging-w2 |
14 | 14 | RELEASES_BUCKET: dl.waveterm.dev/releases-w2 |
15 | 15 | WINGET_PACKAGE: CommandLine.Wave |
@@ -223,7 +223,7 @@ tasks: |
223 | 223 | desc: Build the wavesrv component for Windows platforms (only generates artifacts for the current architecture). |
224 | 224 | platforms: [windows] |
225 | 225 | cmds: |
226 | | - - cmd: powershell -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path dist/bin/wavesrv*" |
| 226 | + - cmd: pwsh -NoProfile -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path dist/bin/wavesrv*" |
227 | 227 | ignore_error: true |
228 | 228 | - task: build:server:internal |
229 | 229 | vars: |
@@ -263,7 +263,7 @@ tasks: |
263 | 263 | - cmd: rm -f dist/bin/wsh* |
264 | 264 | platforms: [darwin, linux] |
265 | 265 | ignore_error: true |
266 | | - - cmd: powershell -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path dist/bin/wsh*" |
| 266 | + - cmd: pwsh -NoProfile -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path dist/bin/wsh*" |
267 | 267 | platforms: [windows] |
268 | 268 | ignore_error: true |
269 | 269 | - task: build:wsh:internal |
@@ -327,7 +327,7 @@ tasks: |
327 | 327 | - cmd: "{{.RMRF}} dist/tsunamiscaffold" |
328 | 328 | ignore_error: true |
329 | 329 | - task: copyfiles:'tsunami/frontend/scaffold':'dist/tsunamiscaffold' |
330 | | - - cmd: '{{if eq OS "windows"}}powershell Copy-Item -Path tsunami/templates/empty-gomod.tmpl -Destination dist/tsunamiscaffold/go.mod{{else}}cp tsunami/templates/empty-gomod.tmpl dist/tsunamiscaffold/go.mod{{end}}' |
| 330 | + - cmd: '{{if eq OS "windows"}}pwsh -NoProfile -Command Copy-Item -Path tsunami/templates/empty-gomod.tmpl -Destination dist/tsunamiscaffold/go.mod{{else}}cp tsunami/templates/empty-gomod.tmpl dist/tsunamiscaffold/go.mod{{end}}' |
331 | 331 | deps: |
332 | 332 | - tsunami:scaffold |
333 | 333 | sources: |
@@ -486,7 +486,7 @@ tasks: |
486 | 486 | copyfiles:*:*: |
487 | 487 | desc: Recursively copy directory and its contents. |
488 | 488 | internal: true |
489 | | - cmd: '{{if eq OS "windows"}}powershell Copy-Item -Recurse -Force -Path {{index .MATCH 0}} -Destination {{index .MATCH 1}}{{else}}mkdir -p "$(dirname {{index .MATCH 1}})" && cp -r {{index .MATCH 0}} {{index .MATCH 1}}{{end}}' |
| 489 | + cmd: '{{if eq OS "windows"}}pwsh -NoProfile -Command Copy-Item -Recurse -Force -Path {{index .MATCH 0}} -Destination {{index .MATCH 1}}{{else}}mkdir -p "$(dirname {{index .MATCH 1}})" && cp -r {{index .MATCH 0}} {{index .MATCH 1}}{{end}}' |
490 | 490 |
|
491 | 491 | clean: |
492 | 492 | desc: clean make/dist directories |
@@ -539,7 +539,7 @@ tasks: |
539 | 539 | - cmd: rm -f package.json |
540 | 540 | platforms: [darwin, linux] |
541 | 541 | ignore_error: true |
542 | | - - cmd: powershell -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path package.json" |
| 542 | + - cmd: pwsh -NoProfile -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path package.json" |
543 | 543 | platforms: [windows] |
544 | 544 | ignore_error: true |
545 | 545 | - npm --no-workspaces init -y --init-license Apache-2.0 |
@@ -585,26 +585,26 @@ tasks: |
585 | 585 | cmds: |
586 | 586 | - cmd: "{{.RMRF}} scaffold" |
587 | 587 | ignore_error: true |
588 | | - - powershell New-Item -ItemType Directory -Force -Path scaffold |
589 | | - - powershell Copy-Item -Path ../templates/package.json.tmpl -Destination scaffold/package.json |
590 | | - - powershell -Command "Set-Location scaffold; npm install" |
591 | | - - powershell Move-Item -Path scaffold/node_modules -Destination scaffold/nm |
592 | | - - powershell Copy-Item -Recurse -Force -Path dist -Destination scaffold/ |
593 | | - - powershell New-Item -ItemType Directory -Force -Path scaffold/dist/tw |
594 | | - - powershell Copy-Item -Path '../templates/*.go.tmpl' -Destination scaffold/ |
595 | | - - powershell Copy-Item -Path ../templates/tailwind.css -Destination scaffold/ |
596 | | - - powershell Copy-Item -Path ../templates/gitignore.tmpl -Destination scaffold/.gitignore |
597 | | - - powershell Copy-Item -Path 'src/element/*.tsx' -Destination scaffold/dist/tw/ |
598 | | - - powershell Copy-Item -Path '../ui/*.go' -Destination scaffold/dist/tw/ |
599 | | - - powershell Copy-Item -Path ../engine/errcomponent.go -Destination scaffold/dist/tw/ |
| 588 | + - pwsh -NoProfile -Command New-Item -ItemType Directory -Force -Path scaffold |
| 589 | + - pwsh -NoProfile -Command Copy-Item -Path ../templates/package.json.tmpl -Destination scaffold/package.json |
| 590 | + - pwsh -NoProfile -Command "Set-Location scaffold; npm install" |
| 591 | + - pwsh -NoProfile -Command Move-Item -Path scaffold/node_modules -Destination scaffold/nm |
| 592 | + - pwsh -NoProfile -Command Copy-Item -Recurse -Force -Path dist -Destination scaffold/ |
| 593 | + - pwsh -NoProfile -Command New-Item -ItemType Directory -Force -Path scaffold/dist/tw |
| 594 | + - pwsh -NoProfile -Command Copy-Item -Path '../templates/*.go.tmpl' -Destination scaffold/ |
| 595 | + - pwsh -NoProfile -Command Copy-Item -Path ../templates/tailwind.css -Destination scaffold/ |
| 596 | + - pwsh -NoProfile -Command Copy-Item -Path ../templates/gitignore.tmpl -Destination scaffold/.gitignore |
| 597 | + - pwsh -NoProfile -Command Copy-Item -Path 'src/element/*.tsx' -Destination scaffold/dist/tw/ |
| 598 | + - pwsh -NoProfile -Command Copy-Item -Path '../ui/*.go' -Destination scaffold/dist/tw/ |
| 599 | + - pwsh -NoProfile -Command Copy-Item -Path ../engine/errcomponent.go -Destination scaffold/dist/tw/ |
600 | 600 |
|
601 | 601 | tsunami:build: |
602 | 602 | desc: Build the tsunami binary. |
603 | 603 | cmds: |
604 | 604 | - cmd: rm -f bin/tsunami* |
605 | 605 | platforms: [darwin, linux] |
606 | 606 | ignore_error: true |
607 | | - - cmd: powershell -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path bin/tsunami*" |
| 607 | + - cmd: pwsh -NoProfile -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path bin/tsunami*" |
608 | 608 | platforms: [windows] |
609 | 609 | ignore_error: true |
610 | 610 | - mkdir -p bin |
|
0 commit comments