Skip to content

Add pre and post install hooks for Pub #69

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
DartBot opened this issue Jun 5, 2015 · 4 comments
Closed

Add pre and post install hooks for Pub #69

DartBot opened this issue Jun 5, 2015 · 4 comments
Labels
closed-duplicate Closed in favor of an existing report type-enhancement A request for a change that isn't a bug

Comments

@DartBot
Copy link

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/5479?v=3" align="left" width="96" height="96"hspace="10"> Issue by sethladd
Originally opened as dart-lang/sdk#4674


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

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/188?v=3" align="left" width="48" height="48"hspace="10"> Comment by nex3


Added this to the Later milestone.

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent


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

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/2311549?v=3" align="left" width="48" height="48"hspace="10"> Comment by mezoni


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

@DartBot
Copy link
Author

DartBot commented Jun 5, 2015

<img src="https://avatars.githubusercontent.com/u/46275?v=3" align="left" width="48" height="48"hspace="10"> Comment by munificent


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 #39.

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

1 participant