How to produce a ZIP package for Magento Marketplace?

Use zip program:

zip -r mage2pro_core-2.12.27.zip . -x '.git/*' 'Core/T/*' 'Core/TestCase.php' 'Core/TestCaseBase.php'