Skip to content

Add pre and post install hooks for Pub #4674

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

Closed
sethladd opened this issue Aug 23, 2012 · 6 comments
Closed

Add pre and post install hooks for Pub #4674

sethladd opened this issue Aug 23, 2012 · 6 comments
Labels
closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug

Comments

@sethladd
Copy link
Contributor

Request from the mailing list:

Pub manager feature request.
Add 'preinstall' and 'uninstall' sections into pubspec.yaml.
This can be useful when installing the packages with native extensions.
Example.
--pubspec.yaml
name: package_with_native_ext
preinstall: my_preinstall_script
-- eof

--my_preinstall_script.dart
main() {
  switch(Platform.operatingSystem) {
    case 'linux':
       copyBinaryFilesToPackageDirForCorrectWorkInLinux();
       break;
    // etc
  }
}
-- eof

@nex3
Copy link
Member

nex3 commented Aug 24, 2012

Added this to the Later milestone.

@munificent
Copy link
Member

Removed Type-Defect label.
Added Type-Enhancement label.

@DartBot
Copy link

DartBot commented Nov 5, 2012

This comment was originally written by @mezoni


Somehow, this is not moving (70 days).
It's elementary.
Really absolutely no options to start with something?

@munificent
Copy link
Member

Merging this with 3023 because at least in the description the use case here seems to be building native extensions.


Added Duplicate label.
Marked as being merged into #3023.

@DartBot
Copy link

DartBot commented Jun 5, 2015

This issue has been moved to dart-lang/pub#69.

@kevmoo kevmoo added type-enhancement A request for a change that isn't a bug and removed type-enhancement labels Mar 1, 2016
@sethladd
Copy link
Contributor Author

For those following along, work on a feature that would support the spirit behind this request can be found here:

dart: #50565
flutter: flutter/flutter#129757

This issue was closed.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug
Projects
None yet
Development

No branches or pull requests

5 participants