Open xgqfrms opened 4 years ago
https://github.com/dart-lang/pub/issues/584
$ pub --trace 'publish' '--force'
https://juejin.im/post/5c21d39ae51d4516da711073
https://juejin.im/post/5d25a6d7f265da1bc07e6286
取消镜像,不然不支持 pub
# Flutter China
# export PUB_HOSTED_URL=https://pub.flutter-io.cn
# export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
# flutter PATH & zsh
export PATH="$PATH:/Users/xgqfrms-mbp/Documents/Flutter/flutter/bin"
$ cat .zshrc
# Flutter China
export PUB_HOSTED_URL=https://pub.flutter-io.cn
# flutter PATH & zsh
export PATH="$PATH:/Users/xgqfrms-mbp/Documents/Flutter/flutter/bin"
$ flutter doctor -v
$ flutter packages pub publish --dry-run
$ pub publish --dry-run
# Package has 0 warnings.
$ pub publish
https://flutter.dev/community/china
https://flutter.cn/community/china#%E5%B7%B2%E7%9F%A5%E9%97%AE%E9%A2%98
$ cat .zshrc
$ vim .zshrc
# flutter PATH & zsh
export PATH="$PATH:/Users/xgqfrms-mbp/Documents/Flutter/flutter/bin"
$ source $HOME/.zshrc
# Flutter China
# export PUB_HOSTED_URL=https://pub.flutter-io.cn
# export FLUTTER_STORAGE_BASE_URL=https://storage.flutter-io.cn
# flutter PATH & zsh
export PATH="$PATH:/Users/xgqfrms-mbp/Documents/Flutter/flutter/bin"
$ flutter doctor -v
$ flutter packages pub publish --dry-run
$ pub publish --dry-run
# Package has 0 warnings.
$ pub publish
# 全局 VPN
$ curl google.com
# curl: (7) Failed to connect to www.google.com port 80: Operation timed out
$ curl xgqfrms.xyz
# html string
Last login: Fri Jun 19 01:42:35 on ttys004
➜ ~ export https_proxy=127.0.0.1:1086
➜ ~ curl www.google.com
curl: (7) Failed to connect to www.google.com port 80: Operation timed out
➜ ~
➜ ~ export http_proxy=127.0.0.1:1086
➜ ~ curl www.google.com
curl: (7) Failed to connect to 127.0.0.1 port 1086: Connection refused
$ vim ~/.zshrc
# SSR proxy alias ⚠️ 1086 端口号
# 添加如下代理 alias 配置(proxy 和 unproxy)
# alias proxy='export all_proxy=socks5://127.0.0.1:1080'
# proxy 端口根据实际设置, 如 1086
$ alias proxy='export all_proxy=socks5://127.0.0.1:1086'
$ alias unproxy='unset all_proxy'
# 保存退出
$ :wq!
# 刷新
$ source ~/.zshrc
$ vim ~/.zshrc
# 添加如下代理 alias 配置(proxy 和 unproxy)
# alias proxy='export all_proxy=socks5://127.0.0.1:1080'
# proxy 端口根据实际设置, 如 1086
alias proxy='export all_proxy=socks5://127.0.0.1:1086'
alias unproxy='unset all_proxy'
# 保存退出
$ :wq!
# 刷新
$ source ~/.zshrc
# 测试 ip
$ curl ip.cn
# 当前 IP:112.64.xxx.xx 来自:上海市 联通
$ curl cip.cc
# 开启 proxy(执行 proxy alias)
$ proxy
$ curl ip.cn
$ curl cip.cc
$ curl google.com
# dart / flutter
$ pub publish
手动修改
$ cat ~/.zshrc
# 测试 ip
$ curl ip.cn
# 当前 IP:112.64.xxx.xx 来自:上海市 联通
$ curl cip.cc
# 开启 proxy(执行 proxy alias)
$ proxy
$ curl ip.cn
$ curl cip.cc
$ curl ip.gs
$ curl ipinfo.io
$ curl myip.ipip.net
$ curl ip.gs
$ curl ipinfo.io
$ curl myip.ipip.net
Proxifier允许不支持通过代理服务器工作的网络应用程序通过SOCKS或HTTPS代理和链进行操作。
config ???
https://blog.csdn.net/u013066730/article/details/88788191
windows SVN工具 ”无界“
https://www.cnblogs.com/yangyxd/p/9234405.html
https://www.youtube.com/watch?v=DVPAuSizRsk
# 测试 ip
$ curl ip.cn
# 当前 IP:112.64.xxx.xx 来自:上海市 联通
$ curl cip.cc
# 开启 proxy(执行 proxy alias)
$ proxy
$ curl ip.cn
$ curl cip.cc
$ curl ip.gs
$ curl ipinfo.io
$ curl myip.ipip.net
https://dart.cn/tools/pub/cmd/pub-uploader
https://dart.cn/tools/pub/publishing
$ pub uploader [options] {add/remove} <email>
$ pub uploader add xgqfrms@gmail.com
proxifier
https://cloud.tencent.com/developer/article/1443942
c9.io
pub publish bug
Waiting for your authorization... Authorization received, processing... It looks like accounts.google.com is having some trouble. Pub will wait for a while before trying to connect again.