Skip to content
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

Tools.json CallList needs feature to skip when target exists #36

Open
xezon opened this issue Aug 9, 2023 · 0 comments
Open

Tools.json CallList needs feature to skip when target exists #36

xezon opened this issue Aug 9, 2023 · 0 comments
Labels
enhancement New feature or request

Comments

@xezon
Copy link
Contributor

xezon commented Aug 9, 2023

Tools.json CallList needs feature to skip when target exists.

With current setup it will skip installing upgraded plugin:

"autoDeleteAfterInstall": true,
"skipIfRunnableExists": true

But it needs to skip install in a different way instead:

"callList": [
    {
        "skipIfTargetAlreadyExisted": true,
        "call": "{TOOLS_DIR}/blender-3.4.1-windows-x64/blender.exe",
        "callArgs": {
            "--background": "",
            "--python-expr": "import bpy; import os; fp=os.path.normpath('{THIS_DIR}/{TOOLS_DIR}/io_mesh_w3d.zip'); bpy.ops.preferences.addon_install(overwrite=True, filepath=fp)"
        }
    }
]
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant