diff --git a/sapi/quickstart/windows/native-build/install-deps-helper-soft.bat b/sapi/quickstart/windows/native-build/install-deps-helper-soft.bat new file mode 100644 index 0000000000..ce52dd0b8a --- /dev/null +++ b/sapi/quickstart/windows/native-build/install-deps-helper-soft.bat @@ -0,0 +1,46 @@ +@echo off + +rem chcp 65001 + +setlocal +rem show current file location +echo %~dp0 +cd /d %~dp0 +cd /d .\..\..\..\..\ + +set "__PROJECT__=%cd%" +echo %cd% + + +rem silent installation msi + +rem start /wait "" "安装程序路径.exe" /SILENT /NORESTART + + +:: 设置Git安装路径 +set "INSTALL_PATH=C:\Program Files\Git" + +:: 创建安装目录 +if not exist "%INSTALL_PATH%" mkdir "%INSTALL_PATH%" + +:: 静默安装Git +:: 查看git 安装参数 +:: %__PROJECT__%\Git-2.45.1-64-bit.exe /? +start /wait "" "%__PROJECT__%\Git-2.45.1-64-bit.exe" /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEONEXIT=1 /DIR="%INSTALL_PATH%" + + + +:: 更新环境变量 + +echo git installing +set "PATH=%PATH%;%__PROJECT__%\php\;%__PROJECT__%\nasm\;C:\Strawberry\perl\bin;C:\Program Files\Git\bin;%__PROJECT__%\curl-8.8.0_1-win64-mingw\bin;%__PROJECT__%\libarchive\bin;" +echo %PATH% + + +perl -v +php -v +nasm -v +git version +curl -V + +endlocal diff --git a/sapi/quickstart/windows/native-build/install-deps-soft.bat b/sapi/quickstart/windows/native-build/install-deps-soft.bat index c554a02750..fb84571758 100644 --- a/sapi/quickstart/windows/native-build/install-deps-soft.bat +++ b/sapi/quickstart/windows/native-build/install-deps-soft.bat @@ -18,32 +18,13 @@ rem msiexec /i strawberry-perl-5.38.2.2-64bit.msi /quiet msiexec /i strawberry-perl-5.38.2.2-64bit.msi /passive -rem start /wait "" "安装程序路径.exe" /SILENT /NORESTART - - -:: 设置Git安装路径 -set "INSTALL_PATH=C:\Program Files\Git" - -:: 创建安装目录 -if not exist "%INSTALL_PATH%" mkdir "%INSTALL_PATH%" - -:: 静默安装Git -:: 查看git 安装参数 -:: %__PROJECT__%\Git-2.45.1-64-bit.exe /? -start /wait "" "%__PROJECT__%\Git-2.45.1-64-bit.exe" /VERYSILENT /NORESTART /NOCANCEL /SP- /CLOSEONEXIT=1 /DIR="%INSTALL_PATH%" - - - -:: 更新环境变量 - -echo git installing -set "PATH=%PATH%;%__PROJECT__%\php\;%__PROJECT__%\nasm\;C:\Strawberry\perl\bin;C:\Program Files\Git\bin;" +set "PATH=%PATH%;%__PROJECT__%\php\;%__PROJECT__%\nasm\;C:\Strawberry\perl\bin;" echo %PATH% perl -v php -v nasm -v -git version + endlocal diff --git a/sapi/quickstart/windows/native-build/msys2/msys2-download-deps-soft.sh b/sapi/quickstart/windows/native-build/msys2/msys2-download-deps-soft.sh index 0e62f8acd8..5b12107c8b 100644 --- a/sapi/quickstart/windows/native-build/msys2/msys2-download-deps-soft.sh +++ b/sapi/quickstart/windows/native-build/msys2/msys2-download-deps-soft.sh @@ -22,6 +22,3 @@ ls -lh nasm # https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/ test -f strawberry-perl-5.38.2.2-64bit.msi || curl -Lo strawberry-perl-5.38.2.2-64bit.msi https://github.com/StrawberryPerl/Perl-Dist-Strawberry/releases/download/SP_53822_64bit/strawberry-perl-5.38.2.2-64bit.msi - - -test -f Git-2.45.1-64-bit.exe || curl -Lo Git-2.45.1-64-bit.exe https://github.com/git-for-windows/git/releases/download/v2.45.1.windows.1/Git-2.45.1-64-bit.exe diff --git a/sapi/quickstart/windows/native-build/msys2/msys2-download-helper-soft.sh b/sapi/quickstart/windows/native-build/msys2/msys2-download-helper-soft.sh index 08609ba776..db4ae6fc50 100644 --- a/sapi/quickstart/windows/native-build/msys2/msys2-download-helper-soft.sh +++ b/sapi/quickstart/windows/native-build/msys2/msys2-download-helper-soft.sh @@ -12,8 +12,23 @@ __PROJECT__=$( cd ${__PROJECT__} - +# https://github.com/notepad-plus-plus/notepad-plus-plus/ test -f npp.8.6.7.Installer.x64.exe || curl -Lo npp.8.6.7.Installer.x64.exe https://github.com/notepad-plus-plus/notepad-plus-plus/releases/download/v8.6.7/npp.8.6.7.Installer.x64.exe + +# https://7-zip.org/ test -f 7z2405-x64.exe || curl -Lo 7z2405-x64.exe https://7-zip.org/a/7z2405-x64.exe +test -f Git-2.45.1-64-bit.exe || curl -Lo Git-2.45.1-64-bit.exe https://github.com/git-for-windows/git/releases/download/v2.45.1.windows.1/Git-2.45.1-64-bit.exe + +# https://curl.se/windows/ + +test -f curl-8.8.0_1-win64-mingw.zip || curl -Lo curl-8.8.0_1-win64-mingw.zip https://curl.se/windows/dl-8.8.0_1/curl-8.8.0_1-win64-mingw.zip +test -d curl-8.8.0_1-win64-mingw && rm -rf curl-8.8.0_1-win64-mingw +unzip curl-8.8.0_1-win64-mingw.zip + +# https://libarchive.org/ +test -f libarchive-v3.7.4-amd64.zip || curl -Lo libarchive-v3.7.4-amd64.zip https://libarchive.org/downloads/libarchive-v3.7.4-amd64.zip +unzip libarchive-v3.7.4-amd64.zip + +