This commit is contained in:
Yuri Kuznetsov
2019-12-18 10:52:26 +02:00
parent 0d744c5e7f
commit 4763cc80c3
+8
View File
@@ -111,6 +111,8 @@ function buildUpgradePackage(versionFrom, params)
{
return new Promise(function (resolve) {
var acceptedVersionName = params.acceptedVersionName || versionFrom;
var isDev = params.isDev;
var withVendor = params.withVendor;
var path = require('path');
var fs = require('fs');
@@ -239,6 +241,12 @@ function buildUpgradePackage(versionFrom, params)
cp.execSync('xargs -a ' + diffBeforeUpgradeFolderPath + ' cp -p --parents -t ' + upgradePath + '/beforeUpgradeFiles');
}
if (!isDev) {
if (fs.existsSync(upgradeDataFolderPath + '/scripts')) {
cp.execSync('cp -r ' + upgradeDataFolderPath + '/scripts ' + upgradePath + '/scripts');
}
}
execute('xargs -a ' + diffFilePath + ' cp -p --parents -t ' + upgradePath + '/files' , function (stdout) {
var d = new Date();