1
0
mirror of synced 2025-02-14 22:13:19 +03:00
bitrix-module/bin/build-release
Neur0toxine 5f69051859
Программа лояльности
* New module structure (refactoring)
* Simple serializer and deserializer with models, new architecture
* Move logic to strategies
* Partial api client facade implementation (full implementation is not necessary for now)
* Loyalty feature installer
* Sms verification order (#167)
* Make updater self-sufficient
* Fix for order submit & fix for incorrect component rendering in the constructor
* Fix for loyalty personal area error handling
* Fix for cart component identity
* Fix for softlock when customer cannot be registered in loyalty

Co-authored-by: Сергей Чазов <45812598+Chazovs@users.noreply.github.com>
Co-authored-by: Sergey Chazov <oitv18@gmail.com>
2021-11-16 10:48:26 +03:00

39 lines
874 B
PHP

#!/usr/bin/env php
<?php
error_reporting(E_ALL ^ E_DEPRECATED);
require_once __DIR__ . '/../helpers/release/ReleaseBuilder.php';
require_once __DIR__ . '/../helpers/release/ModifiedFile.php';
require_once __DIR__ . '/../intaro.retailcrm/install/version.php';
define('RELEASE_DIR', __DIR__ . '/../release/');
define('ORIGINAL', __DIR__ . '/../intaro.retailcrm/');
if (!file_exists(RELEASE_DIR . 'diff')) {
print('Diff file does not exists');
exit(255);
}
$handle = fopen(RELEASE_DIR . 'diff', 'r');
if (!$handle) {
exit(255);
}
$modifiedFiles = [];
while (($buffer = fgets($handle)) !== false) {
$modifiedFiles[] = new ModifiedFile($buffer);
}
try {
$builder = new ReleaseBuilder($modifiedFiles, $arModuleVersion['VERSION']);
$builder->build();
} catch(\Exception $exception) {
print($exception->getMessage());
exit(255);
}
exit(0);