diff --git "a/\346\211\247\350\241\214\350\204\232\346\234\254.bat" "b/\346\211\247\350\241\214\350\204\232\346\234\254.bat" index 374940b..90fa97e 100644 --- "a/\346\211\247\350\241\214\350\204\232\346\234\254.bat" +++ "b/\346\211\247\350\241\214\350\204\232\346\234\254.bat" @@ -1,19 +1,19 @@ @echo off -chcp 936 +chcp 65001 -Rem 删除已经存在的懒人版相关文件 +Rem 鍒犻櫎宸茬粡瀛樺湪鐨勬噿浜虹増鐩稿叧鏂囦欢 IF EXIST "%~dp0Output" (rd /s /q "%~dp0Output") IF EXIST "%~dp0Temp" (rd /s /q "%~dp0Temp") -Rem 创建便携版 NVDA +Rem 鍒涘缓渚挎惡鐗 NVDA for /r "%~dp0Resource" %%i in (nvda_20*.exe) do ( %%i --create-portable-silent --portable-path="%~dp0Temp\NVDA" ) -Rem 生成文档的 txt 版本 +Rem 鐢熸垚鏂囨。鐨 txt 鐗堟湰 MKDir "%~dp0Output" -COPY /B /V /Y "%~dp0documentation\changes.md" "%~dp0Output\更新日志.txt" -COPY /B /V /Y "%~dp0documentation\ReadMe.md" "%~dp0Output\说明.txt" +COPY /B /V /Y "%~dp0documentation\changes.md" "%~dp0Output\鏇存柊鏃ュ織.txt" +COPY /B /V /Y "%~dp0documentation\ReadMe.md" "%~dp0Output\璇存槑.txt" if "%1" == "GITHUB_ACTIONS" ( @echo on @@ -22,32 +22,33 @@ if "%1" == "GITHUB_ACTIONS" ( GOTO Local ) -Rem GitHub Actions 构建流程 +Rem GitHub Actions 鏋勫缓娴佺▼ :GitHub -Rem 开始生成 +Rem 寮濮嬬敓鎴 set VersionDate=%date:~-4%.%date:~-10,2%.%date:~-7,2% -"%~dp0Tools\InnoSetup\ISCC" /Q "%~dp0便携版安装脚本.iss" -"%~dp0Tools\InnoSetup\ISCC" /Q "%~dp0懒人版安装脚本.iss" -"%~dp0Tools\InnoSetup\ISCC" /Q "%~dp0恢复备份的 NVDA 配置.iss" +"%~dp0Tools\InnoSetup\ISCC" /Q "%~dp0渚挎惡鐗堝畨瑁呰剼鏈.iss" +"%~dp0Tools\InnoSetup\ISCC" /Q "%~dp0鎳掍汉鐗堝畨瑁呰剼鏈.iss" +"%~dp0Tools\InnoSetup\ISCC" /Q "%~dp0鎭㈠澶囦唤鐨 NVDA 閰嶇疆.iss" GOTO Archive -Rem 本地构建流程 +Rem 鏈湴鏋勫缓娴佺▼ :Local -Rem 运行 NVDA +Rem 杩愯 NVDA if /i %PROCESSOR_IDENTIFIER:~0,3%==x86 ( Start /D "%ProgramFiles%\NVDA" NVDA ) else ( Start /D "%ProgramFiles(x86)%\NVDA" NVDA ) -Rem 开始生成 -set VersionDate=%date:~3,4%.%date:~8,2%.%date:~11,2%"%~dp0Tools\InnoSetup\Compil32" /cc "%~dp0便携版安装脚本.iss" -"%~dp0Tools\InnoSetup\Compil32" /cc "%~dp0懒人版安装脚本.iss" -"%~dp0Tools\InnoSetup\Compil32" /cc "%~dp0恢复备份的 NVDA 配置.iss" +Rem 寮濮嬬敓鎴 +set VersionDate=%date:~3,4%.%date:~8,2%.%date:~11,2%" +%~dp0Tools\InnoSetup\Compil32" /cc "%~dp0渚挎惡鐗堝畨瑁呰剼鏈.iss" +"%~dp0Tools\InnoSetup\Compil32" /cc "%~dp0鎳掍汉鐗堝畨瑁呰剼鏈.iss" +"%~dp0Tools\InnoSetup\Compil32" /cc "%~dp0鎭㈠澶囦唤鐨 NVDA 閰嶇疆.iss" :Archive -Rem 生成程序压缩文件 -"%~dp0Tools\7Zip\7z.exe" a -y -tzip "%~dp0Output\Archive\NVDA_Lazy_Edition_%VersionDate%.zip" "%~dp0Output\NVDA 懒人版.exe" "%~dp0Output\更新日志.txt" "%~dp0Output\说明.txt" "%~dp0Output\NVDA 配置恢复工具.exe" -"%~dp0Tools\7Zip\7z.exe" a -y -tzip "%~dp0Output\Archive\Source_Code_And_Dependency_Files_%VersionDate%.zip" "%~dp0documentation" "%~dp0Resource" "%~dp0Tools" "%~dp0userConfig" "%~dp0ReadMe.md" "%~dp0便携版安装脚本.iss" "%~dp0恢复备份的 NVDA 配置.iss" "%~dp0懒人版安装脚本.iss" "%~dp0执行脚本.bat" +Rem 鐢熸垚绋嬪簭鍘嬬缉鏂囦欢 +"%~dp0Tools\7Zip\7z.exe" a -y -tzip "%~dp0Output\Archive\NVDA_Lazy_Edition_%VersionDate%.zip" "%~dp0Output\NVDA 鎳掍汉鐗.exe" "%~dp0Output\鏇存柊鏃ュ織.txt" "%~dp0Output\璇存槑.txt" "%~dp0Output\NVDA 閰嶇疆鎭㈠宸ュ叿.exe" +"%~dp0Tools\7Zip\7z.exe" a -y -tzip "%~dp0Output\Archive\Source_Code_And_Dependency_Files_%VersionDate%.zip" "%~dp0documentation" "%~dp0Resource" "%~dp0Tools" "%~dp0userConfig" "%~dp0ReadMe.md" "%~dp0渚挎惡鐗堝畨瑁呰剼鏈.iss" "%~dp0鎭㈠澶囦唤鐨 NVDA 閰嶇疆.iss" "%~dp0鎳掍汉鐗堝畨瑁呰剼鏈.iss" "%~dp0鎵ц鑴氭湰.bat" Exit