Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit 072502a

Browse files
ci: use pwsh to make Windows packages instead of bash
Signed-off-by: leo <longshuang@msn.cn>
1 parent 0acff99 commit 072502a

File tree

3 files changed

+6
-18
lines changed

3 files changed

+6
-18
lines changed

‎.github/workflows/package.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@ jobs:
2222
name: sourcegit.${{ matrix.runtime }}
2323
path: build/SourceGit
2424
- name: Package
25-
shell: bash
25+
shell: pwsh
2626
env:
2727
VERSION: ${{ inputs.version }}
2828
RUNTIME: ${{ matrix.runtime }}
29-
run: ./build/scripts/package.windows.sh
29+
run: ./build/scripts/package.win.ps1
3030
- name: Upload package artifact
3131
uses: actions/upload-artifact@v4
3232
with:

‎build/scripts/package.win.ps1

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
Get-ChildItem build\SourceGit
2+
Remove-Item -Path build\SourceGit\*.pdb -Force
3+
Compress-Archive -Path build\SourceGit -DestinationPath "sourcegit_${env:VERSION}.${env:RUNTIME}.zip" -Force
4+
Get-ChildItem

‎build/scripts/package.windows.sh

Lines changed: 0 additions & 16 deletions
This file was deleted.

0 commit comments

Comments
(0)

AltStyle によって変換されたページ (->オリジナル) /