xgqfrms / dart-library-package

dart-library-package for flutter
https://dart-library-package.xgqfrms.xyz
MIT License
2 stars 0 forks source link

pub publish bug #4

Open xgqfrms opened 4 years ago

xgqfrms commented 4 years ago

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.

xgqfrms commented 4 years ago

bug

https://github.com/dart-lang/pub/issues/584

$ pub --trace 'publish' '--force'

https://github.com/flutter/flutter/issues/22481

https://github.com/flutter/flutter/issues/17070

xgqfrms commented 4 years ago

FQ ?

https://juejin.im/post/5c21d39ae51d4516da711073

config

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"
xgqfrms commented 4 years ago
$ 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"
xgqfrms commented 4 years ago
$ flutter doctor -v

$ flutter packages pub publish --dry-run

$ pub publish --dry-run
# Package has 0 warnings.

$ pub publish
xgqfrms commented 4 years ago

Using Flutter in China

https://flutter.dev/community/china

所有 Flutter 镜像目前均不支持/也不应支持上传 packages 到 pub.dev 网站。

https://flutter.cn/community/china#%E5%B7%B2%E7%9F%A5%E9%97%AE%E9%A2%98

image

xgqfrms commented 4 years ago

source $HOME/.zshrc


$ cat .zshrc
$ vim .zshrc

# flutter PATH & zsh
export PATH="$PATH:/Users/xgqfrms-mbp/Documents/Flutter/flutter/bin"

$ source $HOME/.zshrc
xgqfrms commented 4 years ago

全局 FQ

image

1. 取消镜像,不然不支持 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"

检测

$ 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
xgqfrms commented 4 years ago

https://stats.uptimerobot.com/JZK3ZTql79

xgqfrms commented 4 years ago

image

https://raw.githubusercontent.com/gfwlist/gfwlist/master/gfwlist.txt

https://raw.githubusercontent.com/shadowsocks/shadowsocks-libev/master/acl/chn.acl

https://raw.githubusercontent.com/shadowsocks/shadowsocks-libev/master/acl/gfwlist.acl

https://raw.githubusercontent.com/shadowsocks/shadowsocks-libev/master/ShadowsocksX-NG/server_block_chn.acl

xgqfrms commented 4 years ago

https://github.com/mrdulin/blog/issues/18

https://stackoverflow.com/questions/5274934/use-ping-through-socks-server

xgqfrms commented 4 years ago
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

what's wrong with that?

$ 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

image

xgqfrms commented 4 years ago

SS proxy

$ 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

image

# 测试 ip
$  curl ip.cn
# 当前 IP:112.64.xxx.xx 来自:上海市 联通
$ curl cip.cc

# 开启 proxy(执行 proxy alias)
$ proxy

$ curl ip.cn
$ curl cip.cc

terminal SS proxy

$ curl google.com

# dart / flutter 
$ pub publish

image

image

手动修改

image

xgqfrms commented 4 years ago
$  cat ~/.zshrc
xgqfrms commented 4 years ago

image

xgqfrms commented 4 years ago

ip 查询

https://ip.cn

https://cip.cc

https://ip.sb

image

image

image

xgqfrms commented 4 years ago

IP

# 测试 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

image

xgqfrms commented 4 years ago

image

xgqfrms commented 4 years ago

ShadowsocksX-NG 使用教程

https://github.com/shadowsocks

https://www.hijk.pw/ssr-shadowsocksx-ng-config-tutorial/

image

https://wiki.kache.moe/2019/12/06/macOS-ShadowsocksX-NG-R8/

image

xgqfrms commented 4 years ago

how to using ShadowsocksX-NG-R8 in the terminal of macOS

xgqfrms commented 4 years ago

Proxifier 使用教程

https://www.proxifier.com/

Proxifier允许不支持通过代理服务器工作的网络应用程序通过SOCKS或HTTPS代理和链进行操作。

config ???

https://blog.csdn.net/u013066730/article/details/88788191

Flutter 发布 package

windows SVN工具 ”无界“

https://www.cnblogs.com/yangyxd/p/9234405.html

shit not work

https://www.youtube.com/watch?v=DVPAuSizRsk

https://www.xmyip.com/

ip

# 测试 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
xgqfrms commented 4 years ago

如何发布 dart package

pub-uploader

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

flutter packages

https://flutterchina.club/developing-packages/

image

image

https://pub.dartlang.org/packages/battery

xgqfrms commented 4 years ago

终端访问外国网站(google)

proxifier

https://cloud.tencent.com/developer/article/1443942

image


在线 terminal

c9.io

google console git clone / VPS git clone

Google Cloud / Azure / AWS


proxy ip

image

xgqfrms commented 4 years ago

how to publish a dart package using Github Actions?

https://www.cnblogs.com/xgqfrms/p/13627761.html

xgqfrms commented 4 years ago

https://pub.dev/packages/dart_library_package