-
Notifications
You must be signed in to change notification settings - Fork 1
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Updated add-on template,make add-ons compatible with NVDA2023.1.
- Loading branch information
1 parent
cde1d43
commit 2dbbefd
Showing
8 changed files
with
242 additions
and
9 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
name: build addon | ||
|
||
on: | ||
push: | ||
tags: ["*"] | ||
# To build on main/master branch, uncomment the following line: | ||
# branches: [ main , master ] | ||
|
||
pull_request: | ||
branches: [ main, master ] | ||
|
||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
|
||
runs-on: ubuntu-latest | ||
|
||
steps: | ||
- uses: actions/checkout@v3 | ||
|
||
- run: echo -e "pre-commit\nscons\nmarkdown">requirements.txt | ||
|
||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.9 | ||
cache: 'pip' | ||
|
||
- name: Install dependencies | ||
run: | | ||
python -m pip install --upgrade pip wheel | ||
pip install -r requirements.txt | ||
sudo apt-get update -y | ||
sudo apt-get install -y gettext | ||
- name: Code checks | ||
run: export SKIP=no-commit-to-branch; pre-commit run --all | ||
|
||
- name: building addon | ||
run: scons | ||
|
||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: packaged_addon | ||
path: ./*.nvda-addon | ||
|
||
upload_release: | ||
runs-on: ubuntu-latest | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
needs: ["build"] | ||
steps: | ||
- uses: actions/checkout@v3 | ||
- name: download releases files | ||
uses: actions/download-artifact@v3 | ||
- name: Display structure of downloaded files | ||
run: ls -R | ||
|
||
- name: Release | ||
uses: softprops/action-gh-release@v1 | ||
with: | ||
files: packaged_addon/*.nvda-addon | ||
fail_on_unmatched_files: true | ||
prerelease: ${{ contains(github.ref, '-') }} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
repos: | ||
- repo: https://github.com/pre-commit/pre-commit-hooks | ||
rev: v4.3.0 | ||
hooks: | ||
- id: check-ast | ||
- id: check-case-conflict | ||
- id: check-yaml |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
{ | ||
// See https://go.microsoft.com/fwlink/?LinkId=827846 to learn about workspace recommendations. | ||
// Extension identifier format: ${publisher}.${name}. Example: vscode.csharp | ||
// List of extensions which should be recommended for users of this workspace. | ||
"recommendations": [ | ||
"ms-python.python", | ||
"ms-python.vscode-pylance", | ||
"redhat.vscode-yaml" | ||
], | ||
// List of extensions recommended by VS Code that should not be recommended for users of this workspace. | ||
"unwantedRecommendations": [] | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
{ | ||
"editor.accessibilitySupport": "on", | ||
"python.linting.enabled": true, | ||
"python.linting.maxNumberOfProblems": 10000, | ||
"python.linting.flake8Args": [ | ||
"--config=flake8.ini" | ||
], | ||
"python.linting.flake8Enabled": true, | ||
"python.linting.pylintEnabled": false, | ||
"python.autoComplete.extraPaths": [ | ||
"../nvda/source", | ||
"../nvda/miscDeps/python" | ||
], | ||
"files.insertFinalNewline": true, | ||
"files.trimFinalNewlines": true, | ||
"editor.insertSpaces": false, | ||
"python.analysis.diagnosticSeverityOverrides": { | ||
"reportUndefinedVariable": "none" | ||
}, | ||
"python.analysis.extraPaths": [ | ||
"../nvda/source", | ||
"../nvda/miscDeps/python" | ||
], | ||
"python.defaultInterpreterPath": "../nvda/.venv/scripts/python.exe" | ||
} |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
{ | ||
"addonId": "AudioControl", | ||
"displayName": "Audio Control", | ||
"URL": "", | ||
"description": "A add-on for controlling audio processes and sound output devices.", | ||
"sha256": "33899d5b27d9be04a99c2881260abe154a567b7410db2bde1d439cd1122beee5", | ||
"homepage": "https://www.nvdacn.com/", | ||
"addonVersionName": "1.8.1", | ||
"addonVersionNumber": { | ||
"major": 1, | ||
"minor": 8, | ||
"patch": 1 | ||
}, | ||
"minNVDAVersion": { | ||
"major": 0, | ||
"minor": 0, | ||
"patch": 0 | ||
}, | ||
"lastTestedVersion": { | ||
"major": 0, | ||
"minor": 0, | ||
"patch": 0 | ||
}, | ||
"channel": "stable", | ||
"publisher": "", | ||
"sourceURL": "https://github.com/cary-rowen/AudioControl", | ||
"license": "GPL v2", | ||
"licenseURL": "https://www.gnu.org/licenses/gpl-2.0.html" | ||
} |
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
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
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