replace cmd with pwsh(powershell)

This commit is contained in:
Tlntin
2023-03-08 11:50:24 +08:00
parent 75276595a5
commit f14bbc52b7
3 changed files with 3 additions and 1 deletions

View File

@@ -77,6 +77,7 @@ jobs:
- name: build for windows - name: build for windows
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
shell: pwsh
run: | run: |
npm run build:all-windows npm run build:all-windows

View File

@@ -74,6 +74,7 @@ jobs:
- name: build for windows - name: build for windows
if: matrix.os == 'windows-latest' if: matrix.os == 'windows-latest'
shell: pwsh
run: | run: |
npm run build:all-windows npm run build:all-windows

View File

@@ -36,7 +36,7 @@
"build": "npm run tauri build --release", "build": "npm run tauri build --release",
"build:mac": "npm run tauri build -- --target universal-apple-darwin", "build:mac": "npm run tauri build -- --target universal-apple-darwin",
"build:all-unix": "chmod +x ./script/build.sh && ./script/build.sh", "build:all-unix": "chmod +x ./script/build.sh && ./script/build.sh",
"build:all-windows": "powershell .\\script\\build.ps1", "build:all-windows": "pwsh .\\script\\build.ps1",
"tauri": "tauri", "tauri": "tauri",
"cli": "rollup -c rollup.config.js --watch", "cli": "rollup -c rollup.config.js --watch",
"cli:build": "cross-env NODE_ENV=production rollup -c rollup.config.js", "cli:build": "cross-env NODE_ENV=production rollup -c rollup.config.js",