1
0
mirror of https://github.com/vlang/v.git synced 2023-08-10 21:13:21 +03:00

ix 'v up' on windows

This commit is contained in:
kdmult 2019-12-23 13:22:06 +03:00 committed by Alexander Medvednikov
parent dced76d1a4
commit 6c4ef368d7

View File

@ -1,3 +1,5 @@
module main
import (
os
filepath
@ -14,7 +16,7 @@ fn main() {
if os.exists( v_backup_file ) {
os.rm( v_backup_file )
}
os.mv_by_cp('$vroot/v.exe', v_backup_file) or { panic(err) }
os.mv('$vroot/v.exe', v_backup_file)
s2 := os.exec('"$vroot/make.bat"') or { panic(err) }
println(s2.output)
} $else {