mirror of
https://github.com/ankitects/anki.git
synced 2026-01-13 22:13:58 -05:00
Touch pyproject.toml upon install, so we check for updates
This commit is contained in:
parent
42baaacdc5
commit
35ad85a0cd
1 changed files with 15 additions and 0 deletions
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in a new issue