diff --git a/.github/workflows/build.yml b/.github/workflows/build.yml index f4a5e8c..e43ea2b 100644 --- a/.github/workflows/build.yml +++ b/.github/workflows/build.yml @@ -191,6 +191,7 @@ jobs: run: | pnpm install pnpm add @mihomo-party/sysproxy-darwin-${{ matrix.arch }} + pnpm add -D electron@32.2.0 pnpm prepare --${{ matrix.arch }} - name: Build env: diff --git a/electron-builder.yml b/electron-builder.yml index 643574e..808d360 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -39,6 +39,7 @@ nsis: mac: target: - pkg + minimumSystemVersion: '10.15' entitlementsInherit: build/entitlements.mac.plist extendInfo: - NSCameraUsageDescription: Application requests access to the device's camera. @@ -47,6 +48,9 @@ mac: - NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder. notarize: false artifactName: ${name}-macos-${version}-${arch}.${ext} +pkg: + allowAnywhere: false + allowCurrentUserHome: false linux: desktop: Name: Mihomo Party diff --git a/package.json b/package.json index c6f4e93..7981cd2 100644 --- a/package.json +++ b/package.json @@ -55,10 +55,10 @@ "cron-validator": "^1.3.1", "driver.js": "^1.3.1", "electron": "^33.0.0", - "electron-builder": "25.0.4", + "electron-builder": "=25.0.4", "electron-vite": "^2.3.0", "electron-window-state": "^5.0.3", - "eslint": "^8.57.1", + "eslint": "=8.57.1", "eslint-plugin-react": "^7.37.1", "form-data": "^4.0.1", "framer-motion": "^11.11.8", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index b502733..4a47b41 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -100,7 +100,7 @@ importers: specifier: ^33.0.0 version: 33.0.0 electron-builder: - specifier: 25.0.4 + specifier: '=25.0.4' version: 25.0.4(electron-builder-squirrel-windows@25.0.4) electron-vite: specifier: ^2.3.0 @@ -109,7 +109,7 @@ importers: specifier: ^5.0.3 version: 5.0.3 eslint: - specifier: ^8.57.1 + specifier: '=8.57.1' version: 8.57.1 eslint-plugin-react: specifier: ^7.37.1