5ca88bfbb9
GitOrigin-RevId: 9f918d616c5321ad374ae6cb5ea89c9e04bf3e58
16 lines
690 B
Bash
16 lines
690 B
Bash
# Avoid using git to auto-bump the addon version
|
|
# DOCS https://github.com/sbidoul/whool/?tab=readme-ov-file#configuration
|
|
whool-post-version-strategy-hook() {
|
|
# DOCS https://stackoverflow.com/a/13864829/1468388
|
|
if [ -z ${WHOOL_POST_VERSION_STRATEGY_OVERRIDE+x} ]; then
|
|
echo Setting WHOOL_POST_VERSION_STRATEGY_OVERRIDE to none
|
|
export WHOOL_POST_VERSION_STRATEGY_OVERRIDE=none
|
|
fi
|
|
|
|
# Make sure you can import the built addon
|
|
for manifest in $(find -L . -name __manifest__.py); do
|
|
export pythonImportsCheck="$pythonImportsCheck odoo.addons.$(basename $(dirname $(realpath $manifest)))"
|
|
done
|
|
}
|
|
|
|
preBuildHooks+=(whool-post-version-strategy-hook)
|