Skip to main content

S3 存储桶迁移

· 4 min read

Electron 正在更改其主要的 S3 存储桶,你可能需要更新构建脚本。

¥Electron is changing its primary S3 bucket, you may need to update your build scripts


发生了什么?

¥What is happening?

大量 Electron 的构建工件被上传到名为 gh-contractor-zcbenz 的 S3 存储桶。作为自 2020 年开始的持续基础设施/所有权迁移的一部分,我们将把所有使用 gh-contractor-zcbenz 的资源从其旧存储 S3 迁移到托管在 https://artifacts.electronjs.org 的新存储系统。我们大多数资源使用的路径前缀也略有变化。示例如下:

¥A significant amount of Electron's build artifacts are uploaded to an S3 bucket called gh-contractor-zcbenz. As part of ongoing infrastructure/ownership migrations that started way back in 2020, we will be changing everything that used gh-contractor-zcbenz from its old home in S3 to a new storage system hosted at https://artifacts.electronjs.org. The path prefix that most of our assets use is changing slightly as well. Examples are included below:

前:https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v17.0.0/node.lib 后:https://artifacts.electronjs.org/headers/dist/v17.0.0/node.lib

¥Before: https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/dist/v17.0.0/node.lib After: https://artifacts.electronjs.org/headers/dist/v17.0.0/node.lib

这里重要的是更改了主机名和 /atom-shell 前缀。另一个示例,这次是调试符号:

¥The important things here are the Hostname changed and the /atom-shell prefix changed. Another example, this time for debug symbols:

前:https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/symbols/path/to/symbol.pdb 后:https://artifacts.electronjs.org/symbols/path/to/symbol.pdb

¥Before: https://gh-contractor-zcbenz.s3.amazonaws.com/atom-shell/symbols/path/to/symbol.pdb After: https://artifacts.electronjs.org/symbols/path/to/symbol.pdb

再次强调,主机名和 /atom-shell 前缀均已更改。

¥Again, the hostname changed and the /atom-shell prefix was changed.

这会对你有什么影响?

¥How might this impact you?

任何使用标准构建工具(例如 electron-rebuildelectron-packager@electron/get)的用户无需执行任何操作。这应该是大多数人的习惯。

¥Anyone using standard build tooling such as electron-rebuild, electron-packager or @electron/get won't have to do anything. This should be the majority of people.

对于直接引用 S3 存储桶的任何人,你必须更新引用以指向主机名并更新路径。

¥For anyone directly referencing the S3 bucket, you must update your reference to point at the hostname and update the path as well.

现有数据怎么办?

¥What about existing data?

gh-contractor-zcbenz bucket 中的大部分数据已克隆到新的存储系统中。这意味着所有调试符号和所有头文件都已复制。如果你依赖该存储桶中某些尚未复制的数据,请在 electron/electron 中提交问题并告知我们。

¥Most data that existed on the gh-contractor-zcbenz bucket has been cloned into the new storage system. This means all debug symbols and all headers have been copied. If you relied on some data in that bucket that hasn't been copied over please raise an issue in electron/electron and let us know.

当前的 gh-contractor-zcbenz S3 存储桶不会被主动删除。但是,我们无法保证该 bucket 能保留多久。我们强烈建议尽快更新以适应新的存储桶。

¥The current gh-contractor-zcbenz S3 bucket will not be actively deleted. However, we can't guarantee how long that bucket will be left alive. We strongly recommend updating to target the new bucket as soon as possible.