Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

pub publish bug #4

Open
xgqfrms opened this issue Jun 18, 2020 · 24 comments
Open

pub publish bug #4

xgqfrms opened this issue Jun 18, 2020 · 24 comments
Labels
bug Something isn't working Proxifier 使用教程 Proxifier 使用教程 pub publish bug pub publish bug VPN VPN

Comments

@xgqfrms
Copy link
Owner

xgqfrms commented Jun 18, 2020

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
Copy link
Owner Author

xgqfrms commented Jun 18, 2020

bug

dart-lang/pub#584

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

flutter/flutter#22481

flutter/flutter#17070

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 18, 2020

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
Copy link
Owner Author

xgqfrms commented Jun 18, 2020

$ 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
Copy link
Owner Author

xgqfrms commented Jun 18, 2020

$ flutter doctor -v

$ flutter packages pub publish --dry-run

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

$ pub publish

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 18, 2020

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
Copy link
Owner Author

xgqfrms commented Jun 18, 2020

source $HOME/.zshrc

$ cat .zshrc
$ vim .zshrc

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

$ source $HOME/.zshrc

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 18, 2020

全局 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
Copy link
Owner Author

xgqfrms commented Jun 18, 2020

@xgqfrms xgqfrms added the pub publish bug pub publish bug label Jun 18, 2020
@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 18, 2020

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 18, 2020

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
Copy link
Owner Author

xgqfrms commented Jun 19, 2020

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
Copy link
Owner Author

xgqfrms commented Jun 19, 2020

$  cat ~/.zshrc

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 19, 2020

image

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 19, 2020

ip 查询

https://ip.cn

https://cip.cc

https://ip.sb

image

image

image

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 19, 2020

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
Copy link
Owner Author

xgqfrms commented Jun 19, 2020

image

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 19, 2020

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 19, 2020

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

@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 19, 2020

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 xgqfrms added bug Something isn't working Proxifier 使用教程 Proxifier 使用教程 labels Jun 19, 2020
@xgqfrms
Copy link
Owner Author

xgqfrms commented Jun 19, 2020

如何发布 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
Copy link
Owner Author

xgqfrms commented Jun 19, 2020

终端访问外国网站(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
Copy link
Owner Author

xgqfrms commented Sep 7, 2020

how to publish a dart package using Github Actions?

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

@xgqfrms
Copy link
Owner Author

xgqfrms commented Oct 2, 2020

@xgqfrms xgqfrms added the VPN VPN label Jan 13, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working Proxifier 使用教程 Proxifier 使用教程 pub publish bug pub publish bug VPN VPN
Projects
None yet
Development

No branches or pull requests

1 participant