File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1111
1212jobs :
1313 deploy :
14- runs-on : ubuntu -latest
14+ runs-on : windows -latest
1515
1616 steps :
1717 - name : Checkout code
@@ -29,16 +29,14 @@ jobs:
2929 # 读取并执行打包命令
3030 - name : Build project
3131 run : |
32- COMMAND=$(cat facebook/packaging_script/packaging.text)
33- # 替换分号为冒号以适配Linux系统
34- COMMAND=$(echo "$COMMAND" | sed 's/;/:/g')
35- eval $COMMAND
32+ $command = Get-Content -Path "facebook\packaging_script\packaging.text"
33+ Invoke-Expression $command
3634
3735 - name : Create release folder and zip executable
3836 run : |
39- mkdir -p release
40- apt-get install zip
41- zip release/FBreptilever.zip dist/ FBreptilever.exe
37+ New-Item -ItemType Directory -Force -Path release\
38+ # 将 FBrereptilever.exe 压缩为 ZIP 文件
39+ Compress-Archive -Path " dist\ FBreptilever.exe" -DestinationPath "release\FBreptilever.zip"
4240
4341 - name : Upload to server via FTP
4442 uses : SamKirkland/FTP-Deploy-Action@v4.3.6
You can’t perform that action at this time.
0 commit comments