* Add php 8.1 for package.
This commit is contained in:
+3
-3
@@ -10,13 +10,13 @@ $fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php5.4_5.6.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php7.0.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php7.1.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php7.2_7.4.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php8.0.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php8.1.zip";
|
||||
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php5.4_5.6.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php7.0.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php7.1.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php7.2_7.4.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php8.0.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php8.1.zip";
|
||||
|
||||
foreach($fileList as $file) if(!file_exists($file)) echo basename($file) . " is not exists\n";
|
||||
|
||||
@@ -30,7 +30,7 @@ foreach(array('zh-cn', 'en') as $langType)
|
||||
$dirName = $langType == 'zh-cn' ? 'zentaopms' : 'zentaoalm';
|
||||
|
||||
/* Cycle the php versions. */
|
||||
foreach(array('5.4_5.6', '7.0', '7.1', '7.2_7.4', '8.0') as $phpVersion)
|
||||
foreach(array('5.4_5.6', '7.0', '7.1', '7.2_7.4', '8.1') as $phpVersion)
|
||||
{
|
||||
/* File name. */
|
||||
$workDir = "tmp/$packPrefix.{$version}.{$phpVersion}/";
|
||||
|
||||
+3
-3
@@ -10,13 +10,13 @@ $fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php5.4_5.6.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php7.0.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php7.1.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php7.2_7.4.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php8.0.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoPMS.$pmsVersion.php8.1.zip";
|
||||
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php5.4_5.6.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php7.0.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php7.1.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php7.2_7.4.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php8.0.zip";
|
||||
$fileList[] = "{$basePath}/ZenTaoALM.$pmsVersion.int.php8.1.zip";
|
||||
|
||||
foreach($fileList as $file) if(!file_exists($file)) echo basename($file) . " is not exists\n";
|
||||
|
||||
@@ -30,7 +30,7 @@ foreach(array('zh-cn', 'en') as $langType)
|
||||
$dirName = $langType == 'zh-cn' ? 'zentaopms' : 'zentaoalm';
|
||||
|
||||
/* Cycle the php versions. */
|
||||
foreach(array('5.4_5.6', '7.0', '7.1', '7.2_7.4', '8.0') as $phpVersion)
|
||||
foreach(array('5.4_5.6', '7.0', '7.1', '7.2_7.4', '8.1') as $phpVersion)
|
||||
{
|
||||
/* File name. */
|
||||
$workDir = "tmp/$packPrefix.{$version}.{$phpVersion}/";
|
||||
|
||||
+9
-6
@@ -21,11 +21,13 @@ $fileList[] = "{$basePath}/zentaobiz.php5.4_5.6.zip";
|
||||
$fileList[] = "{$basePath}/zentaobiz.php7.0.zip";
|
||||
$fileList[] = "{$basePath}/zentaobiz.php7.1.zip";
|
||||
$fileList[] = "{$basePath}/zentaobiz.php7.2_7.4.zip";
|
||||
$fileList[] = "{$basePath}/zentaobiz.php8.1.zip";
|
||||
|
||||
$fileList[] = "{$basePath}/zentaomax.php5.4_5.6.zip";
|
||||
$fileList[] = "{$basePath}/zentaomax.php7.0.zip";
|
||||
$fileList[] = "{$basePath}/zentaomax.php7.1.zip";
|
||||
$fileList[] = "{$basePath}/zentaomax.php7.2_7.4.zip";
|
||||
$fileList[] = "{$basePath}/zentaomax.php8.1.zip";
|
||||
|
||||
foreach($fileList as $file) if(!file_exists($file)) echo basename($file) . " is not exists\n";
|
||||
|
||||
@@ -33,10 +35,12 @@ foreach($fileList as $file) if(!file_exists($file)) echo basename($file) . " is
|
||||
`unzip {$basePath}/zentaobiz.php7.0.zip; mv biz zentaobiz.php7.0`;
|
||||
`unzip {$basePath}/zentaobiz.php7.1.zip; mv biz zentaobiz.php7.1`;
|
||||
`unzip {$basePath}/zentaobiz.php7.2_7.4.zip; mv biz zentaobiz.php7.2_7.4`;
|
||||
`unzip {$basePath}/zentaobiz.php8.1.zip; mv biz zentaobiz.php8.1`;
|
||||
`unzip {$basePath}/zentaomax.php5.4_5.6.zip; mv max zentaomax.php5.4_5.6`;
|
||||
`unzip {$basePath}/zentaomax.php7.0.zip; mv max zentaomax.php7.0`;
|
||||
`unzip {$basePath}/zentaomax.php7.1.zip; mv max zentaomax.php7.1`;
|
||||
`unzip {$basePath}/zentaomax.php7.2_7.4.zip; mv max zentaomax.php7.2_7.4`;
|
||||
`unzip {$basePath}/zentaomax.php8.1.zip; mv max zentaomax.php8.1`;
|
||||
|
||||
/* Create shells to make zip format packages. */
|
||||
$shellList = array();
|
||||
@@ -48,12 +52,11 @@ foreach(array('zh-cn', 'en') as $langType)
|
||||
$dirName = $langType == 'zh-cn' ? 'zentaopms' : 'zentaoalm';
|
||||
|
||||
/* Cycle the php versions. */
|
||||
foreach(array('5.4_5.6', '7.0', '7.1', '7.2_7.4', '8.0') as $phpVersion)
|
||||
foreach(array('5.4_5.6', '7.0', '7.1', '7.2_7.4', '8.1') as $phpVersion)
|
||||
{
|
||||
/* File name. */
|
||||
$workDir = "tmp/$packPrefix.{$version}.{$phpVersion}/";
|
||||
$shellName = $workDir . "make.sh";
|
||||
$encryptedPhpVersion = $phpVersion == '8.0' ? '7.2_7.4' : $phpVersion;
|
||||
$workDir = "tmp/$packPrefix.{$version}.{$phpVersion}/";
|
||||
$shellName = $workDir . "make.sh";
|
||||
echo "Creating $shellName\n";
|
||||
|
||||
mkdir($workDir, 0777, true);
|
||||
@@ -63,8 +66,8 @@ foreach(array('zh-cn', 'en') as $langType)
|
||||
//$command .= "if [ ! -d ../$dirName ]; then unzip ../../$packPrefix.{$version}.zip -d ../ ; fi\n";
|
||||
$command .= "unzip ../../$packPrefix.{$version}.zip\n";
|
||||
//$command .= "cp -raf ../$dirName .\n";
|
||||
$command .= "cp -rf ../../zentaobiz.php$encryptedPhpVersion/* $dirName/\n";
|
||||
$command .= "cp -rf ../../zentaomax.php$encryptedPhpVersion/* $dirName/\n";
|
||||
$command .= "cp -rf ../../zentaobiz.php$phpVersion/* $dirName/\n";
|
||||
$command .= "cp -rf ../../zentaomax.php$phpVersion/* $dirName/\n";
|
||||
$command .= "zip -r ../../$packPrefix.{$version}.php{$phpVersion}.zip $dirName\n";
|
||||
|
||||
$command .= "rm -rf $dirName/\n";
|
||||
|
||||
Reference in New Issue
Block a user