Skip to content
This repository has been archived by the owner on Nov 1, 2020. It is now read-only.

Commit

Permalink
add notarize
Browse files Browse the repository at this point in the history
  • Loading branch information
mikkame committed May 15, 2020
1 parent c14b3d9 commit 161e880
Show file tree
Hide file tree
Showing 4 changed files with 29 additions and 1 deletion.
9 changes: 8 additions & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,16 @@ jobs:
name: artifact
- name: yarn install
run: yarn
- run: yarn version ${{ github.ref }}
- name: build app
run: yarn electron:build --publish never > /dev/null 2>&1
env:
CSC_LINK: ${{secrets.CSC_LINK}}
- name: notarize
run: node notarize.js
env:
APPLE_ID: ${{secrets.APPLE_ID}}
APPLE_PASSWORD: ${{secrets.APPLE_PASSWORD}}
- run: zip -r release.zip dist_electron/komado-san-*.dmg
- name: Get url to upload to release from artifact
id: get_url
Expand Down Expand Up @@ -86,12 +92,13 @@ jobs:
shell: bash
- name: yarn install
run: yarn
- run: yarn version ${{ github.ref }}
- name: build app
run: yarn electron:build --publish never

shell: bash
- name: pickup zip
run: 7z a -tzip release.zip dist_electron/wipe*.exe
run: 7z a -tzip release.zip dist_electron/komado*.exe
shell: bash
- name: Upload release asset
uses: actions/upload-release-asset@v1.0.1
Expand Down
12 changes: 12 additions & 0 deletions notarize.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
const path = require('path')
const { notarize } = require('electron-notarize')

// .appのパスを設定
const appPath = path.resolve(__dirname, './dist_electron/mac/komado-san.app')

notarize({
appBundleId:'me.mikka.komado-san',
appPath,
appleId: process.env.APPLE_ID,
appleIdPassword: process.env.APPLE_PASSWORD,
})
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"@vue/cli-service": "~4.3.0",
"babel-eslint": "^10.1.0",
"electron": "9.0.0-beta.22",
"electron-notarize": "^0.3.0",
"eslint": "^6.7.2",
"eslint-plugin-vue": "^6.2.2",
"vue-cli-plugin-electron-builder": "^2.0.0-beta.6",
Expand Down
8 changes: 8 additions & 0 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3496,6 +3496,14 @@ electron-builder@^22.2.0:
update-notifier "^4.1.0"
yargs "^15.3.1"

electron-notarize@^0.3.0:
version "0.3.0"
resolved "https://registry.yarnpkg.com/electron-notarize/-/electron-notarize-0.3.0.tgz#b93c606306eac558b250c78ff95273ddb9fedf0a"
integrity sha512-tuDw8H0gcDOalNLv6RM2CwGvUXU60MPGZRDEmd0ppX+yP5XqL8Ec2DuXyz9J7WQSA3aRCfzIgH8C5CAivDYWMw==
dependencies:
debug "^4.1.1"
fs-extra "^8.1.0"

electron-publish@22.6.0:
version "22.6.0"
resolved "https://registry.yarnpkg.com/electron-publish/-/electron-publish-22.6.0.tgz#11dca595cfe3c0fdbc364c28dbb8838a1c6ec799"
Expand Down

0 comments on commit 161e880

Please sign in to comment.