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:
parent
5b0fab8f76
commit
708e5659f5
3
.github/workflows/publish.yml
vendored
3
.github/workflows/publish.yml
vendored
@ -34,13 +34,12 @@ jobs:
|
|||||||
- name: Run build
|
- name: Run build
|
||||||
env:
|
env:
|
||||||
APPLE_ID: ${{ secrets.APPLE_ID }}
|
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 }}
|
APPLE_TEAM_ID: ${{ secrets.APPLE_TEAM_ID }}
|
||||||
CSC_LINK: ${{ secrets.CSC_LINK }}
|
CSC_LINK: ${{ secrets.CSC_LINK }}
|
||||||
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
CSC_KEY_PASSWORD: ${{ secrets.CSC_KEY_PASSWORD }}
|
||||||
CSC_IDENTITY_AUTO_DISCOVERY: true
|
CSC_IDENTITY_AUTO_DISCOVERY: true
|
||||||
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
GH_TOKEN: ${{ secrets.GH_TOKEN }}
|
||||||
APPLE_NOTARIZE: 1
|
|
||||||
run: |
|
run: |
|
||||||
yarn set version 1.22.18
|
yarn set version 1.22.18
|
||||||
yarn electron:build --mac --publish always
|
yarn electron:build --mac --publish always
|
||||||
|
@ -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,
|
|
||||||
});
|
|
||||||
};
|
|
@ -1,6 +1,5 @@
|
|||||||
productName: Frappe Books
|
productName: Frappe Books
|
||||||
appId: io.frappe.books
|
appId: io.frappe.books
|
||||||
afterSign: build/notarize.js
|
|
||||||
asarUnpack: '**/*.node'
|
asarUnpack: '**/*.node'
|
||||||
extraResources:
|
extraResources:
|
||||||
[
|
[
|
||||||
@ -11,7 +10,8 @@ mac:
|
|||||||
type: distribution
|
type: distribution
|
||||||
category: public.app-category.finance
|
category: public.app-category.finance
|
||||||
icon: build/icon.icns
|
icon: build/icon.icns
|
||||||
notarize: false
|
notarize:
|
||||||
|
appBundleId: io.frappe.books
|
||||||
hardenedRuntime: true
|
hardenedRuntime: true
|
||||||
gatekeeperAssess: false
|
gatekeeperAssess: false
|
||||||
darkModeSupport: false
|
darkModeSupport: false
|
||||||
|
@ -58,7 +58,6 @@
|
|||||||
"electron": "18.3.7",
|
"electron": "18.3.7",
|
||||||
"electron-builder": "24.0.0-alpha.12",
|
"electron-builder": "24.0.0-alpha.12",
|
||||||
"electron-devtools-installer": "^3.2.0",
|
"electron-devtools-installer": "^3.2.0",
|
||||||
"electron-notarize": "^1.1.1",
|
|
||||||
"electron-rebuild": "^3.2.9",
|
"electron-rebuild": "^3.2.9",
|
||||||
"electron-updater": "^5.2.1",
|
"electron-updater": "^5.2.1",
|
||||||
"eslint": "^7.32.0",
|
"eslint": "^7.32.0",
|
||||||
|
@ -5069,14 +5069,6 @@ electron-devtools-installer@^3.2.0:
|
|||||||
tslib "^2.1.0"
|
tslib "^2.1.0"
|
||||||
unzip-crx-3 "^0.2.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:
|
electron-publish@24.0.0-alpha.11:
|
||||||
version "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"
|
resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-24.0.0-alpha.11.tgz#dae4b6880ee457cb4a92f40c975b52d3d49482e8"
|
||||||
|
Loading…
Reference in New Issue
Block a user