Skip to content

Commit 7c3beef

Browse files
Modified keyboard gesture to Shif+NVDA+l instead NVDA+l
Modified readme files Added workflow for building the addon
1 parent 7df2bd5 commit 7c3beef

File tree

5 files changed

+90
-3
lines changed

5 files changed

+90
-3
lines changed

.github/dependabot.yml

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,14 @@
1+
version: 2
2+
updates:
3+
4+
# Maintain dependencies for GitHub Actions
5+
- package-ecosystem: "github-actions"
6+
# Workflow files stored in the default location of `.github/workflows`. (You don't need to specify `/.github/workflows` for `directory`. You can use `directory: "/"`.)
7+
directory: "/"
8+
schedule:
9+
interval: "weekly"
10+
groups:
11+
actions-minor:
12+
update-types:
13+
- minor
14+
- patch

.github/workflows/build_addon.yml

Lines changed: 73 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,73 @@
1+
name: build addon
2+
3+
on:
4+
push:
5+
tags: ["*"]
6+
# To build on main/master branch, uncomment the following line:
7+
branches: [ main , master ]
8+
9+
pull_request:
10+
branches: [ main, master ]
11+
12+
workflow_dispatch:
13+
14+
jobs:
15+
build:
16+
17+
runs-on: ubuntu-latest
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- run: echo -e "pre-commit\nscons\nmarkdown">requirements.txt
23+
24+
- name: Set up Python
25+
uses: actions/setup-python@v5
26+
with:
27+
python-version: 3.11
28+
cache: 'pip'
29+
30+
- name: Install dependencies
31+
run: |
32+
python -m pip install --upgrade pip wheel
33+
pip install -r requirements.txt
34+
sudo apt-get update -y
35+
sudo apt-get install -y gettext
36+
37+
- name: Code checks
38+
run: export SKIP=no-commit-to-branch; pre-commit run --all
39+
40+
- name: building addon
41+
run: scons && scons pot
42+
43+
- uses: actions/upload-artifact@v4
44+
with:
45+
name: packaged_addon
46+
path: |
47+
./*.nvda-addon
48+
./*.pot
49+
50+
upload_release:
51+
runs-on: ubuntu-latest
52+
if: ${{ startsWith(github.ref, 'refs/tags/') }}
53+
needs: ["build"]
54+
steps:
55+
- uses: actions/checkout@v4
56+
- name: download releases files
57+
uses: actions/download-artifact@v4
58+
- name: Display structure of downloaded files
59+
run: ls -R
60+
- name: Calculate sha256
61+
run: |
62+
echo -e "\nSHA256: " >> changelog.md
63+
sha256sum packaged_addon/*.nvda-addon >> changelog.md
64+
65+
- name: Release
66+
uses: softprops/action-gh-release@v2
67+
with:
68+
files: |
69+
packaged_addon/*.nvda-addon
70+
packaged_addon/*.pot
71+
body_path: changelog.md
72+
fail_on_unmatched_files: true
73+
prerelease: ${{ contains(github.ref, '-') }}

addon/doc/sr/readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
# Instalacija
77
Silenzio možete instalirati iz NVDA prodavnice dodataka, ili sa izvorne stranice dodatka [https://github.com/DarkoMilosevic86/Silenzio](https://github.com/DarkoMilosevic86/Silenzio)
88
# Korišćenje
9-
Silenzio uključujete i isključujete kombinacijom tastera NVDA+L.
9+
Silenzio uključujete i isključujete kombinacijom tastera Shift+NVDA+L.
1010
Svaki put kada uključite/issključite Silenzio, to će biti automatski sačuvano u Silenzio konfiguracionu datoteku, tako da ako ste na primer ostavili Silenzio uključen i ponovo pokrenuli NVDA, Silenzio će biti uključen.
1111
# Lokalizacija Silenzio doddatka
1212
Silenzio dodatak je dostupan na engleskom i srpskom jeziku.

addon/globalPlugins/silenzio.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ def script_toggleSilenzio(self, gesture):
7979

8080

8181
__gestures = {
82-
"kb:NVDA+l": "toggleSilenzio"
82+
"kb:Shift+NVDA+l": "toggleSilenzio"
8383
}
8484
def terminate(self):
8585
self.stopSound()

readme.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@
99
You can install Silenzio from the NVDA add-ons store or from the add-on's source page: [https://github.com/DarkoMilosevic86/Silenzio](https://github.com/DarkoMilosevic86/Silenzio).
1010

1111
# Usage
12-
Silenzio can be toggled on and off using the NVDA+L key combination.
12+
Silenzio can be toggled on and off using the Shift+NVDA+L key combination.
1313
Each time you enable or disable Silenzio, the setting will be automatically saved to the Silenzio configuration file. For example, if you leave Silenzio enabled and restart NVDA, it will remain enabled.
1414

1515
# Localization of the Silenzio add-on

0 commit comments

Comments
 (0)