Browse Source

ci: disable electron-rebuild temporarily

Tienson Qin 4 years ago
parent
commit
b339090d81
3 changed files with 8 additions and 15 deletions
  1. 6 6
      .github/workflows/build-desktop-release.yml
  2. 0 5
      gulpfile.js
  3. 2 4
      resources/package.json

+ 6 - 6
.github/workflows/build-desktop-release.yml

@@ -276,12 +276,12 @@ jobs:
           p12-file-base64: ${{ secrets.APPLE_CERTIFICATES_P12 }}
           p12-password: ${{ secrets.APPLE_CERTIFICATES_P12_PASSWORD }}
 
-      # - name: Cache Node Modules
-      #   uses: actions/cache@v2
-      #   with:
-      #     path: |
-      #       **/node_modules
-      #     key: ${{ runner.os }}-node-modules
+      - name: Cache Node Modules
+        uses: actions/cache@v2
+        with:
+          path: |
+            **/node_modules
+          key: ${{ runner.os }}-node-modules
 
       - name: Build/Release Electron App
         run: yarn install && yarn electron:make-macos-arm64

+ 0 - 5
gulpfile.js

@@ -102,11 +102,6 @@ exports.electronMaker = async () => {
     })
   }
 
-  cp.execSync('yarn rebuild:better-sqlite3', {
-    cwd: outputPath,
-    stdio: 'inherit'
-  })
-
   cp.execSync('yarn electron:make', {
     cwd: outputPath,
     stdio: 'inherit'

+ 2 - 4
resources/package.json

@@ -40,8 +40,6 @@
     "@electron-forge/maker-zip": "^6.0.0-beta.57",
     "electron": "^13.4.0",
     "electron-builder": "^22.11.7",
-    "electron-forge-maker-appimage": "trusktr/electron-forge-maker-appimage#patch-1",
-    "electron-rebuild": "^3.2.3"
-  },
-  "resolutions": {  "**/node-abi": "^3.2.0" }
+    "electron-forge-maker-appimage": "trusktr/electron-forge-maker-appimage#patch-1"
+  }
 }