question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Postinstall scripts not working

See original GitHub issue

I’m trying to include a postinstall script in my pkg but it doesn’t seem to work.

electron-osx-flat MyApp.app --identity="3rd Party Mac Developer Installer: BLAHBLAH LTD (******)" --scripts="./scripts/" --install="/Applications"

./scripts/postinstall

mkdir ~/test

I run the install and the ~/test folder is not there. Hoping this is a pebkac; what am I doing wrong?

Issue Analytics

  • State:closed
  • Created 7 years ago
  • Comments:14 (8 by maintainers)

github_iconTop GitHub Comments

1reaction
dancrncommented, May 25, 2017

postinstall runs as root so your directory gets created in /var/root on macOS.

1reaction
maleptcommented, Mar 12, 2017

Nope.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Postinstall script is not being executed · Issue #5476
I'm working on an monorepo project, with the help of yarn workspace and lerna . It seems that yarn will execute the postinstall...
Read more >
Issues in npm post-install script
There is some error in npm post-install script. My project is based on Linux but due to issues i have to run the...
Read more >
PostInstall script not running on MacOS
I have created a package installer for MacOS with "productbuild" command line and adding the postinstall script in the package through command.
Read more >
Scripts
If a dependency of the root package specifies its own scripts, Composer does not execute those additional scripts. Event names#. Composer fires the...
Read more >
Post install script not running
Hello, So I'm using FOG to deploy an Ubuntu image, of course the image I'm deploying is not 'syspreped', that means it already...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found