代码拉取完成,页面将自动刷新
同步操作将从 dromara/northstar 强制同步,此操作会覆盖自 Fork 仓库以来所做的任何修改,且无法恢复!!!
确定后同步将在后台操作,完成时将刷新页面,请耐心等待。
#检查env.ps1脚本是否已经运行过,没有的话就运行,确保环境准备好
Invoke-WebRequest https://gitee.com/dromara/northstar/raw/master/env.ps1 -OutFile env.ps1;
. .\env.ps1
$BasePath = "c:\northstar_env\"
$WorkspacePath = "c:\northstar_workspace\"
If(!(test-path $WorkspacePath))
{
New-Item -Path $WorkspacePath -ItemType Directory
}
#Git下载地址
$GitDownloadUrl = "https://npm.taobao.org/mirrors/git-for-windows/v2.32.0.windows.1/Git-2.32.0-64-bit.exe"
#Eclipse地址
$EclipseDownloadUrl = "https://download.springsource.com/release/STS4/4.14.0.RELEASE/dist/e4.23/spring-tool-suite-4-4.14.0.RELEASE-e4.23.0-win32.win32.x86_64.self-extracting.jar"
#northstar仓库地址
$NorthstarRepository = "https://gitee.com/dromara/northstar.git"
If(checkCommand git.exe *){
"Git installed"
} else {
$gitFile = "Git-2.35.1.2-64-bit.exe"
if(!(test-path $BasePath$gitFile)){
"Start downloading Git"
Invoke-WebRequest $GitDownloadUrl -OutFile $BasePath$gitFile
}
"Start installing Git"
Start-Process $BasePath$gitFile -ArgumentList "/silent" -wait
$env:Path = [System.Environment]::GetEnvironmentVariable("Path","Machine") + ";" + [System.Environment]::GetEnvironmentVariable("Path","User")
}
"Cloning repository"
git clone $NorthstarRepository $WorkspacePath\northstar
cd $WorkspacePath\northstar
Start-Process mvn -ArgumentList "clean install -Dmaven.test.skip=true"
$stsJarName = "spring-tool-suite-4-4.14.0.RELEASE-e4.23.0-win32.win32.x86_64.self-extracting.jar"
if(test-path $BasePath$stsJarName){
"STS package is ready"
} else {
"Start downloading STS"
Invoke-WebRequest $EclipseDownloadUrl -OutFile $BasePath$stsJarName
}
if(test-path "$BasePath\sts-4.14.0.RELEASE"){
"STS is installed"
} else {
cd $BasePath
java -jar $BasePath$stsJarName
}
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。