-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
1.添加build.bat脚本 2.添加StartManager程序
- Loading branch information
Showing
9 changed files
with
143 additions
and
36 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@echo off | ||
REM 设置解决方案文件路径 | ||
set SOLUTION_PATH=ServerSample.sln | ||
|
||
REM 切换到解决方案所在的目录 | ||
cd /d %~dp0 | ||
|
||
REM 运行dotnet build命令 | ||
dotnet build %SOLUTION_PATH% -c Release | ||
|
||
REM 检查构建是否成功 | ||
if %errorlevel% neq 0 ( | ||
echo Build failed | ||
) else ( | ||
echo Build succeeded | ||
) |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
@echo off | ||
REM 设置解决方案文件路径 | ||
set SOLUTION_PATH=StartManager.sln | ||
|
||
REM 切换到解决方案所在的目录 | ||
cd /d %~dp0 | ||
|
||
REM 运行dotnet build命令 | ||
dotnet build %SOLUTION_PATH% -c Release | ||
|
||
REM 检查构建是否成功 | ||
if %errorlevel% neq 0 ( | ||
echo Build failed | ||
) else ( | ||
echo Build succeeded | ||
) |
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,16 @@ | ||
@echo off | ||
REM 设置解决方案文件路径 | ||
set SOLUTION_PATH=UpgradeSample.sln | ||
|
||
REM 切换到解决方案所在的目录 | ||
cd /d %~dp0 | ||
|
||
REM 运行dotnet build命令 | ||
dotnet build %SOLUTION_PATH% -c Release | ||
|
||
REM 检查构建是否成功 | ||
if %errorlevel% neq 0 ( | ||
echo Build failed | ||
) else ( | ||
echo Build succeeded | ||
) |
This file was deleted.
Oops, something went wrong.
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,37 @@ | ||
@echo off | ||
REM 保存初始目录 | ||
set InitialDir=%CD% | ||
|
||
echo Starting hfs.exe... | ||
start "" .\FileService\hfs.exe | ||
echo hfs.exe has been started. | ||
|
||
echo Running Server.bat | ||
call .\Server\build.bat | ||
echo .\Server\build.bat completed | ||
|
||
cd /d %InitialDir% | ||
echo Running Upgrade.bat | ||
call .\Upgrade\build.bat | ||
echo .\Upgrade\build.bat completed | ||
|
||
cd /d %InitialDir% | ||
echo Running StartManager.bat | ||
call .\StartManager\build.bat | ||
echo .\StartManager\build.bat completed | ||
|
||
cd /d %InitialDir% | ||
echo Running Client.bat | ||
call .\Client\build.bat | ||
echo .\Client\build.bat completed | ||
|
||
echo All scripts completed. | ||
|
||
REM 使用 timeout 命令进行2秒倒计时 | ||
timeout /t 3 /nobreak >nul | ||
|
||
cd /d %InitialDir% | ||
echo Running StartManager | ||
start "" .\StartManager\bin\Release\net8.0\StartManager.exe | ||
|
||
exit |