From 90c9cdc9fac5dc42283abb812aa89ebe6fefe783 Mon Sep 17 00:00:00 2001 From: hufangzhou Date: Thu, 25 Aug 2022 10:34:32 +0800 Subject: [PATCH] * Add php 8.1 for package. --- tools/packDeb.php | 6 +++--- tools/packRpm.php | 6 +++--- tools/packZip.php | 15 +++++++++------ 3 files changed, 15 insertions(+), 12 deletions(-) diff --git a/tools/packDeb.php b/tools/packDeb.php index 25545d2555..8df6633a86 100644 --- a/tools/packDeb.php +++ b/tools/packDeb.php @@ -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}/"; diff --git a/tools/packRpm.php b/tools/packRpm.php index 349b307df6..cb3e684f03 100644 --- a/tools/packRpm.php +++ b/tools/packRpm.php @@ -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}/"; diff --git a/tools/packZip.php b/tools/packZip.php index ea7abd8064..6709315202 100644 --- a/tools/packZip.php +++ b/tools/packZip.php @@ -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";