cocktailpeanut 1 개월 전
부모
커밋
7509adeb3c
2개의 변경된 파일11개의 추가작업 그리고 36개의 파일을 삭제
  1. 9 34
      .github/workflows/build.yml
  2. 2 2
      package.json

+ 9 - 34
.github/workflows/build.yml

@@ -4,6 +4,7 @@ on: push
 #on: workflow_dispatch
 
 jobs:
+
   create-release:
     runs-on: ubuntu-latest
     permissions:
@@ -27,14 +28,12 @@ jobs:
           gh release create "v$PACKAGE_VERSION" --draft \
             --title "v$PACKAGE_VERSION" \
             --notes "Pinokio version $PACKAGE_VERSION."
-  windows:
-    if: false
 
+  windows:
     needs: "create-release"
     runs-on: windows-latest
     permissions:
       contents: write
-
     steps:
       - name: Check out Git repository
         uses: actions/checkout@v1
@@ -48,8 +47,6 @@ jobs:
         id: electron-builder
         uses: samuelmeuli/action-electron-builder@v1.6.0
         with:
-          # GitHub token, automatically provided to the action
-          # (No need to define this secret in the repo settings)
           github_token: ${{ secrets.github_token }}
 
           # If the commit is tagged with a version (e.g. "v1.0.0"),
@@ -79,6 +76,13 @@ jobs:
           parameters: |
             version: ${{ toJSON(github.ref_name) }}
 
+      - name: Get package.json version
+        id: get_version
+        shell: bash
+        run: |
+          PACKAGE_VERSION=$(node -p "require('./package.json').version")
+          echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
+
       - name: Publish GitHub Release with gh
         shell: bash
         env:
@@ -116,21 +120,6 @@ jobs:
           #release: ${{ startsWith(github.ref, 'refs/tags/v') }}
           release: true
 
-#      # Release the macOS and Linux binaries
-#      - name: Get package.json version
-#        id: get_version
-#        shell: bash
-#        run: |
-#          PACKAGE_VERSION=$(node -p "require('./package.json').version")
-#          echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
-#
-#      - name: Publish GitHub Release (Mac)
-#        shell: bash
-#        env:
-#          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-#        run: |
-#          gh release upload "v$PACKAGE_VERSION" dist-darwin/*.* --clobber
-
   linux:
     needs: "create-release"
     runs-on: ubuntu-latest
@@ -157,17 +146,3 @@ jobs:
           # release the app after building
           #release: ${{ startsWith(github.ref, 'refs/tags/v') }}
           release: true
-
-#      - name: Get package.json version
-#        id: get_version
-#        shell: bash
-#        run: |
-#          PACKAGE_VERSION=$(node -p "require('./package.json').version")
-#          echo "PACKAGE_VERSION=$PACKAGE_VERSION" >> $GITHUB_ENV
-#
-#      - name: Publish GitHub Release (Linux)
-#        shell: bash
-#        env:
-#          GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
-#        run: |
-#          gh release upload "v$PACKAGE_VERSION" dist-linux/*.* --clobber

+ 2 - 2
package.json

@@ -1,7 +1,7 @@
 {
   "name": "Pinokio",
   "private": true,
-  "version": "3.19.120",
+  "version": "3.19.121",
   "homepage": "https://pinokio.co",
   "description": "pinokio",
   "main": "main.js",
@@ -122,7 +122,7 @@
   "dependencies": {
     "electron-store": "^8.1.0",
     "electron-window-state": "^5.0.3",
-    "pinokiod": "^3.19.120"
+    "pinokiod": "^3.19.121"
   },
   "devDependencies": {
     "@electron/rebuild": "3.2.10",