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

Build temporary files in case stay after Build Cancel, need cleanup #51

Open
hsandt opened this issue May 11, 2022 · 0 comments
Open

Build temporary files in case stay after Build Cancel, need cleanup #51

hsandt opened this issue May 11, 2022 · 0 comments

Comments

@hsandt
Copy link

hsandt commented May 11, 2022

When cancelling a Build, the Temporary-Build folder and its link.xml and meta files remain. This is because BuildHelper.cs PackagesLinkXmlExtractor.OnPostprocessBuild is not called.

I found a way to plug build cancel events on https://answers.unity.com/questions/1724656/how-to-get-a-callback-when-build-was-canceled.html

Could you try to implement this? It looks like checking the build result is not that easy, so instead of clearing files in some extra event only if build was cancelled, maybe just move the content of OnPostprocessBuild to the custom cleanup method called in the finally block, as to centralize cleanup.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant