Skip to content

Commit

Permalink
feat: update notarize to 2.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
yanguoyu committed Jun 29, 2023
1 parent 5203ea3 commit e7f9416
Show file tree
Hide file tree
Showing 4 changed files with 12 additions and 10 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/package_for_test.yml
Original file line number Diff line number Diff line change
Expand Up @@ -90,7 +90,7 @@ jobs:
- name: Install Lerna
run: yarn global add lerna

- name: Boostrap
- name: Bootstrap
run: |
yarn
env:
Expand Down
2 changes: 1 addition & 1 deletion packages/neuron-wallet/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@
"uuid": "8.3.2"
},
"devDependencies": {
"@electron/notarize": "1.2.4",
"@electron/notarize": "2.0.0",
"@nervosnetwork/ckb-types": "0.109.0",
"@types/archiver": "3.1.1",
"@types/async": "3.2.20",
Expand Down
10 changes: 6 additions & 4 deletions packages/neuron-wallet/scripts/notarize.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,9 +13,10 @@ exports.default = async function notarizing(context) {

const appleId = process.env.APPLE_ID;
const appleIdPassword = process.env.APPLE_ID_PASSWORD;
const teamId = process.env.TEAM_ID;

if (!appleId || !appleIdPassword) {
console.warn(`${appleId ? "Apple id password" : "Apple id"} is not found`)
if (!appleId || !appleIdPassword || !teamId) {
console.warn(`${appleId ? (appleIdPassword ? "Team id" : "Apple id password") : "Apple id"} is not found`)
process.exit(1)
}

Expand All @@ -27,8 +28,9 @@ exports.default = async function notarizing(context) {
await notarize({
appBundleId: 'com.nervos.neuron',
appPath: `${appOutDir}/${appName}.app`,
appleId: appleId,
appleIdPassword: appleIdPassword,
appleId,
appleIdPassword,
teamId,
})
console.info("Notarization finished")
} catch (err) {
Expand Down
8 changes: 4 additions & 4 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1650,10 +1650,10 @@
optionalDependencies:
global-agent "^3.0.0"

"@electron/notarize@1.2.4":
version "1.2.4"
resolved "https://registry.yarnpkg.com/@electron/notarize/-/notarize-1.2.4.tgz#a7d38773f4cad40df111a5edc64037e5d768ea1e"
integrity sha512-W5GQhJEosFNafewnS28d3bpQ37/s91CDWqxVchHfmv2dQSTWpOzNlUVQwYzC1ay5bChRV/A9BTL68yj0Pa+TSg==
"@electron/notarize@2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@electron/notarize/-/notarize-2.0.0.tgz#4df39e817264746aa9bd779e0091b6c441715b72"
integrity sha512-dqDpd2YCgl6PHJgXEuKGYH3+L4GIGV7ZbKYJjJv66ed+hVPxZA+GAL5JH8/hCnoyQa8WzJTzqd+qhiL5Oxr+SA==
dependencies:
debug "^4.1.1"
fs-extra "^9.0.1"
Expand Down

0 comments on commit e7f9416

Please sign in to comment.