Fix package task for Windows

This commit is contained in:
Evan Simkowitz 2024-08-12 23:37:08 -07:00
parent 9e1460b9e1
commit 01d788b780
No known key found for this signature in database
GPG Key ID: 5041D45BF5DCE80B

View File

@ -9,6 +9,7 @@ vars:
VERSION:
sh: node version.cjs
RM: '{{if eq OS "windows"}}powershell Remove-Item{{else}}rm{{end}}'
RMRF: '{{if eq OS "windows"}}powershell Remove-Item -Force -Recurse{{else}}rm -rf{{end}}'
DATE: '{{if eq OS "windows"}}powershell date -UFormat{{else}}date{{end}}'
tasks:
@ -34,7 +35,7 @@ tasks:
package:
desc: Package the application for the current platform.
cmds:
- cmd: rm -rf make
- cmd: '{{.RMRF}} "make"'
ignore_error: true
- yarn build:prod && yarn electron-builder -c electron-builder.config.cjs -p never
deps:
@ -93,7 +94,7 @@ tasks:
build:wsh:
desc: Build the wsh component for all possible targets.
cmds:
- cmd: rm dist/bin/wsh*
- cmd: '{{.RM}} "dist/bin/wsh*"'
ignore_error: true
- task: build:wsh:internal
vars: