From f722fda983776755c3f1df7894bb4ca72bcc24f6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=90=E6=99=93=E4=BC=9F?= Date: Sun, 4 Jun 2023 19:53:52 +0800 Subject: [PATCH] =?UTF-8?q?:memo:=20MinIO=20&=20OSS=EF=BC=88=E9=98=BF?= =?UTF-8?q?=E9=87=8C=E4=BA=91=E5=AF=B9=E8=B1=A1=E5=82=A8=E5=AD=98=EF=BC=89?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- README.md | 43 ++++++++++++++++++++++++++++++------------- 1 file changed, 30 insertions(+), 13 deletions(-) diff --git a/README.md b/README.md index f687a6d..92a759a 100644 --- a/README.md +++ b/README.md @@ -94,21 +94,38 @@ - 仅发布 32 产物,运行 `npm run electron:build:win:ia32:release` - 仅发布 64 产物,运行 `npm run electron:build:win:x64:release` - 同时发布 32、64 产物,运行 `npm run electron:build:win:release` - ```json5 - { - "publish": [ + - MinIO + ```json5 { - "provider": "s3", - "bucket": "electron-tools", - "acl": "public-read", - "path": "/${platform}/${channel}/", - "region": "us-east-1", - "endpoint": "http://192.168.0.29:9000/", - "channel": "latest" + "publish": [ + { + "provider": "s3", + "bucket": "electron-tools", + "acl": "public-read", + "path": "/${platform}/${channel}/", + "region": "us-east-1", + "endpoint": "http://192.168.0.29:9000/", + "channel": "latest" + } + ] + } + ``` + - OSS(阿里云对象储存) + - endpoint:阿里云对象储存 OSS 的 endpoint 为上述 MinIO 对象储存的 https://{bucket}.{endpoint} + - bucket:阿里云对象储存 OSS 的 bucket 为上述 MinIO 对象储存 bucket 内部的 path + ```json5 + { + "publish": [ + { + "provider": "s3", + "bucket": "/", + "path": "/${platform}/${channel}/", + "endpoint": "https://public-electron-tools.oss-cn-qingdao.aliyuncs.com", + "channel": "latest" + } + ] } - ] - } - ``` + ``` ## Init & Configuration