2
0
mirror of https://github.com/frappe/books.git synced 2024-11-08 14:50:56 +00:00

chore: use inbuilt notarization

- remove notarization script
This commit is contained in:
18alantom 2023-02-16 13:47:53 +05:30 committed by Alan
parent 5b0fab8f76
commit 708e5659f5
5 changed files with 3 additions and 34 deletions

View File

@ -34,13 +34,12 @@ jobs:
- name: Run build
env:
APPLE_ID: ${{ secrets.APPLE_ID }}
APPLE_APP_PASSWORD: ${{ secrets.APPLE_APP_PASSWORD }}
APPLE_APP_SPECIFIC_PASSWORD: ${{ secrets.APPLE_APP_PASSWORD }}
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
CSC_LINK: ${{ secrets.CSC_LINK }}
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
CSC_IDENTITY_AUTO_DISCOVERY: true
GH_TOKEN: ${{ secrets.GH_TOKEN }}
APPLE_NOTARIZE: 1
run: |
yarn set version 1.22.18
yarn electron:build --mac --publish always

View File

@ -1,21 +0,0 @@
const { notarize } = require('electron-notarize');
exports.default = async (context) => {
const { electronPlatformName, appOutDir } = context;
if (
electronPlatformName !== 'darwin' ||
!parseInt(process.env.APPLE_NOTARIZE)
) {
return;
}
const appName = context.packager.appInfo.productFilename;
return await notarize({
appBundleId: 'io.frappe.books',
appPath: `${appOutDir}/${appName}.app`,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_APP_PASSWORD,
teamId: process.env.APPLE_TEAM_ID,
});
};

View File

@ -1,6 +1,5 @@
productName: Frappe Books
appId: io.frappe.books
afterSign: build/notarize.js
asarUnpack: '**/*.node'
extraResources:
[
@ -11,7 +10,8 @@ mac:
type: distribution
category: public.app-category.finance
icon: build/icon.icns
notarize: false
notarize:
appBundleId: io.frappe.books
hardenedRuntime: true
gatekeeperAssess: false
darkModeSupport: false

View File

@ -58,7 +58,6 @@
"electron": "18.3.7",
"electron-builder": "24.0.0-alpha.12",
"electron-devtools-installer": "^3.2.0",
"electron-notarize": "^1.1.1",
"electron-rebuild": "^3.2.9",
"electron-updater": "^5.2.1",
"eslint": "^7.32.0",

View File

@ -5069,14 +5069,6 @@ electron-devtools-installer@^3.2.0:
tslib "^2.1.0"
unzip-crx-3 "^0.2.0"
electron-notarize@^1.1.1:
version "1.1.1"
resolved "https://registry.yarnpkg.com/electron-notarize/-/electron-notarize-1.1.1.tgz#3ed274b36158c1beb1dbef14e7faf5927e028629"
integrity sha512-kufsnqh86CTX89AYNG3NCPoboqnku/+32RxeJ2+7A4Rbm4bbOx0Nc7XTy3/gAlBfpj9xPAxHfhZLOHgfi6cJVw==
dependencies:
debug "^4.1.1"
fs-extra "^9.0.1"
electron-publish@24.0.0-alpha.11:
version "24.0.0-alpha.11"
resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-24.0.0-alpha.11.tgz#dae4b6880ee457cb4a92f40c975b52d3d49482e8"