|
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"}}powershell -NoProfile -NonInteractive Remove-Item -Force -Recurse -ErrorAction SilentlyContinue{{else}}rm -rf{{end}}' |
| 12 | + DATE: '{{if eq OS "windows"}}powershell -NoProfile -NonInteractive 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 |
@@ -239,7 +239,7 @@ tasks: |
239 | 239 | desc: Build the wavesrv component for Windows platforms (only generates artifacts for the current architecture). |
240 | 240 | platforms: [windows] |
241 | 241 | cmds: |
242 | | - - cmd: powershell -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path dist/bin/wavesrv*" |
| 242 | + - cmd: powershell -NoProfile -NonInteractive -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path dist/bin/wavesrv*" |
243 | 243 | ignore_error: true |
244 | 244 | - task: build:server:internal |
245 | 245 | vars: |
@@ -279,7 +279,7 @@ tasks: |
279 | 279 | - cmd: rm -f dist/bin/wsh* |
280 | 280 | platforms: [darwin, linux] |
281 | 281 | ignore_error: true |
282 | | - - cmd: powershell -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path dist/bin/wsh*" |
| 282 | + - cmd: powershell -NoProfile -NonInteractive -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path dist/bin/wsh*" |
283 | 283 | platforms: [windows] |
284 | 284 | ignore_error: true |
285 | 285 | - task: build:wsh:internal |
@@ -343,7 +343,7 @@ tasks: |
343 | 343 | - cmd: "{{.RMRF}} dist/tsunamiscaffold" |
344 | 344 | ignore_error: true |
345 | 345 | - task: copyfiles:'tsunami/frontend/scaffold':'dist/tsunamiscaffold' |
346 | | - - 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}}' |
| 346 | + - cmd: '{{if eq OS "windows"}}powershell -NoProfile -NonInteractive 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}}' |
347 | 347 | deps: |
348 | 348 | - tsunami:scaffold |
349 | 349 | sources: |
@@ -502,7 +502,7 @@ tasks: |
502 | 502 | copyfiles:*:*: |
503 | 503 | desc: Recursively copy directory and its contents. |
504 | 504 | internal: true |
505 | | - 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}}' |
| 505 | + cmd: '{{if eq OS "windows"}}powershell -NoProfile -NonInteractive 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}}' |
506 | 506 |
|
507 | 507 | clean: |
508 | 508 | desc: clean make/dist directories |
@@ -555,7 +555,7 @@ tasks: |
555 | 555 | - cmd: rm -f package.json |
556 | 556 | platforms: [darwin, linux] |
557 | 557 | ignore_error: true |
558 | | - - cmd: powershell -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path package.json" |
| 558 | + - cmd: powershell -NoProfile -NonInteractive -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path package.json" |
559 | 559 | platforms: [windows] |
560 | 560 | ignore_error: true |
561 | 561 | - npm --no-workspaces init -y --init-license Apache-2.0 |
@@ -601,26 +601,26 @@ tasks: |
601 | 601 | cmds: |
602 | 602 | - cmd: "{{.RMRF}} scaffold" |
603 | 603 | ignore_error: true |
604 | | - - powershell New-Item -ItemType Directory -Force -Path scaffold |
605 | | - - powershell Copy-Item -Path ../templates/package.json.tmpl -Destination scaffold/package.json |
606 | | - - powershell -Command "Set-Location scaffold; npm install" |
607 | | - - powershell Move-Item -Path scaffold/node_modules -Destination scaffold/nm |
608 | | - - powershell Copy-Item -Recurse -Force -Path dist -Destination scaffold/ |
609 | | - - powershell New-Item -ItemType Directory -Force -Path scaffold/dist/tw |
610 | | - - powershell Copy-Item -Path '../templates/*.go.tmpl' -Destination scaffold/ |
611 | | - - powershell Copy-Item -Path ../templates/tailwind.css -Destination scaffold/ |
612 | | - - powershell Copy-Item -Path ../templates/gitignore.tmpl -Destination scaffold/.gitignore |
613 | | - - powershell Copy-Item -Path 'src/element/*.tsx' -Destination scaffold/dist/tw/ |
614 | | - - powershell Copy-Item -Path '../ui/*.go' -Destination scaffold/dist/tw/ |
615 | | - - powershell Copy-Item -Path ../engine/errcomponent.go -Destination scaffold/dist/tw/ |
| 604 | + - powershell -NoProfile -NonInteractive New-Item -ItemType Directory -Force -Path scaffold |
| 605 | + - powershell -NoProfile -NonInteractive Copy-Item -Path ../templates/package.json.tmpl -Destination scaffold/package.json |
| 606 | + - powershell -NoProfile -NonInteractive -Command "Set-Location scaffold; npm install" |
| 607 | + - powershell -NoProfile -NonInteractive Move-Item -Path scaffold/node_modules -Destination scaffold/nm |
| 608 | + - powershell -NoProfile -NonInteractive Copy-Item -Recurse -Force -Path dist -Destination scaffold/ |
| 609 | + - powershell -NoProfile -NonInteractive New-Item -ItemType Directory -Force -Path scaffold/dist/tw |
| 610 | + - powershell -NoProfile -NonInteractive Copy-Item -Path '../templates/*.go.tmpl' -Destination scaffold/ |
| 611 | + - powershell -NoProfile -NonInteractive Copy-Item -Path ../templates/tailwind.css -Destination scaffold/ |
| 612 | + - powershell -NoProfile -NonInteractive Copy-Item -Path ../templates/gitignore.tmpl -Destination scaffold/.gitignore |
| 613 | + - powershell -NoProfile -NonInteractive Copy-Item -Path 'src/element/*.tsx' -Destination scaffold/dist/tw/ |
| 614 | + - powershell -NoProfile -NonInteractive Copy-Item -Path '../ui/*.go' -Destination scaffold/dist/tw/ |
| 615 | + - powershell -NoProfile -NonInteractive Copy-Item -Path ../engine/errcomponent.go -Destination scaffold/dist/tw/ |
616 | 616 |
|
617 | 617 | tsunami:build: |
618 | 618 | desc: Build the tsunami binary. |
619 | 619 | cmds: |
620 | 620 | - cmd: rm -f bin/tsunami* |
621 | 621 | platforms: [darwin, linux] |
622 | 622 | ignore_error: true |
623 | | - - cmd: powershell -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path bin/tsunami*" |
| 623 | + - cmd: powershell -NoProfile -NonInteractive -Command "Remove-Item -Force -ErrorAction SilentlyContinue -Path bin/tsunami*" |
624 | 624 | platforms: [windows] |
625 | 625 | ignore_error: true |
626 | 626 | - mkdir -p bin |
|
0 commit comments