The script/package file contained code which is no longer valid for Magento 2 version. For this version all meta information must be inside the composer.json file. Also Matkerplace supports only .zip file (based on https://github.com/magento/marketplace-tools) but I left the .tgz file just in case.
Note about installation process.
All dependencies are installed automatically by Composer so there is no more need to include Bitpay PHP client to the package. From the build script were removed external packages which required run Composer install so this is no longer neccesary.
There are two ways to install module.
If the module will be put to the Magento Marketplace just run compores install bitpay/magento2-plugin (name can be other depend the Marketplace).
Or from local filesystem which requires these steps:
run composer config repositories.local artifact temp-repos command in Magento root path. This will create new directory named "temp-repos" If you want a different name just change the last part of the composer command.
To the new created directory put your module as ZIP package.
Run compores install bitpay/magento2-plugin.
After that the module will be installed in the "vendor" directory with all dependencies. That means it will be not in the "app/code".
The
script/package
file contained code which is no longer valid for Magento 2 version. For this version all meta information must be inside the composer.json file. Also Matkerplace supports only .zip file (based on https://github.com/magento/marketplace-tools) but I left the .tgz file just in case.Note about installation process.
All dependencies are installed automatically by Composer so there is no more need to include Bitpay PHP client to the package. From the build script were removed external packages which required run Composer install so this is no longer neccesary.
There are two ways to install module.
If the module will be put to the Magento Marketplace just run
compores install bitpay/magento2-plugin
(name can be other depend the Marketplace).Or from local filesystem which requires these steps:
run
composer config repositories.local artifact temp-repos
command in Magento root path. This will create new directory named "temp-repos" If you want a different name just change the last part of the composer command.To the new created directory put your module as ZIP package.
Run
compores install bitpay/magento2-plugin
.After that the module will be installed in the "vendor" directory with all dependencies. That means it will be not in the "app/code".
The next step is to type Magento commands: