-
-
Notifications
You must be signed in to change notification settings - Fork 520
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Pre and Post Install Script in electron-fordge pkg maker Not working #3605
Comments
Faced the same issue. I have to manually build the pkg file using |
@duchunter Can you share your approach. How I can solve this issue ? |
Sure, after running |
@duchunter Thanks your approach works for me, while notarize pkg it shows invalid status Here what I found in notary log { when I notarize initial pkg I specify all credentials. And if I notarize the initial pkg it successfully notarize but since we are creating new pkg it show status invalid |
@arjunByldd01 Which notary tool did you use? Try this one:
And after 12 months of contacting Developer Programs Support, their answer is still "We are still pending a response from our teams". |
@duchunter Yes, I was using the same tool - Thanks for the support. |
I think this will fix it upstream electron/osx-sign#282 |
Pre-flight checklist
Electron Forge version
6.4
Electron version
26.6.10
Operating system
macOS 14 sonoma
Last known working Electron Forge version
6.4
Expected behavior
I've created an electron app and I'm packaging it using electron forge for Mac. I started creating .pkg files and I also created a shell script and added it to my packager config inside forge.config.js as follows
Inside my scripts folder I have my shell script as postinstall.sh The script works as expected when I run the file through terminal. But the script is not running after installation on the user's devices as expected of it.
Is there something I'm missing or doing wrong? Please help. I updated forge.config.js as mentioned on the electron-forge documentation but the scripts are still not running.
Actual behavior
The script shoould work when installing pkg
Additional information
My script is executable as well I run the chmod command to make it executable as mentioned here
No response
The text was updated successfully, but these errors were encountered: