Questions tagged [post-install]

This tag is used for user-defined scripts that are executed by a package manager after the installation of a software package.

100 questions
2
votes
0 answers

Heroku build failing after tweaking postinstall script

Well I am working on pull request on Heroku project I am experiencing following issue with it: -----> Deleting 1 files matching .slugignore patterns. -----> Node.js app detected -----> Creating runtime environment …
PN10
  • 1,888
  • 3
  • 23
  • 34
2
votes
0 answers

cocoapods 0.38.2 post_install hook can't update my preprocessor macros?

I added a configuration (adhoc) for my Xcode Project(assume the name is Flurry) and I want to add a GCC_PREPROCESSOR_DEFINITIONS to that configuration like DEBUG.I did that by pro_install hook.I added the following code : post_install do…
NikoTung
  • 101
  • 1
  • 1
  • 10
2
votes
1 answer

running `ln -s` doesn't work in npm postinstall

I'm wanting to create a symlink in my package.json: "postinstall":"ln -s ../../dist foo/dist" however nothing appears. Command works fine in terminal. Maybe I should use a terminal emulator to cater for windows?
SuperUberDuper
  • 9,242
  • 9
  • 39
  • 72
2
votes
1 answer

Access Pods project directory in post install hook

In my podfile I am using a post install hook in my podfile to add build phase scripts to the Pods project targets and build each of the targets. The problem I am having is I that am using system "xcodebuild -target #{target.name} -sdk…
user
  • 115
  • 8
2
votes
1 answer

Change files owner in debian package

I have a debian package with static files for a web application with root:root owner. After installing this package I need to change owner of all files for tomcat:tomcat, for example. I've read that this could be done by postinst script. However I…
Taras Velykyy
  • 1,781
  • 1
  • 16
  • 30
2
votes
1 answer

Symfony2 Composer post-install-cmd

I need to install an symfony2 bundle over the composer and do some stuff after the install process. So for the "stuff" after the install i add one line to the "post-install-cmd" in the composer.json…
Zero
  • 554
  • 9
  • 22
2
votes
3 answers

CMAKE/CPACK:I want to the deb executes a bash script after installed, but it doesn't work

I build a debian package with cmake/cpack. I want the deb execute a bash script after I install the deb. I install the deb use sudo dpkg -i my.deb . If I install the deb like that, the installed program's user and group is root. so I want the deb…
George
  • 41
  • 1
  • 5
2
votes
0 answers

Mac installers with pkgbuild: Do not execute preinstall and postinstall script in case of a downgrade

I made a package with pkgbuild. In info.plist, BundleIsVersionChecked is set to true. My package contains a preinstall and postinstall script in the scripts folder. A downgrade of my application bundle is indeed prevented. But the preinstall…
1
vote
1 answer

Magento: Bundle items added but on reload they are empty

I go in and add items to a category for a bundled item. It seems it does it, and then opening again the category is empty. How to trace this error? Steps to reproduce: Edit item - Bundle tab - Add Selected Product(s) to Option Click on "Save and…
Meetai.com
  • 6,622
  • 3
  • 31
  • 38
1
vote
0 answers

npm 8.19 (node 18) not running prepare or postinstall scripts from packages

I have a custom package with a postinstall script, this script used to be run automatically when using npm install in the applications that required the package. We recently updated this package from using Angular 7 to Angular 15. In doing this we…
valepu
  • 3,136
  • 7
  • 36
  • 67
1
vote
0 answers

In which directory does npm postinstall run?

I am running npm install infojunkie/musicxml-mma#npm-install. That module includes a postinstall script that generates a config file which should contain the absolute path of the installed module. The postinstall shell script uses $(pwd) to find the…
infojunkie
  • 1,057
  • 2
  • 12
  • 24
1
vote
0 answers

How to get Nuxt 3 postinstall hooks log to stderr instead of /tmp/.../build.log in GitHub Actions?

I'm currently facing build issues that only occur in CI and not locally. However, the logs are hidden and instead stored in build.log files under /tmp/ ➤ YN0009: │ demo-app-297038@workspace:apps/demo-app couldn't be built successfully (exit code…
Marian Klühspies
  • 15,824
  • 16
  • 93
  • 136
1
vote
2 answers

Npm install postinstall cannot find module

I've run into an issue with running npm install. It's not finding the postinstall script and builds the path to the script duplicating the path, removing the slashes on the second half (eg: C:\User\Me\Repo\UserMeRepoScript.js). The script file does…
ThatDeltaGuy
  • 11
  • 1
  • 3
1
vote
1 answer

Rollback on Error in PostInst Script in Debian Installer

For a Debian installer script, if there is an error within the postinst script or the user uses Ctrl+C to kill the process, is it possible to have the entire install be rolled back? It looks like even if I return a non zero exit code, it still…
rsjohnso
  • 103
  • 1
  • 3
1
vote
1 answer

npm postinstall script with published package

I just created my package and published it to artifact registry. This package has postinstall script that works if I do npm i inside package directory, even if there is no node_modules directory. Inside postinstall script I use patch-package from…
czlowiek488
  • 187
  • 2
  • 17