commit ae17d277f917a27e08f79658c7011f42ea2c36be Author: 徐海 Date: Mon Mar 2 11:04:44 2026 +0800 初始化代码仓 diff --git a/tools/build_resource_file.bat b/tools/build_resource_file.bat new file mode 100644 index 0000000..e094649 --- /dev/null +++ b/tools/build_resource_file.bat @@ -0,0 +1,13 @@ +@echo off + +set PROJECTDIR=%~dp0.. +cd %PROJECTDIR%/bin + +if exist style.rcc ( + del /s /f /q theme.rcc +) + +set QTDIR=C:/Qt/Qt5.13.0/5.13.0/msvc2017_64/bin +%QTDIR%/rcc --binary %PROJECTDIR%/style/Resources.qrc -o %PROJECTDIR%/bin/theme.rcc + +pause diff --git a/tools/clean_vs_tmp.bat b/tools/clean_vs_tmp.bat new file mode 100644 index 0000000..d8a47eb --- /dev/null +++ b/tools/clean_vs_tmp.bat @@ -0,0 +1,18 @@ +@echo off + +set PROJECTDIR=%~dp0.. +cd %PROJECTDIR% + +for /r %%i in (vcproject,debug,release,ipch,.vs,tmp) do ( + if exist %%i ( + rd /s /q %%i + ) +) + +for /r %%i in (*.sln,*.vcxproj,*.vcxproj.filters,*.pdb,*.sdf,*.ncb,*.suo,*.exp,*.user,*.aps,*.idb,*.dep,*.opt,*.plg,*.bsc,*.ilk,*.trg) do ( + if exist %%i ( + del /s /f /q %%i + ) +) + +pause diff --git a/tools/generate_vc_project.bat b/tools/generate_vc_project.bat new file mode 100644 index 0000000..05be1b5 --- /dev/null +++ b/tools/generate_vc_project.bat @@ -0,0 +1,16 @@ +@echo off + +set PROJECTDIR=%~dp0.. +cd %PROJECTDIR% + +if exist vcproject ( + rd /s /q vcproject +) + +mkdir vcproject +cd vcproject + +set QTDIR=C:/Qt/Qt5.13.0/5.13.0/msvc2017_64/bin +%QTDIR%/qmake -tp vc -recursive %PROJECTDIR%/EnergySpectrumAnalyer.pro + +pause