From 80aa7db5c0df95687c012c15da6b247a6e2b1a13 Mon Sep 17 00:00:00 2001 From: WMHN1872265132 <1872265132@qq.com> Date: Fri, 29 Mar 2024 16:56:09 +0800 Subject: [PATCH] =?UTF-8?q?Revert=20"=E5=B0=9D=E8=AF=95=E5=B0=86=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=E9=A1=B5=E6=9B=B4=E6=94=B9=E4=B8=BA936=E4=BB=A5?= =?UTF-8?q?=E8=A7=A3=E5=86=B3=E6=98=BE=E7=A4=BA=E4=B9=B1=E7=A0=81=E5=92=8C?= =?UTF-8?q?=E6=9C=AC=E5=9C=B0=E6=9E=84=E5=BB=BA=E9=94=99=E8=AF=AF"?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit This reverts commit f5e371f84377cc1e471c54d1248c6473342094e9. --- ...7\350\241\214\350\204\232\346\234\254.bat" | 41 ++++++++++--------- 1 file changed, 21 insertions(+), 20 deletions(-) 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