Building with Deno #5253
-
Output of
|
Beta Was this translation helpful? Give feedback.
Replies: 2 comments 6 replies
-
Why do all of that in a post_install block? |
Beta Was this translation helpful? Give feedback.
-
In Homebrew, all of the installation tasks (including moving the files into the right place) should be completed in the You should move your post-install steps into the install block. For installing the final build products into the appropriate location, you can use methods such as You can see more about the |
Beta Was this translation helpful? Give feedback.
In Homebrew, all of the installation tasks (including moving the files into the right place) should be completed in the
install
block (this differs from some other package management systems like AUR or ports where there are distinct compile and package steps).You should move your post-install steps into the install block. For installing the final build products into the appropriate location, you can use methods such as
bin.install "foo/bar/baz"
to install the binary in<build temp dir>/foo/bar/baz"
as<install prefix>/bin/baz
.You can see more about the
install
method (and other general knowledge about writing formulae) in the Formula Cookbook.