Touch pyproject.toml upon install, so we check for updates

This commit is contained in:
Damien Elmes 2025-06-18 19:03:26 +07:00
parent 42baaacdc5
commit 35ad85a0cd

View file

@ -224,6 +224,10 @@ Section ""
WriteUninstaller "uninstall.exe"
!endif
; Ensure uv gets re-run
Push "$INSTDIR\pyproject.toml"
Call TouchFile
; Launch Anki after installation
Exec "$INSTDIR\anki.exe"
Quit
@ -232,6 +236,17 @@ SectionEnd ; end the section
;--------------------------------
; Touch file function to update mtime using copy trick
Function TouchFile
Exch $R0 ; file path
nsExec::Exec 'cmd /c "copy /B "$R0" +,,"'
Pop $R0
FunctionEnd
;--------------------------------
; Uninstaller
function un.onInit