Revert "调整部分插件的默认安装状态" #143
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
name: Build NVDA Lazy Edition | |
on: | |
push: | |
tags: | |
- "*" | |
branches: | |
- master | |
- Win7Maintenance | |
pull_request: | |
branches: | |
- master | |
- Win7Maintenance | |
workflow_dispatch: | |
jobs: | |
download-addons: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
addon: | |
- Name: AudioControl-1.8.1 | |
URL: https://dl.nvdacn.com/NVDA-Addons/New/AudioControl-1.8.1.nvda-addon | |
sha256: 33899d5b27d9be04a99c2881260abe154a567b7410db2bde1d439cd1122beee5 | |
- Name: DragAndDrop-2.2.1dev | |
URL: https://github.com/javidominguez/DragAndDrop/releases/download/2.2.1dev/DragAndDrop-2.2.1dev.nvda-addon | |
sha256: cf8af2b3190326218e827b502a1da544578b334824cb5b7e3027ebcfeb642efe | |
- Name: IBMTTS-23.12.1 | |
URL: https://dl.nvdacn.com/NVDA-Addons/New/IBMTTS-23.12.1.nvda-addon | |
sha256: F96353B0329FB66319FC98B5748AB9D03C2A236762CF29F3B99EBACD04635451 | |
- Name: MSEdgeDiscardAnnouncements-0.10 | |
URL: https://dl.nvdacn.com/NVDA-Addons/New/MSEdgeDiscardAnnouncements-0.10.nvda-addon | |
sha256: 993eb9ba9849c3b6c7284fd6aaf84ad4a7b3a2707fbff54c5af4dd48a54124ca | |
- Name: numberProcessing-1.0-20240406-dev | |
URL: https://dl.nvdacn.com/NVDA-Addons/New/numberProcessing-1.0-20240406-dev.nvda-addon | |
sha256: 3b7803a7b6ac2b3e62ca55f2e3b4de03fc32f4468b34ce97bacf34c14e6997b3 | |
- Name: NVBox-2.6.1 | |
URL: https://dl.nvdacn.com/NVDA-Addons/New/NVBox-2.6.1.nvda-addon | |
sha256: 9214083455ade363be2f67ad2ac8f195ccf9d0108d70f5f3dc532d2538a5e136 | |
- Name: QuickAdjustment-0.4 | |
URL: https://dl.nvdacn.com/NVDA-Addons/New/QuickAdjustment-0.4.nvda-addon | |
sha256: 8432a0944a58658d3bb46cc26ad80a8a255fe7de87982008df11f44029c5c5b1 | |
- Name: unmute-1.5.8 | |
URL: https://github.com/grisov/Unmute/releases/download/v1.5.8/unmute-1.5.8.nvda-addon | |
sha256: b55759cc9ebf5581832adfa6a976d32874ae08a0968e8d60e78f5abbced87175 | |
- Name: WakeSpeaker-24.1.1 | |
URL: https://github.com/davidacm/WakeSpeaker/releases/download/24.1.1/WakeSpeaker-24.1.1.nvda-addon | |
sha256: 0c125caeb2bdf4fdac5bbb87d022738fbed4f81f4edcbe63e82ed6c990d500ce | |
- Name: WorldVoice-3.7 | |
URL: https://github.com/tsengwoody/WorldVoice/releases/download/v3.7/WorldVoice-3.7.nvda-addon | |
sha256: 8E25B0741769E6C84B2964D9701E0BE174605C795C3515524A6036C570AE35A9 | |
- Name: YYPatch-1.0.4 | |
URL: https://dl.nvdacn.com/NVDA-Addons/compatible/YYPatch-1.0.4.nvda-addon | |
sha256: 036812ad68ccf16bc6f9142ac99e07fa6399e28fcfb3dd4ebb343076acb2c825 | |
steps: | |
- name: Cache ${{ matrix.addon.Name }} Addon | |
uses: actions/cache@v4 | |
with: | |
path: ${{ github.workspace }}/*.nvda-addon | |
key: ${{ matrix.addon.Name }}-${{ matrix.addon.sha256 }} | |
restore-keys: | | |
${{ matrix.addon.Name }}.nvda-addon | |
enableCrossOsArchive: true | |
- name: Download ${{ matrix.addon.Name }} Addon | |
id: download-addon | |
uses: carlosperate/download-file-action@v2 | |
with: | |
file-url: ${{ matrix.addon.URL }} | |
sha256: ${{ matrix.addon.sha256 }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.addon.Name }}.nvda-addon | |
path: ${{ steps.download-addon.outputs.file-path }} | |
if-no-files-found: error | |
download-addons-from-addonStore: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
addon: | |
- addonId: Access8Math | |
- addonId: addonsHelp | |
- addonId: addonsTools | |
- addonId: addonUpdater | |
- addonId: AiSound5 | |
- addonId: audioManager | |
- addonId: baiduTranslation | |
- addonId: clipboardEnhancement | |
- addonId: enhancedTouchGestures | |
- addonId: goldenCursor | |
- addonId: ime_expressive | |
- addonId: inputLock | |
- addonId: instantTranslate | |
# - addonId: MSEdgeDiscardAnnouncements | |
- addonId: NVDACNMirror | |
- addonId: QQEnhancement | |
- addonId: remote | |
- addonId: resourceMonitor | |
# - addonId: unmute | |
# - addonId: WakeSpeaker | |
- addonId: WeChatEnhancement | |
- addonId: wintenApps | |
- addonId: xyOCR | |
steps: | |
- uses: actions/checkout@v4 | |
with: | |
repository: nvaccess/addon-datastore.git | |
ref: views | |
sparse-checkout: | | |
views/zh_CN/2023.3.4/${{ matrix.addon.addonId }} | |
path: ${{ github.workspace }}/addon-datastore | |
- name: get ${{ matrix.addon.addonId }} addon data | |
uses: antifree/json-to-variables@v1.1.2 | |
with: | |
filename: ${{ github.workspace}}/addon-datastore/views/zh_CN/2023.3.4/${{ matrix.addon.addonId }}/stable.json | |
- name: Cache ${{ matrix.addon.addonId }}-${{ env.addonVersionName }} Addon | |
uses: actions/cache@v4 | |
with: | |
path: ${{ github.workspace }}/*.nvda-addon | |
key: ${{ matrix.addon.addonId }}-${{ env.addonVersionName }}-${{ env.sha256 }} | |
restore-keys: | | |
${{ matrix.addon.addonId }}-${{ env.addonVersionName }}.nvda-addon | |
enableCrossOsArchive: true | |
- name: Download ${{ matrix.addon.addonId }}-${{ env.addonVersionName }} Addon | |
id: download-addon | |
uses: carlosperate/download-file-action@v2 | |
with: | |
file-url: ${{ env.URL }} | |
sha256: ${{ env.sha256 }} | |
- uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.addon.addonId }}-${{ env.addonVersionName }}.nvda-addon | |
path: ${{ steps.download-addon.outputs.file-path }} | |
if-no-files-found: error | |
download-resource: | |
runs-on: ubuntu-latest | |
strategy: | |
matrix: | |
resource: | |
- file: vcredist_x86.exe | |
URL: https://dl.nvdacn.com/Share/vcredist_x86.exe | |
sha256: B924AD8062EAF4E70437C8BE50FA612162795FF0839479546CE907FFA8D6E386 | |
- file: speech-aisound.zip | |
URL: https://dl.nvdacn.com/NVDA-Addons/TTS/VocalizerVoice/aisound.zip | |
sha256: B4FE1BED8F699179C8FF00F7B6F85AF4FF190ADCE1CCDB6C08132F93B7341EB2 | |
- file: speech-VE.zip | |
URL: https://dl.nvdacn.com/NVDA-Addons/TTS/VocalizerVoice/VE.zip | |
sha256: 35ACAC34551ED8288DC6185A33127F5109AD6CB8901B329667C095DC0085EDD3 | |
- file: speech-voice.zip | |
URL: https://dl.nvdacn.com/Share/voice.zip | |
sha256: AB2D6AFD7C5E12901DD3DA3CDC29325AA11A9DAB2EAC608D7B731993B2066450 | |
- file: speech-IBM_ViaVoice_TTS_Runtime-V6.405.exe | |
URL: https://dl.nvdacn.com/NVDA-Addons/TTS/IBM_ViaVoice_TTS_Runtime-V6.405.exe | |
sha256: A0FB592EFBC838921931C5BB4B32C176FC618052B4DDBFD6B08D3FBC66DEE12A | |
steps: | |
- name: Cache ${{ matrix.resource.file }} | |
uses: actions/cache@v4 | |
with: | |
path: ${{ github.workspace }}/* | |
key: ${{ matrix.resource.file }}-${{ matrix.resource.sha256 }} | |
restore-keys: | | |
${{ matrix.resource.file }} | |
enableCrossOsArchive: true | |
- name: Download ${{ matrix.resource.file }} | |
id: download-Resource | |
uses: carlosperate/download-file-action@v2 | |
with: | |
file-url: ${{ matrix.resource.URL }} | |
sha256: ${{ matrix.resource.sha256 }} | |
- name: Upload ${{ matrix.resource.file }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ matrix.resource.file }} | |
path: ${{ steps.download-Resource.outputs.file-path }} | |
if-no-files-found: error | |
download-NVDA: | |
runs-on: ubuntu-latest | |
env: | |
NVDA: nvda_2023.3.4.exe | |
NVDA_VERSION: 2023.3.4 | |
NVDA_RELEASES_BASE_URL: https://www.nvaccess.org/files/nvda/releases | |
outputs: | |
NVDA: ${{ env.NVDA }} | |
steps: | |
- name: Cache ${{ env.NVDA }} | |
uses: actions/cache@v4 | |
with: | |
path: ${{ github.workspace }}/${{ env.NVDA }} | |
key: nvda_${{ env.NVDA_VERSION }} | |
restore-keys: | | |
${{ env.NVDA }} | |
enableCrossOsArchive: true | |
- name: Download ${{ env.NVDA }} | |
id: download-nvda | |
uses: carlosperate/download-file-action@v2 | |
with: | |
file-url: ${{ env.NVDA_RELEASES_BASE_URL }}/${{ env.NVDA_VERSION }}/${{ env.NVDA }} | |
- name: Upload ${{ env.NVDA }} | |
uses: actions/upload-artifact@v4 | |
with: | |
name: ${{ env.NVDA }} | |
path: ${{ steps.download-nvda.outputs.file-path }} | |
if-no-files-found: error | |
build: | |
runs-on: windows-latest | |
needs: | |
- download-NVDA | |
- download-resource | |
- download-addons | |
- download-addons-from-addonStore | |
steps: | |
- uses: actions/checkout@v4 | |
- name: Download ${{ needs.download-NVDA.outputs.NVDA }} | |
uses: actions/download-artifact@v4 | |
with: | |
name: ${{ needs.download-NVDA.outputs.NVDA }} | |
path: ${{ github.workspace }}/Resource/ | |
- name: Download vcredist_x86.exe | |
uses: actions/download-artifact@v4 | |
with: | |
name: vcredist_x86.exe | |
path: ${{ github.workspace }}/Resource/ | |
- name: Download Speech Resource | |
uses: actions/download-artifact@v4 | |
with: | |
path: ${{ github.workspace }}/Resource/speech/ | |
pattern: speech-* | |
merge-multiple: true | |
- name: Download Resource Addons | |
uses: actions/download-artifact@v4 | |
with: | |
path: ${{ github.workspace }}/Resource/Addons/ | |
pattern: "*.nvda-addon" | |
merge-multiple: true | |
- run: ${{ github.workspace }}/执行脚本.bat GITHUB_ACTIONS | |
- name: Upload Output | |
uses: actions/upload-artifact@v4 | |
with: | |
name: NVDA_Lazy_Edition | |
path: ${{ github.workspace }}/Output/Archive/* | |
upload_release: | |
runs-on: ubuntu-latest | |
if: ${{ startsWith(github.ref, 'refs/tags/') }} | |
needs: build | |
permissions: | |
contents: write | |
steps: | |
- uses: actions/download-artifact@v4 | |
with: | |
name: NVDA_Lazy_Edition | |
path: NVDA_Lazy_Edition | |
- name: Display structure of downloaded files | |
run: ls -R | |
- name: Release | |
uses: softprops/action-gh-release@v2 | |
with: | |
body: 详细更新日志请[点此查看](documentation/changes.md)。 | |
files: NVDA_Lazy_Edition/* | |
fail_on_unmatched_files: true | |
prerelease: ${{ contains(github.ref, 'rc') }} |