瀏覽代碼

fix for windows build

Thomas Buck 3 年之前
父節點
當前提交
dd4294fd73
共有 2 個檔案被更改,包括 9 行新增6 行删除
  1. 6
    5
      .github/workflows/build.yml
  2. 3
    1
      build_win.sh

+ 6
- 5
.github/workflows/build.yml 查看文件

@@ -45,8 +45,9 @@ jobs:
45 45
       run: |
46 46
         ./build_win.sh
47 47
       shell: bash
48
-    - name: Show build results
49
-      run: |
50
-        ls build/win
51
-        ls build/dist
52
-      shell: bash
48
+    - name: Archive build result artifacts
49
+      uses: actions/upload-artifact@v2
50
+      with:
51
+        name: octotray_win
52
+        path: |
53
+          ${{ github.workspace }}/build/dist/OctoTray_Win.zip

+ 3
- 1
build_win.sh 查看文件

@@ -10,6 +10,8 @@ cp dist/setup_win.py build/win/
10 10
 cd build/win
11 11
 python setup_win.py py2exe
12 12
 
13
+zip -r OctoTray_Win.zip dist/*
14
+
13 15
 cd ../..
14 16
 mkdir -p build/dist
15
-cp -r build/win/* build/dist/
17
+cp -r build/win/OctoTray_Win.zip build/dist/

Loading…
取消
儲存