From f22498b3b66d88c08c2e763e3b0287d84bfadc9e Mon Sep 17 00:00:00 2001 From: Alberto Iannaccone Date: Tue, 27 Apr 2021 16:27:59 +0200 Subject: [PATCH] remove restore_binary flag from firmware updater command line (#491) * remove restore_binary flag from firmware updater command line * 2.4.6 --- package-lock.json | 2 +- package.json | 2 +- src/firmware-updater.js | 2 +- src/signatures.js | 8 ++++---- 4 files changed, 7 insertions(+), 7 deletions(-) diff --git a/package-lock.json b/package-lock.json index dbc4bbc9..2336ba27 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "arduino-create-agent-js-client", - "version": "2.4.5", + "version": "2.4.6", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 325a4bdc..779e00de 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "arduino-create-agent-js-client", - "version": "2.4.5", + "version": "2.4.6", "description": "JS module providing discovery of the Arduino Create Plugin and communication with it", "main": "lib/index.js", "module": "es/index.js", diff --git a/src/firmware-updater.js b/src/firmware-updater.js index 4b153067..c359b565 100644 --- a/src/firmware-updater.js +++ b/src/firmware-updater.js @@ -205,7 +205,7 @@ export default class FirmwareUpdater { const data = { board: boardId, port, - commandline: `"{runtime.tools.fwupdater.path}/${updaterBinaryName}" -flasher {network.password} -port {serial.port} -restore_binary "{build.path}/{build.project_name}.bin" -programmer "${programmer}"`, + commandline: `"{runtime.tools.fwupdater.path}/${updaterBinaryName}" -flasher {network.password} -port {serial.port} -programmer "${programmer}"`, hex: '', extra: { auth: { diff --git a/src/signatures.js b/src/signatures.js index 773b54a7..3109991e 100644 --- a/src/signatures.js +++ b/src/signatures.js @@ -1,14 +1,14 @@ // For versions of the fwupater tool >= 0.1.2 export const fwupdaterSignatures = Object.freeze({ GET_FIRMWARE_INFO: '5aae0c2b9cfa783ab6d791491b6ebcb7ffb69644dcc8984def2a5f69029a46701dc8c95fc38a60efebb78c2802b6d172d7f38852b44ae1d2697c0211b6ac389f574c4ff85593ccae55e7c8c415f8d07f932fc64aec620ddb925dbd97b77cf395b9929911b6d4c40b8d3d5a4720a0613fe301344a45f505a430c956a527831896b42fddd0f737d630a3dc3714ce421bd30e9229b2ed503667a915bfc696b6221759640ff492e37356ef025ba9802d578227b8f15fd0f647c395bf73a84adf7a57281c31bc743ca92c09f8eec64d428acd25ced8f8420fdbf989db3625662970d3f16693fec44a418e8c7b12e9f4e94d353e4d6f6876bd74fc543eaeba20a09dc6', - UPLOAD_FIRMWARE_BOSSAC: '5b801c4daa4f72f050d4b1de89f26df882e6da26c8d0da906e915503ae7b2f124c3e45af6ad7b3fcabd47a8059683c751776a167b3342c768aec57b1fa06689249b9894a2d978c2a6bab8ea540671b48e45f6f3aa1c03f9ac0ef4cbe9f68d7cf3b7adff7cd63bdc562f106e634f81aa0002d746b9d867e3b5f0d1836058ec71aabbd1c8c5668cef3d690dc2c3f3dc484b17f08eee4bad9d250d45bb9c7f528f97676922d7411aff93e31311c21aff7be124ac240a6d34aa787b795ab5bab6163536dfff230c97caaab5721d2be9ef22226a08ad6dd4f32b7f1ce5c217aa547d4cdc15acd861348f7d6040a1fcec73fee32df450382b5f3549417adbcd0ff776e', - UPLOAD_FIRMWARE_AVRDUDE: 'b4d630a5312579fd686f63c73964f673ae501952b1ad8ed3895e881a0926773b17b9e545f574d361e4e725b89712d879c2201136ee64546160021c2232bbcf6804ebd46eeb173301b38b06fd72b01115b02ba61fea6386779569d270ee3802ba55f1e5e16d3fb5885fba816d79b8a2ed3b48e9af646cd09f9444d29fbd8d9128a0bc60fba45455585006bddd8226121eea04a6a1fdad14b4a360cd33c2c61abf675a49aaa83cd68043f07c08de2abf065d57f682936b5a1da635f755645ea8079d46e33553dc98b7e214d8f9dd4064298363792848edee3b6424671faa4a1f2b664d1386b3c83a840feb0c106c6e1bd9dfc66093ae9f06db8ac73f6fb12706ff', + UPLOAD_FIRMWARE_BOSSAC: 'a965a14ec42c35a67f8d2f3f5235aaacbcc1b998b367d07a02d12992ec691f1723d00f0c3c1c64566e10823cca4947d7dd91e9ba4b28dffc112953f4ccf230adca274133f14ab3a13697c932c6c19ba05b4cd6d93141a31977ce7a53b253d761e2a503f55599a03605264d32e31c938966041709a824e64ddb0a2371e68c8d298dcd93cc8d451b8df1a7c1244e30b310fb10ec13448df3238bd0db5be0d1ec938b82b7c4f81262155c75b805700d0ff20b0404e27142014a2d74c3db677f32854dcda9052ccad9028e16cfb5151c09763e93a3a285be226dac849c519d79301962488c92723781d6a2063ee0021fa9f2c8d2dfcb7a6f01bcb4dbcd6b9f0d6322', + UPLOAD_FIRMWARE_AVRDUDE: '67e99fc73b0c9359219d30c11851d728a5e5559426c0151518aa947b48af3f58de4d0997143cad18bc1a2f6ae22863baab2e8b0de6fff549185f3dc82cbcce44690e0c50a92cebf0bd4377ae85f3961330c5fda40f3a567242eb74fe3d937b1abfe8be77a9fd658eed1a765bbc264702577fdd63da8d3073dd36dcdd37dc5762b162e18c284715012c1f303c77475703a5c8ef8bfc685e1650eb26058016d771bd4f53929a51666aef70126aabda80431671eb2ba9b729ee166079abac806567b9ae63ce2801f88964250596b8450fda112ac43b868634b91cb59d91d13c286d3ec19eb4a840d3af89413d24b198e2da616cb2bbff45cc58645aa1b1d52f71bf', }); // For versions of the fwupater tool <= 0.1.1 export const oldFwupdaterSignatures = Object.freeze({ GET_FIRMWARE_INFO: 'aceffd98d331df0daa5bb3308bb49a95767d77e7a1557c07a0ec544d2f41c3ec67269f01ce9a63e01f3b43e087ab8eb22b7f1d34135b6686e8ce27d4b5dc083ec8e6149df11880d32486448a71280ef3128efccbd45a84dbd7990a9420a65ee86b3822edba3554fa8e6ca11aec12d4dd99ad072285b98bfdf7b2b64f677da50feb8bddef25a36f52d7605078487d8a5d7cbdc84bfa65d510cee97b46baefea149139a9a6ed4b545346040536e33d850e6ad84c83fe605f677e2ca77439de3fa42350ce504ad9a49cf62c6751d4c2a284500d2c628cd52cd73b4c3e7ef08ae823eb8941383f9c6ff0686da532369d3b266ded8fdd33cca1a128068a4795920f25', - UPLOAD_FIRMWARE_BOSSAC: '5984d8da16919295b0b158cff9bad5fa7a235567a517a2b17bc320e46c0fecf8a01b3039003f420e18d9f9965320d280ab0d603ef40a9e7ba904f2be8a7ae19a33c80469c6c3f2e58041ca81cb99867c2712043810d1ccab7f2761dc718ba68d3f58d563965090033157e52f520aa20f5e796ba793550679e57d0c3fa0721347f34c228169817ac0f4d84f485652f90b26dc616b83a99ad3407b6b368d6ba3957ee477eda8225f91ec731dc9e22ec50f0ee5a2cdc263854643d53001e391abe471ba1ac61439dd6cb538005530c727faf5eba4e49d20adb98d9c89e1ada2338f6c4a5aac2fbb0387e1355eecb3fba984542a28f430441da63d66fc6871e54902', - UPLOAD_FIRMWARE_AVRDUDE: 'ab56d72ef250243b9799dd4b3dc3dc4ff236897ec0bb8a76f21015dfc1dc1458c8285eb7e5be96ca0d4873c7f8edeae29fedfeae91ab70047acbe9c98453754ba772918c4bba3bb08d80d70d3c717f483e29ed158a9c84fcc169accf58623a93fdd707315f3deae1fa3b030cbb543e05aab19e2854222246ed83123efcfe735d4722b798dbbcfb687c6b57986c2fff9311e41d2b7466b3c27c000a928fac5d2da9a03070b6585d0194d8c595788ef1d4e18046fd0e3f38a93925e6a370384e296b9cb59a1fd2c05157c16daf6d04d08d9a63588dd2d6d31cfa1f5b4102040ac04b87ea7e8d836d6c74b2d399033e7b2cdbf77975e4f7edb9a910447286e4c455' + UPLOAD_FIRMWARE_BOSSAC: 'b4fca4587e784952c53ad05bff80ed0b2880be885cb3f6bd9935864863cd36d3c9c26b30b2598727b03b1b409873fa2ce0560bf1933768d5ca45c64d5f0e5032b19146cba60d8f3aa2b19ba107be0c4fa592d86e44bc87f2330fc1c9995db0cc5ec884d8f294af5cbff3a81593849465eb0e4123e9b7ddb3be74b444bed40d539e724f9a41617f2e9c70b145c4a2688d47894319fd65d660ad7d8382fb56a455e28fa78042337d55f8b5ec4f2c16f3410d15c1551973eec2a80a1792c344f7835e2133f9279009a40054bf234f7bc194f7c18d0e6c7102d13823db1ad60d81b40e3e43f89eb26a0cc5fd9759286f11ba4b649829bda8a52d0013ee59e2df3b3b', + UPLOAD_FIRMWARE_AVRDUDE: '38bb99d99e00d91166ef095477b24b7a52eda0685db819486a723ee09e84ea84422b7f6c973466e97b832c5afa54a84a6d2dfad17a38f8f91059c5f62212c2a3e8a887c63b3b679eb1c4c2e76f2f4e943d8bd59a5f21283c9a3a7a9b5584c14b8adfc881315bcc605d26bfe31c9b2dfa5979d501b2333963614337668f0303ef6ddd3ec72a39b448d38c6af501a1357c6b8527f27ca8a096b7bc0413b1cb5f504d44bd502cee59444c00fae11cc59c51ae8153e4e481fb58a3ee3a7f23447aa9aa368b8cc0d0d107b77b234a7528ab10cbb5dc09de874ef2a6bd427aa2f83f99faabd54b272c7df3922fa5439e54e9d8b2793bc5ce1c5979f3f5e5db03853f53' });