This is an automated email from the ASF dual-hosted git repository.
janpio pushed a commit to branch janpio-remove_pre_package_hook
in repository https://gitbox.apache.org/repos/asf/cordova-docs.git
The following commit(s) were added to refs/heads/janpio-remove_pre_package_hook
by this push:
new f782af7 also fix strange example naming
f782af7 is described below
commit f782af75e6efc5ceac0034b8fbabf9f7b897c14d
Author: Jan Piotrowski <[email protected]>
AuthorDate: Sun Feb 17 16:51:44 2019 +0100
also fix strange example naming
---
www/docs/en/dev/guide/appdev/hooks/index.md | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/www/docs/en/dev/guide/appdev/hooks/index.md
b/www/docs/en/dev/guide/appdev/hooks/index.md
index 1bf9b20..1eee556 100644
--- a/www/docs/en/dev/guide/appdev/hooks/index.md
+++ b/www/docs/en/dev/guide/appdev/hooks/index.md
@@ -204,9 +204,9 @@ Hooks could be defined in project's `config.xml` using
`<hook>` elements, for ex
<hook type="before_plugin_install" src="scripts/appBeforePluginInstall.js" />
<platform name="android">
- <hook type="before_build" src="scripts/wp8/appAndroidBeforeBuild.bat" />
- <hook type="before_build" src="scripts/wp8/appAndroidBeforeBuild.js" />
- <hook type="before_plugin_install"
src="scripts/wp8/appWP8BeforePluginInstall.js" />
+ <hook type="before_build" src="scripts/android/appAndroidBeforeBuild.bat"
/>
+ <hook type="before_build" src="scripts/android/appAndroidBeforeBuild.js" />
+ <hook type="before_plugin_install"
src="scripts/android/appAndroidBeforePluginInstall.js" />
...
</platform>
@@ -295,6 +295,7 @@ after_build
```
## Script Interface
+
### Windows Quirks
If you are working on Windows, and in case your hook
(Javascript/Non-Javascript)scripts aren't bat files (which is recommended, if
you want your scripts to work in non-Windows operating systems) Cordova CLI
will expect a shebang line as the first line for it to know the interpreter it
needs to use to launch the script. The shebang line should match the following
example:
---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]