make RenameFile() on Windows also replace the file
RenameFile on linux uses rename() which will replace the destination file if it exists. MoveFileA doesn't replace so this is swapping it with MoveFileExA+MOVEFILE_REPLACE_EXISTING which will replace the destination.
accidentally made the pr on this repo instead my fork when trying to test github actions building the binary for testing. if the binary works correctly though then I'll keep the pr open
edit: it sucks that actions don't cache generated artifacts. that would be very useful if they did. wink wink nudge nudge
Looking at the available flags, I think we should probably add
MOVEFILE_COPY_ALLOWEDas well
Good idea. Added it.