Skip to content

Commit

Permalink
use s3 assets for wallet plugin (#48)
Browse files Browse the repository at this point in the history
  • Loading branch information
peterjah authored Oct 6, 2023
1 parent 6c0d871 commit bb97b85
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 8 deletions.
8 changes: 4 additions & 4 deletions plugins.json
Original file line number Diff line number Diff line change
Expand Up @@ -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"
}
},
Expand Down
5 changes: 1 addition & 4 deletions src/write-checksum.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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);
}
}
Expand Down

0 comments on commit bb97b85

Please sign in to comment.