From bb97b8591b9f869263e0174180956d40d67ec12d Mon Sep 17 00:00:00 2001 From: Pierre Seznec <34547263+peterjah@users.noreply.github.com> Date: Fri, 6 Oct 2023 13:50:58 +0200 Subject: [PATCH] use s3 assets for wallet plugin (#48) --- plugins.json | 8 ++++---- src/write-checksum.ts | 5 +---- 2 files changed, 5 insertions(+), 8 deletions(-) diff --git a/plugins.json b/plugins.json index 6908d11..ce5141d 100644 --- a/plugins.json +++ b/plugins.json @@ -7,19 +7,19 @@ "description": "Massa blockchain official wallet", "assets": { "windows": { - "url": "https://github.com/massalabs/station-massa-wallet/releases/download/v0.2.8/wallet-plugin_windows-amd64.zip", + "url": "https://massa-station-assets.s3.eu-west-3.amazonaws.com/plugins/wallet/v0.2.8/wallet-plugin_windows-amd64.zip", "checksum": "3b22d512a4e8f042871d0c11e7247691" }, "linux": { - "url": "https://github.com/massalabs/station-massa-wallet/releases/download/v0.2.8/wallet-plugin_linux-amd64.zip", + "url": "https://massa-station-assets.s3.eu-west-3.amazonaws.com/plugins/wallet/v0.2.8/wallet-plugin_linux-amd64.zip", "checksum": "3480bd874206f67a42e30b0e60b45c55" }, "macos-arm64": { - "url": "https://github.com/massalabs/station-massa-wallet/releases/download/v0.2.8/wallet-plugin_darwin-arm64.zip", + "url": "https://massa-station-assets.s3.eu-west-3.amazonaws.com/plugins/wallet/v0.2.8/wallet-plugin_darwin-arm64.zip", "checksum": "c02775729f64f6aab37825065294d9f9" }, "macos-amd64": { - "url": "https://github.com/massalabs/station-massa-wallet/releases/download/v0.2.8/wallet-plugin_darwin-amd64.zip", + "url": "https://massa-station-assets.s3.eu-west-3.amazonaws.com/plugins/wallet/v0.2.8/wallet-plugin_darwin-amd64.zip", "checksum": "5621cc41d159aa8ac745bb84a93446eb" } }, diff --git a/src/write-checksum.ts b/src/write-checksum.ts index 7bb58a4..6753550 100644 --- a/src/write-checksum.ts +++ b/src/write-checksum.ts @@ -30,10 +30,7 @@ async function main(name?: string) { } async function processPlugin(plugin: StorePlugin) { - const { assets } = plugin; - - for (const key of Object.keys(assets)) { - const asset = assets[key]; + for( let [_, asset] of Object.entries(plugin.assets)) { asset.checksum = await calculateChecksum(asset.url); } }