pickware / scs-commander

A CLI tool for managing plugins in the Shopware Community Store.
MIT License
13 stars 2 forks source link

Fix `upload` command #62

Closed svenmuennich closed 4 months ago

svenmuennich commented 4 months ago

Shopware changed their store API to require a different sequence of requests when uploading a new binary or replacing an existing binary.

Old sequence:

  1. Upload the plugin .zip file to create a new binary entity.
  2. Set version, changelog, compatible Shopware versions and options on the binary received in 1.
  3. Save the modified binary.

New sequence:

  1. Validate the plugin .zip file (only when creating a new version).
  2. Create a new binary with version, changelog and compatible Shopware versions (only when creating a new version).
  3. Upload the plugin .zip file for the new or existing binary.
  4. Update version, changelog, compatible Shopware versions and options of the new or existing binary again.

Since Shopware stopped supporting ionCube encryption (it is no longer offered when creating a release via their account UI) I also deprecate the respective command option with this PR.


Fixes #61

hanneswernery commented 4 months ago

"briliant" brilliant