Skip to content

Update using Flutter from China#9338

Merged
atsansone merged 15 commits into
flutter:mainfrom
atsansone:fix-2556
Nov 14, 2023
Merged

Update using Flutter from China#9338
atsansone merged 15 commits into
flutter:mainfrom
atsansone:fix-2556

Conversation

@atsansone

@atsansone atsansone commented Aug 31, 2023

Copy link
Copy Markdown
Contributor

@atsansone atsansone added the review.tech Awaiting Technical Review label Aug 31, 2023
@parlough parlough self-assigned this Sep 1, 2023
Comment thread src/community/china.md Outdated

To configure a proxy, check out the [Dart documentation on proxies][].

[Dart documentation on proxies]: {{dart-site}}/tools/pub/troubleshoot#pub-get-fails-from-behind-a-corporate-firewall

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

To fix the link and build:

Suggested change
[Dart documentation on proxies]: {{dart-site}}/tools/pub/troubleshoot#pub-get-fails-from-behind-a-corporate-firewall
[Dart documentation on proxies]: {{site.dart-site}}/tools/pub/troubleshoot#pub-get-fails-from-behind-a-corporate-firewall

Comment thread src/community/china.md Outdated
using the `flutter-io.cn` server, consider reporting the issue to
[the issue tracker (镜像问题)](https://github.com/cfug/flutter.cn/issues/new/choose).

## Publishing apps

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Taking a look at the source issue, it seems your addition covers half of the issue.

If I understood the issue correct, the other is that you can't publish to the mirror. So if a user followed the steps in Configuring Flutter to use a mirror site and changed your PUB_HOSTED_URL, publishing won't work. I guess they need to remove this override to publish.

@atsansone atsansone added review.await-update Awaiting Updates after Edits and removed review.tech Awaiting Technical Review labels Sep 1, 2023
@parlough parlough assigned atsansone and unassigned parlough Sep 1, 2023
Comment thread src/community/china.md Outdated
@atsansone atsansone added st.blocked Issue cannot continue until another action completes review.tech Awaiting Technical Review and removed review.await-update Awaiting Updates after Edits labels Sep 18, 2023
@AlexV525

Copy link
Copy Markdown
Member

@atsansone Are you still on this?

@atsansone atsansone force-pushed the fix-2556 branch 5 times, most recently from 781661e to 663172c Compare October 27, 2023 18:16

@atsansone atsansone left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@jonasfj : I reworked this heavily to make it more clear. Let me know your thoughts.

@parlough : You can review again, but there may be commentary from Chinese community members yet to be reconciled.

Comment thread src/community/china.md Outdated
Comment thread src/community/china.md Outdated
@AlexV525

Copy link
Copy Markdown
Member

cc @skyzh to review SJTUG-related content.

Comment thread src/community/china.md Outdated
Comment thread src/community/china.md Outdated
Comment thread src/community/china.md Outdated
Comment thread src/community/china.md Outdated
Comment thread src/community/china.md Outdated
Comment thread src/community/china.md Outdated
Comment thread src/community/china.md Outdated
Comment thread src/community/china.md Outdated
Comment thread src/community/china.md Outdated
@atsansone

Copy link
Copy Markdown
Contributor Author

@AlexV525 : You are awesome! Thanks for this SME feedback!

@skyzh skyzh left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

rest LGTM, thanks for the pull request!

Comment thread src/community/china.md Outdated
@atsansone atsansone requested a review from khanhnwin as a code owner October 31, 2023 00:02
Comment thread src/community/china/_os-settings.md Outdated
@AlexV525

Copy link
Copy Markdown
Member

What about the general idea of making this page written or translated in Simplified Chinese?

@atsansone atsansone left a comment

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@parlough : All updates made. Believe this is G2G.

{{envvarset}}FLUTTER_STORAGE_BASE_URL="https://storage.flutter-io.cn"
```

1. Download the Flutter archive from your mirror site.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

A zip file or a tar file are archive file formats. Going to keep as-is.

Comment thread src/community/china/_os-settings.md
Comment thread src/community/china/index.md Outdated
Comment thread src/community/china/index.md
Comment thread src/community/china/index.md Outdated
Comment on lines +126 to +123
The Flutter team cannot guarantee long-term availability of any mirrors.
You can use other mirrors if they become available.

Copy link
Copy Markdown
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Updated.

@atsansone

Copy link
Copy Markdown
Contributor Author

@AlexV525 : Let me know if you have questions about the source files. Accounting for platform makes them a little tricky.

@atsansone atsansone removed the st.blocked Issue cannot continue until another action completes label Nov 13, 2023

@parlough parlough left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thanks for continuing to work on this @atsansone!

I found a few issues that I think should be addressed before this lands, but I don't need to see it again after they are addressed. Unless you want to discuss some of them further, then feel free to tag me :)

As a side note, this PR should be auto staging to https://flutter-docs-prod--pr9338-fix-2556-92qeer86.web.app/community/china now.

@parlough parlough Nov 14, 2023

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this note should stay in English, or at least also provide the English version of this text (first and then Chinese), since it's scattered in a few locations across the website.

In my earlier mentions, I was thinking this note would stay the same and the Chinese version of the text would just be at the top of the "Using Flutter in China" page, for those that navigate there from this note or from searching. I still feel this is probably the better choice for our site.

{{envvarset}}FLUTTER_STORAGE_BASE_URL="https://storage.flutter-io.cn"
```

1. Download the Flutter archive from your mirror site.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

That's technically true, but it's quite confusing since it uses "archive" to mean two different things in this same step. It reads as if it's telling me to download the entire archive page.

```

1. Download the Flutter archive from your mirror site.
In your preferred browser, go to

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
In your preferred browser, go to
In your preferred browser, go to the


```terminal
{{unzip}} {{sdk | replace: "opsys", download-os}}{{file-format}}
```

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I recommend adding an extra sentence to explicitly explain that they need to use the exact name of the specific bundle they downloaded here. When there are terminal code blocks, readers often just copy paste without much consideration, or they may be new to this type of activity and may not know.

Comment on lines +106 to +107
From this example, `flutter pub get` fetches packages from `flutter-io.cn`,
in any terminal where you set `PUB_HOSTED_URL` and `FLUTTER_STORAGE_BASE_URL`.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you intend to mean by "from this example"? "After completing the steps of this procedure"?

Comment thread src/community/china/index.md Outdated

### Download Flutter archives based on a mirrored URL

To download Flutter archives from a mirrored URL,

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I think this section is missing the context of where to get the original storage.googleapis.com links, which is necessary for the steps to work. Perhaps:

Suggested change
To download Flutter archives from a mirrored URL,
To download Flutter from the [SDK archive][] using a mirrored URL,

(and add the link definition).

Comment thread src/community/china/index.md Outdated
Comment on lines +60 to +61
To change a Google storage site to a CFUG storage site, replace the example
original URL with the example mirror URL.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I'm a bit lost on what this sentence is trying to do. Is it trying to act as an instruction? Or is trying to introduce the following example? I think it would help be more explicit if it's about the following example.

The following example shows how to update an example Flutter download URL
from using Google's archive to using CFUG's mirror.

{% comment %} Tab panes {% endcomment -%}
<div class="tab-content">
{% for os in page.os-list %}
{% include_relative _download-urls.md ref-os=os filepath=sdk-path %}

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This seems to be showing .tar.xz for the Windows tab and .zip for the Linux one.

Not every mirror supports downloading artifacts using their direct URL.
{{site.alert.end}}

## Configure your machine to publish your package

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Suggested change
## Configure your machine to publish your package
## Configure your machine to publish a package

Comment thread src/community/china/index.md Outdated
To download Flutter archives from a mirrored URL,
replace `storage.googleapis.com` with the URL of your trusted mirror.
This should improve download speed.
You can use the mirror URL in other applications to download software.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What kind of software is this referring to?

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Dowload tools, such as IDM or Thunder (which is widely used in China)

@parlough parlough added review.await-update Awaiting Updates after Edits and removed review.tech Awaiting Technical Review labels Nov 14, 2023
@parlough parlough assigned atsansone and unassigned AlexV525 and atsansone Nov 14, 2023
@atsansone atsansone added st.RFM Ready to merge or land and removed review.await-update Awaiting Updates after Edits labels Nov 14, 2023
@atsansone atsansone merged commit c6befe6 into flutter:main Nov 14, 2023
atsansone added a commit to atsansone/website that referenced this pull request Nov 14, 2023
Fixes flutter#2556

Staged at
https://flutter-docs-prod--pr9338-fix-2556-92qeer86.web.app/community/china

---------

Co-authored-by: Alex Li <github@alexv525.com>
Co-authored-by: Parker Lougheed <parlough@gmail.com>
atsansone added a commit to atsansone/website that referenced this pull request Dec 11, 2023
Fixes flutter#2556

Staged at
https://flutter-docs-prod--pr9338-fix-2556-92qeer86.web.app/community/china

---------

Co-authored-by: Alex Li <github@alexv525.com>
Co-authored-by: Parker Lougheed <parlough@gmail.com>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

st.RFM Ready to merge or land

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Add notes to 'Using Flutter in China' page about publishing and Google Accounts

6 participants