Skip to content

Commit

Permalink
only enable notarize when release
Browse files Browse the repository at this point in the history
  • Loading branch information
pompurin404 committed Dec 31, 2024
1 parent 07a1730 commit 1e3febd
Show file tree
Hide file tree
Showing 4 changed files with 3,148 additions and 3,410 deletions.
8 changes: 8 additions & 0 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -197,6 +197,10 @@ jobs:
pnpm install
pnpm add @mihomo-party/sysproxy-darwin-${{ matrix.arch }}
pnpm prepare --${{ matrix.arch }}
- name: Enable Notarization
if: startsWith(github.ref, 'refs/tags/v')
run: |
sed -i "" -e "s/notarize: false/notarize: true/" electron-builder.yml
- name: Build
env:
npm_config_arch: ${{ matrix.arch }}
Expand Down Expand Up @@ -252,6 +256,10 @@ jobs:
pnpm add @mihomo-party/sysproxy-darwin-${{ matrix.arch }}
pnpm add -D [email protected]
pnpm prepare --${{ matrix.arch }}
- name: Enable Notarization
if: startsWith(github.ref, 'refs/tags/v')
run: |
sed -i "" -e "s/notarize: false/notarize: true/" electron-builder.yml
- name: Build
env:
npm_config_arch: ${{ matrix.arch }}
Expand Down
2 changes: 1 addition & 1 deletion electron-builder.yml
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@ mac:
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
notarize: true
notarize: false
artifactName: ${name}-macos-${version}-${arch}.${ext}
pkg:
allowAnywhere: false
Expand Down
52 changes: 26 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,70 +25,70 @@
"dependencies": {
"@electron-toolkit/preload": "^3.0.1",
"@electron-toolkit/utils": "^3.0.0",
"@mihomo-party/sysproxy": "^2.0.4",
"@mihomo-party/sysproxy": "^2.0.7",
"@types/crypto-js": "^4.2.2",
"adm-zip": "^0.5.16",
"axios": "^1.7.7",
"chokidar": "^4.0.1",
"axios": "^1.7.9",
"chokidar": "^4.0.3",
"crypto-js": "^4.2.0",
"dayjs": "^1.11.13",
"express": "^5.0.1",
"iconv-lite": "^0.6.3",
"webdav": "^5.7.1",
"ws": "^8.18.0",
"yaml": "^2.6.0"
"yaml": "^2.7.0"
},
"devDependencies": {
"@dnd-kit/core": "^6.1.0",
"@dnd-kit/core": "^6.3.1",
"@dnd-kit/sortable": "^8.0.0",
"@dnd-kit/utilities": "^3.2.2",
"@electron-toolkit/eslint-config-prettier": "^2.0.0",
"@electron-toolkit/eslint-config-ts": "^2.0.0",
"@electron-toolkit/tsconfig": "^1.0.1",
"@nextui-org/react": "^2.4.8",
"@types/adm-zip": "^0.5.6",
"@nextui-org/react": "^2.6.10",
"@types/adm-zip": "^0.5.7",
"@types/express": "^5.0.0",
"@types/node": "^22.9.0",
"@types/node": "^22.10.2",
"@types/pubsub-js": "^1.8.6",
"@types/react": "^18.3.12",
"@types/react-dom": "^18.3.1",
"@types/react": "^18.3.18",
"@types/react-dom": "^18.3.5",
"@types/ws": "^8.5.13",
"@vitejs/plugin-react": "^4.3.3",
"@vitejs/plugin-react": "^4.3.4",
"autoprefixer": "^10.4.20",
"cron-validator": "^1.3.1",
"driver.js": "^1.3.1",
"electron": "^33.1.0",
"electron": "^33.2.1",
"electron-builder": "25.0.4",
"electron-vite": "^2.3.0",
"electron-window-state": "^5.0.3",
"eslint": "8.57.1",
"eslint-plugin-react": "^7.37.2",
"eslint-plugin-react": "^7.37.3",
"form-data": "^4.0.1",
"framer-motion": "11.5.6",
"lodash": "^4.17.21",
"meta-json-schema": "^1.18.9",
"meta-json-schema": "^1.19.0",
"monaco-yaml": "^5.2.3",
"nanoid": "^5.0.8",
"next-themes": "^0.4.3",
"postcss": "^8.4.47",
"prettier": "^3.3.3",
"nanoid": "^5.0.9",
"next-themes": "^0.4.4",
"postcss": "^8.4.49",
"prettier": "^3.4.2",
"pubsub-js": "^1.9.5",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"react-error-boundary": "^4.1.2",
"react-icons": "^5.3.0",
"react-icons": "^5.4.0",
"react-markdown": "^9.0.1",
"react-monaco-editor": "^0.56.2",
"react-router-dom": "^6.28.0",
"react-virtuoso": "^4.12.0",
"recharts": "^2.13.3",
"swr": "^2.2.5",
"tailwindcss": "^3.4.14",
"react-router-dom": "^6.28.1",
"react-virtuoso": "^4.12.3",
"recharts": "^2.15.0",
"swr": "^2.3.0",
"tailwindcss": "^3.4.17",
"tar": "^7.4.3",
"tsx": "^4.19.2",
"types-pac": "^1.0.3",
"typescript": "^5.6.3",
"vite": "^5.4.10",
"typescript": "^5.7.2",
"vite": "^5.4.11",
"vite-plugin-monaco-editor": "^1.1.0"
}
}
Loading

0 comments on commit 1e3febd

Please sign in to comment.