Comments (9)
Same problem here. Worked great with macos-10.15
but fails to notarize using macos-latest
or macos-12
. And since macos-10.15
is now deprecated, I am no longer able to notarize my app using Github Actions.
from electron-builder-notarize.
UPDATE
Switching to authenticate with username and password (APPLE_ID
and APPLE_ID_PASSWORD
) instead of API_KEY
has resolved the issue for me. Updated my build.yml as follows:
env:
APPLE_ID: ${{ secrets.apple_id }}
APPLE_ID_PASSWORD: ${{ secrets.apple_id_password }}
where
APPLE_ID
String - The username of your apple developer account
APPLE_ID_PASSWORD
String - The app-specific password (not your Apple ID password)
from electron-builder-notarize.
I have exactly the same issue :(
Even by putting APPLE_ID
and APPLE_ID_PASSWORD
, I still have the issue.
from electron-builder-notarize.
I'm not sure which of these helped me, but this configuration signs my code and notarizes successfully
- name: Prepare for app notarization
run: |
mkdir -p ~/private_keys/
echo '${{ secrets.APPLE_API_KEY }}' > ~/private_keys/AuthKey_${{ secrets.APPLE_API_KEY_ID }}.p8
echo '${{ secrets.APPLECERT }}' | base64 -d > applecert.p12
- name: Building
env:
APPLEID: ${{ secrets.APPLEID }}
APPLEIDPASS: ${{ secrets.APPLEIDPASS }}
API_KEY_ID: ${{ secrets.APPLE_API_KEY_ID }}
API_KEY_ISSUER_ID: ${{ secrets.APPLE_API_KEY_ISSUER_ID }}
CSC_LINK: 'file://applecert.p12'
CSC_KEY_PASSWORD: ${{ secrets.APPLECERTPWD }}
from electron-builder-notarize.
Maybe the problem is not here - but I hope for help, because I can't find a solution yet. Thanks!
⨯ The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Error failedTask=build stackTrace=TypeError [ERR_INVALID_ARG_TYPE]: The "data" argument must be of type string or an instance of Buffer, TypedArray, or DataView. Received an instance of Error
@andyoknen the error handling part in the package is throwing this error. You are not able to see the actual error due to this.
electron-builder-notarize/index.js
Line 99 in f78f764
I'll submit a PR with the fix.
from electron-builder-notarize.
@juli1 thanks! Would love to have more information about what is going on!
from electron-builder-notarize.
@andyoknen do you still use samuelmeuli/action-electron-builder@v1
? Do you mind sharing your entire configuration?
Thanks,
from electron-builder-notarize.
@andyoknen do you still use
samuelmeuli/action-electron-builder@v1
? Do you mind sharing your entire configuration?
I'm sorry, I mixed up the workflow - in the example above, I use electron-builder to build. Here is my action to build the release now - it looks like everything is fine with it now. I think I fixed the notarization for a long time, but I don't remember exactly how :)
https://github.com/pocketnetteam/pocketnet.gui/blob/master/.github/workflows/build.release.yml
from electron-builder-notarize.
I think the issue can be closed - my question is exhausted
from electron-builder-notarize.
Related Issues (12)
- no such file or directory, open 'builder-effective-config.yaml' HOT 9
- Apple cannot check it for malicious software HOT 2
- Update to support new Xcode 13 notarytool HOT 2
- Issue with notarizing mac app
- is this possible to support .env as environment? HOT 5
- Fails to run when using an alpha version of electron-builder HOT 1
- How to enable notarytool HOT 3
- API key support HOT 1
- upgrade dependency to @electron/notarize
- Env variable name validation error
- If you run electron-builder from the vue-cli notarizing fails HOT 2
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from electron-builder-notarize.