BLaCkShaDoW 1 год назад
Родитель
Сommit
b75a9adfd0
1 измененных файлов с 4 добавлено и 4 удалено
  1. 4 4
      BlackTools/Modules/BT.AutoUpdate.tcl

+ 4 - 4
BlackTools/Modules/BT.AutoUpdate.tcl

@@ -702,9 +702,9 @@ if {$type == 0} {
 }
 
 ###
-proc blacktools:update_getconfig {} {
+proc blacktools:update_getconfig {{branch "BlackTools-3.0"}} {
     global black
-    set link "https://raw.githubusercontent.com/tclscripts/BlackTools-TCL/master/BlackTools.tcl"
+    set link "https://raw.githubusercontent.com/tclscripts/BlackTools-TCL/$branch/BlackTools.tcl"
     http::register https 443 [list ::tls::socket -tls1 true]
     set ipq [http::config -useragent "lynx"]
 	set error [catch {set ipq [::http::geturl $link -timeout 10000]} eror]
@@ -719,9 +719,9 @@ if {$status != "ok"} {
 }
 
 ###
-proc blacktools:update_verify {} {
+proc blacktools:update_verify {{branch "BlackTools-3.0"}} {
     global black
-    set link "https://raw.githubusercontent.com/tclscripts/BlackTools-TCL/master/VERSION"
+    set link "https://raw.githubusercontent.com/tclscripts/BlackTools-TCL/$branch/VERSION"
     http::register https 443 [list ::tls::socket -tls1 true]
     set ipq [http::config -useragent "lynx"]
 	set error [catch {set ipq [::http::geturl $link -timeout 10000]} eror]