channel_v3_daily
解決國內?https://packagecontrol.io無法訪問的問題
目前買了臺服務器每6個小時拉取一次最新的文件
Package Control There are no packages available for installation Please seehttps://packagecontrol.io/docs/troubleshootingfor help
????1 下載 channel_v3.json 到本地 /path/xxx/channel_v3.json
????2 點擊 Preferences > Package Settings > Package Control > Settings - User
????3 添加?"channels": ["/path/xxx/channel_v3.json"],
????1 點擊 Preferences > Package Settings > Package Control > Settings - User
????2 添加?"channels": ????["https://raw.githubusercontent.com/HBLong/channel_v3_daily/master/channel_v3.json"],
????點擊st3里面的菜單 “Preferences > Browse Packages” 或者 “首選項 > 瀏覽插件目錄”
????此時你所在的目錄是 “Sublime Text 3/Packages”活尊,進入到 “Sublime Text 3/Installed Packages”
????下載Package Control插件包,將該插件包復制到 "Installed Packages/" 目錄內
????重啟 Sublime Text????
????通過快捷鍵?ctrl+``?或者菜單?View > Show Console?或者菜單?視圖 > 顯示/隱藏控制臺?進入控制臺漏益,復制下面的代碼到控制臺運行
Sublime Text 3
import urllib.request,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); urllib.request.install_opener( urllib.request.build_opener( urllib.request.ProxyHandler()) ); by = urllib.request.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); print('Error validating download (got %s instead of %s), please try manual install' % (dh, h)) if dh != h else open(os.path.join( ipp, pf), 'wb' ).write(by)
Sublime Text 2
import urllib2,os,hashlib; h = '6f4c264a24d933ce70df5dedcf1dcaee' + 'ebe013ee18cced0ef93d5f746d80ef60'; pf = 'Package Control.sublime-package'; ipp = sublime.installed_packages_path(); os.makedirs( ipp ) if not os.path.exists(ipp) else None; urllib2.install_opener( urllib2.build_opener( urllib2.ProxyHandler()) ); by = urllib2.urlopen( 'http://packagecontrol.io/' + pf.replace(' ', '%20')).read(); dh = hashlib.sha256(by).hexdigest(); open( os.path.join( ipp, pf), 'wb' ).write(by) if dh == h else None; print('Error validating download (got %s instead of %s), please try manual install' % (dh, h) if dh != h else 'Please restart Sublime Text to finish installation')