Skip to content

bug: windows self_delete stuck #58

@erhant

Description

@erhant

Reported by muuge on Discord, its due to the way self_delete works in Windows: https://docs.rs/self-replace/latest/self_replace/fn.self_delete.html

The deletion on windows is delayed until the process shuts down. For updating instead of deleting, use self_replace instead. Not that you must only only call this function once during the execution of the program and you should exist quickly afterwards to make the delete take effect on Windows.

Perhaps there is an issue with the way launcher updates stuff?

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions