Skip to content
This repository was archived by the owner on May 6, 2023. It is now read-only.
This repository was archived by the owner on May 6, 2023. It is now read-only.

Build Specific Task Support #4

@darkplayground

Description

@darkplayground

I need to run an image optimization script on the renpy game source but It needs to only run when building for android. I looked at the docs for custom tasks but I didn't see any obvious way to run build-specific tasks. Ideally I would be able to run the android build last (assuming multiple builds were chosen in the config) and create a custom task that would run right before the android build step that runs the image optimization script on the source. That way the Mac/pc builds have the full size assets and the android build has the smaller assets. Since I'm running this in CI, it doesn't matter if any changes are made to the images during the process as they are thrown away at the end of the pipeline build.

I thought about potentially running a task to copy the source files to another directory and do the image covert there to leave the original ones available for the Mac/pc build but there doesn't appear to be any way to direct a specific build type to a specific folder anyway so that wouldn't work. It seems like the custom build tasks are an all-or-nothing type system.

Is there any way to achieve what I want with this tool?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions