-
Notifications
You must be signed in to change notification settings - Fork 231
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
Comments
<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. |
<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. |
<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). |
<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. |
<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
The text was updated successfully, but these errors were encountered: