Skip to content

Commit

Permalink
update
Browse files Browse the repository at this point in the history
  • Loading branch information
jingjingxyk committed May 27, 2024
1 parent e664f87 commit d9088b9
Show file tree
Hide file tree
Showing 4 changed files with 64 additions and 25 deletions.
46 changes: 46 additions & 0 deletions sapi/quickstart/windows/native-build/install-deps-helper-soft.bat
Original file line number Diff line number Diff line change
@@ -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
23 changes: 2 additions & 21 deletions sapi/quickstart/windows/native-build/install-deps-soft.bat
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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
Original file line number Diff line number Diff line change
Expand Up @@ -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


0 comments on commit d9088b9

Please sign in to comment.