Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

小修复 #10

Merged
merged 10 commits into from
Mar 27, 2024
1 change: 0 additions & 1 deletion .github/workflows/build.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,6 @@ jobs:
addonVersionName: 0.6.3
- addonId: QQEnhancement
URL: https://github.com/nvdacn/QQEnhancement/releases/download/v1.0.2/QQEnhancement-1.0.2.nvda-addon
description: Enhance the experience of using PC QQ for NVDA users.
sha256: a09a836356de60be6dd9dd34a9e31a77f4d89069aaacd78ac627c85855865459
addonVersionName: 1.0.2
- addonId: WakeSpeaker
Expand Down
3 changes: 2 additions & 1 deletion ReadMe.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
# NVDA Lazy Edition

[中文](documentation/ReadMe.md)
[中文说明](documentation/ReadMe.md)
[更新日志](documentation/changes.md)

This program is created based on the official version of NVDA, mainly modifying individual options that affect the use of simplified Chinese users, and integrating some of the more commonly used add-ons and speech.
44 changes: 31 additions & 13 deletions 执行脚本.bat
Original file line number Diff line number Diff line change
Expand Up @@ -11,26 +11,44 @@ IF EXIST "%~dp0Temp" (rd /s /q "%~dp0Temp")
Rem 创建便携版 NVDA
"%~dp0Resource\%nvda%.exe" --create-portable-silent --portable-path="%~dp0Temp\NVDA"

Rem 运行 NVDA(不含 GitHub Actions),设置版本日期变量
Rem 生成文档的 txt 版本
MKDir "%~dp0Output"
COPY /B /V /Y "%~dp0documentation\changes.md" "%~dp0Output\更新日志.txt"
COPY /B /V /Y "%~dp0documentation\ReadMe.md" "%~dp0Output\说明.txt"

if "%1" == "GITHUB_ACTIONS" (
@echo on
GOTO GitHub
) else (
GOTO Local
)

Rem GitHub Actions 构建流程
:GitHub
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"
GOTO Archive

Rem 简体中文操作系统构建流程
:Local
Rem 运行 NVDA
if /i %PROCESSOR_IDENTIFIER:~0,3%==x86 (
Start /D "%ProgramFiles%\NVDA" NVDA
) else (
if /i %PROCESSOR_IDENTIFIER:~0,3%==x86 (
Start /D "%ProgramFiles%\NVDA" NVDA
) else (
Start /D "%ProgramFiles(x86)%\NVDA" NVDA
)
set VersionDate=%date:~3,4%.%date:~8,2%.%date:~11,2%
Start /D "%ProgramFiles(x86)%\NVDA" NVDA
)

Rem 开始生成
MKDir "%~dp0Output"
COPY /B /V /Y "%~dp0documentation\changes.md" "%~dp0Output\更新日志.txt"
COPY /B /V /Y "%~dp0documentation\ReadMe.md" "%~dp0Output\说明.txt"
"%~dp0Tools\InnoSetup\ISCC" /Qp "%~dp0便携版安装脚本.iss"
"%~dp0Tools\InnoSetup\ISCC" /Qp "%~dp0懒人版安装脚本.iss"
"%~dp0Tools\InnoSetup\ISCC" /Qp "%~dp0恢复备份的 NVDA 配置.iss"
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"

Expand Down
Loading