-
Notifications
You must be signed in to change notification settings - Fork 1.7k
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
Comments
Added this to the Later milestone. |
Removed Type-Defect label. |
This comment was originally written by @mezoni Somehow, this is not moving (70 days). |
This issue has been moved to dart-lang/pub#69. |
For those following along, work on a feature that would support the spirit behind this request can be found here: dart: #50565 |
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: