r0gue-io / pop-cli

An all-in-one tool for Polkadot development.
GNU General Public License v3.0
57 stars 17 forks source link

refactor: simplify and rename `substracte-contracts-node` binary extraction #224

Open AlexD10S opened 6 days ago

AlexD10S commented 6 days ago

When the substrate-contracts-node binary is downloaded from GitHub releases, it extracts the files into the following structure: artifacts/substrate-contracts-node-mac or artifacts/substrate-contracts-node-linux.

After unpacking the contents into the cache folder (see code https://github.com/r0gue-io/pop-cli/blob/main/crates/pop-contracts/src/utils/contracts_node.rs#L62), move the binary outside the folder, remove the artifacts directory, and rename the binary substrate-contracts-node to eliminate the need to check the OS when using the binary.