forked from swoole/swoole-cli
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
e664f87
commit d9088b9
Showing
4 changed files
with
64 additions
and
25 deletions.
There are no files selected for viewing
46 changes: 46 additions & 0 deletions
46
sapi/quickstart/windows/native-build/install-deps-helper-soft.bat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters