From 6c4fc391323808ffc437ba10e6683926835b08bd Mon Sep 17 00:00:00 2001 From: jay <917647288@qq.com> Date: Thu, 31 Oct 2024 09:23:01 +0800 Subject: [PATCH 1/2] =?UTF-8?q?=E6=B7=BB=E5=8A=A0=20mac=20=E5=AE=89?= =?UTF-8?q?=E8=A3=85xlswriter=E6=89=A9=E5=B1=95=E8=84=9A=E6=9C=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extra/darwin/Core/script/php/xlswriter.sh | 32 +++++++++++++++++++++++ 1 file changed, 32 insertions(+) create mode 100644 extra/darwin/Core/script/php/xlswriter.sh diff --git a/extra/darwin/Core/script/php/xlswriter.sh b/extra/darwin/Core/script/php/xlswriter.sh new file mode 100644 index 00000000..35ce40e8 --- /dev/null +++ b/extra/darwin/Core/script/php/xlswriter.sh @@ -0,0 +1,32 @@ +#!/bin/bash +dlDir=$1 +phpDir=$2 +extVersion=$3 + +cd $dlDir +echo 'Downloading...' +curl -C - -O -s https://pecl.php.net/get/xlswriter-$extVersion.tgz +echo 'Downloaded' +if [ -d "xlswriter-$extVersion" ]; then + rm -rf "xlswriter-$extVersion" +fi +if [ -f "xlswriter-$extVersion.tgz" ]; then + tar -zxf xlswriter-$extVersion.tgz +else + exit 1 +fi + +export HOMEBREW_NO_AUTO_UPDATE=1 +brew install pkg-config autoconf automake libtool + +x86_64_brewPath=/usr/local/homebrew/bin/brew + +prefix=$(arch -x86_64 $x86_64_brewPath --prefix) +export CFLAGS=-I$prefix/include +lib=$prefix/opt/zlib + +cd "xlswriter-$extVersion" +$phpDir/bin/phpize +./configure --with-php-config=$phpDir/bin/php-config --enable-reader --with-zlib-dir=/Applications/EServer/Library/zlib +arch -x86_64 make -j4 +make install From 128beb532b58f6cf370daf391ef577cb1e111509 Mon Sep 17 00:00:00 2001 From: jay <917647288@qq.com> Date: Fri, 1 Nov 2024 13:44:09 +0800 Subject: [PATCH 2/2] =?UTF-8?q?=E5=88=A0=E9=99=A4=E6=97=A0=E7=94=A8?= =?UTF-8?q?=E8=AF=AD=E5=8F=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- extra/darwin/Core/script/php/xlswriter.sh | 1 - 1 file changed, 1 deletion(-) diff --git a/extra/darwin/Core/script/php/xlswriter.sh b/extra/darwin/Core/script/php/xlswriter.sh index 35ce40e8..b90b8fc5 100644 --- a/extra/darwin/Core/script/php/xlswriter.sh +++ b/extra/darwin/Core/script/php/xlswriter.sh @@ -23,7 +23,6 @@ x86_64_brewPath=/usr/local/homebrew/bin/brew prefix=$(arch -x86_64 $x86_64_brewPath --prefix) export CFLAGS=-I$prefix/include -lib=$prefix/opt/zlib cd "xlswriter-$extVersion" $phpDir/bin/phpize