-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
dc98c4c
commit 2a748d2
Showing
61 changed files
with
769 additions
and
422 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,47 @@ | ||
<?php declare(strict_types=1); | ||
|
||
require_once __DIR__ . '/../../../../vendor/autoload.php'; | ||
|
||
use Monolog\Formatter\LineFormatter; | ||
use Monolog\Handler\StreamHandler; | ||
use Monolog\Logger; | ||
|
||
const COMPOSER_JSON_DEST = __DIR__ . '/../composer.json'; | ||
const SYS_TMP_DIR = __DIR__ . '/../'; | ||
const TMP_DIR = __DIR__ . '/../'; | ||
const SHOPWARE_VERSIONS = '6.6.*'; | ||
|
||
// Type of release you are making | ||
const RELEASE_GIT_ENV = 'GIT'; | ||
const RELEASE_SW_ENV = 'SW'; | ||
|
||
$release_env = ($argv[1] == RELEASE_SW_ENV) ? RELEASE_SW_ENV : RELEASE_GIT_ENV; | ||
|
||
$formatter = new LineFormatter(null, null, false, true); | ||
$logger = (new Logger('release')) | ||
->pushHandler((new StreamHandler('php://stdout'))->setFormatter($formatter)); | ||
|
||
$composerJsonData = json_decode(file_get_contents(COMPOSER_JSON_DEST), true); | ||
$composerJsonData['require']['shopware/core'] = SHOPWARE_VERSIONS; | ||
$composerJsonData['require']['shopware/storefront'] = SHOPWARE_VERSIONS; | ||
|
||
switch ($release_env) { | ||
case RELEASE_GIT_ENV: | ||
exec('composer require postfinancecheckout/sdk 4.6.0 -d /var/www/html'); | ||
$composerJsonData['require']['postfinancecheckout/sdk'] = '4.6.0'; | ||
break; | ||
case RELEASE_SW_ENV: | ||
exec('composer require postfinancecheckout/sdk 4.6.0 -d /var/www/html/custom/plugins/PostFinanceCheckoutPayment'); | ||
break; | ||
} | ||
|
||
$composerJsonData['version'] = '6.1.8'; | ||
|
||
$logger->info('Adding shopware/core and shopware/storefront to the composer.json.'); | ||
file_put_contents( | ||
TMP_DIR . '/composer.json', | ||
json_encode($composerJsonData, JSON_PRETTY_PRINT | JSON_UNESCAPED_SLASHES) | ||
); | ||
chdir(TMP_DIR); | ||
exec('rm -fr composer.lock'); | ||
exec('rm -fr bin'); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,66 +1,62 @@ | ||
{ | ||
"authors": [ | ||
{ | ||
"homepage": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html", | ||
"name": "PostFinance Checkout" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"PostFinanceCheckoutPayment\\": "src/" | ||
} | ||
}, | ||
"conflict": { | ||
"shopware/administration": "<6.5.0.0,>=7", | ||
"shopware/storefront": "<6.5.0.0,>=7" | ||
}, | ||
"description": "PostFinanceCheckout integration for Shopware 6", | ||
"extra": { | ||
"copyright": "(c) by PostFinance Checkout", | ||
"description": { | ||
"de-DE": "PostFinanceCheckout integration f\u00fcr Shopware 6", | ||
"en-GB": "PostFinanceCheckout integration for Shopware 6", | ||
"fr-FR": "Int\u00e9gration de PostFinanceCheckout pour Shopware 6", | ||
"it-IT": "Integrazione PostFinanceCheckout per Shopware" | ||
}, | ||
"label": { | ||
"de-DE": "PostFinanceCheckout Produkte f\u00fcr Shopware 6", | ||
"en-GB": "PostFinanceCheckout Products for Shopware 6", | ||
"fr-FR": "PostFinanceCheckout Produits for Shopware 6", | ||
"it-IT": "PostFinanceCheckout Prodotti per Shopware 6" | ||
}, | ||
"manufacturerLink": { | ||
"de-DE": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html", | ||
"en-GB": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html", | ||
"fr-FR": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html", | ||
"it-IT": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html" | ||
}, | ||
"supportLink": { | ||
"de-DE": "https://www.postfinance.ch/en/business/support.html", | ||
"en-GB": "https://www.postfinance.ch/en/business/support.html", | ||
"fr-FR": "https://www.postfinance.ch/en/business/support.html", | ||
"it-IT": "https://www.postfinance.ch/en/business/support.html" | ||
}, | ||
"shopware-plugin-class": "PostFinanceCheckoutPayment\\PostFinanceCheckoutPayment" | ||
}, | ||
"homepage": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html/", | ||
"keywords": [ | ||
"PostFinance Checkout", | ||
"payment", | ||
"php", | ||
"shopware" | ||
], | ||
"license": "Apache-2.0", | ||
"name": "postfinancecheckout/shopware-6", | ||
"require": { | ||
"ext-curl": "*", | ||
"ext-json": "*", | ||
"ext-mbstring": "*", | ||
"php": ">=7.4", | ||
"shopware/core": "6.5.*", | ||
"shopware/storefront": "6.5.*", | ||
"postfinancecheckout/sdk": "4.5.0" | ||
}, | ||
"type": "shopware-platform-plugin", | ||
"version": "5.0.13" | ||
} | ||
"authors": [ | ||
{ | ||
"homepage": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html", | ||
"name": "PostFinance Checkout" | ||
} | ||
], | ||
"autoload": { | ||
"psr-4": { | ||
"PostFinanceCheckoutPayment\\": "src/" | ||
} | ||
}, | ||
"conflict": { | ||
"shopware/administration": "<6.6.0.0,>=7", | ||
"shopware/storefront": "<6.6.0.0,>=7" | ||
}, | ||
"description": "PostFinanceCheckout integration for Shopware 6", | ||
"extra": { | ||
"copyright": "(c) by PostFinance Checkout", | ||
"description": { | ||
"de-DE": "PostFinanceCheckout integration für Shopware 6", | ||
"en-GB": "PostFinanceCheckout integration for Shopware 6", | ||
"fr-FR": "Intégration de PostFinanceCheckout pour Shopware 6", | ||
"it-IT": "Integrazione PostFinanceCheckout per Shopware" | ||
}, | ||
"label": { | ||
"de-DE": "PostFinanceCheckout Produkte für Shopware 6", | ||
"en-GB": "PostFinanceCheckout Products for Shopware 6", | ||
"fr-FR": "PostFinanceCheckout Produits for Shopware 6", | ||
"it-IT": "PostFinanceCheckout Prodotti per Shopware 6" | ||
}, | ||
"manufacturerLink": { | ||
"de-DE": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html", | ||
"en-GB": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html", | ||
"fr-FR": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html", | ||
"it-IT": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html" | ||
}, | ||
"supportLink": { | ||
"de-DE": "https://www.postfinance.ch/en/business/support.html", | ||
"en-GB": "https://www.postfinance.ch/en/business/support.html", | ||
"fr-FR": "https://www.postfinance.ch/en/business/support.html", | ||
"it-IT": "https://www.postfinance.ch/en/business/support.html" | ||
}, | ||
"shopware-plugin-class": "PostFinanceCheckoutPayment\\PostFinanceCheckoutPayment" | ||
}, | ||
"homepage": "https://postfinance.ch/en/business/products/e-commerce/postfinance-checkout-all-in-one.html/", | ||
"keywords": [ | ||
"PostFinance Checkout", | ||
"payment", | ||
"php", | ||
"shopware" | ||
], | ||
"license": "Apache-2.0", | ||
"name": "postfinancecheckout/shopware-6", | ||
"require": { | ||
"ext-curl": "*", | ||
"ext-json": "*", | ||
"ext-mbstring": "*", | ||
"php": ">=8.2" | ||
}, | ||
"type": "shopware-platform-plugin" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.