-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* updated support for NVDA 2024.2. * updated the release github workflow, to use the first header content as the release description.
- Loading branch information
Showing
7 changed files
with
88 additions
and
83 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,69 @@ | ||
permissions: | ||
contents: write | ||
name: Upload on new tags | ||
on: | ||
push: | ||
tags: | ||
['*'] | ||
workflow_dispatch: | ||
|
||
jobs: | ||
build: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Checkout code | ||
uses: actions/checkout@v3 | ||
- run: echo -e "scons\nmarkdown">requirements.txt | ||
- name: Set up Python | ||
uses: actions/setup-python@v4 | ||
with: | ||
python-version: 3.11 | ||
cache: 'pip' | ||
- name: Install dependencies | ||
run: | | ||
pip install scons markdown | ||
sudo apt update | ||
sudo apt install gettext | ||
- name: Set add-on version from tag | ||
run: | | ||
import re | ||
with open("buildVars.py", 'r+', encoding='utf-8') as f: | ||
text = f.read() | ||
version = "${{ github.ref }}".split("/")[-1] | ||
text = re.sub('"addon_version" *:.*,', '"addon_version" : "%s",' % version, text) | ||
f.seek(0) | ||
f.write(text) | ||
f.truncate() | ||
shell: python | ||
|
||
- name: Build add-on | ||
run: scons | ||
- name: load latest changes from changelog | ||
run: awk '/^# / && !flag {flag=1; next} /^# / && flag {exit} flag && NF' changelog.md > newChanges.md | ||
- name: Calculate sha256 | ||
run: sha256sum *.nvda-addon >> newChanges.md | ||
- uses: actions/upload-artifact@v3 | ||
with: | ||
name: packaged_addon | ||
path: | | ||
./*.nvda-addon | ||
./newChanges.md | ||
upload_release: | ||
runs-on: ubuntu-latest | ||
if: ${{ startsWith(github.ref, 'refs/tags/') }} | ||
needs: ["build"] | ||
steps: | ||
- 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: | ||
body_path: packaged_addon/newChanges.md | ||
files: packaged_addon/*.nvda-addon | ||
fail_on_unmatched_files: true | ||
prerelease: ${{ contains(github.ref, '-') }} |
This file was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,6 +1,6 @@ | ||
# -*- coding: UTF-8 -*- | ||
# Headphone Finder: """This add-on has two scripts, to beep to the left or the right, this can help you to find your bluetooth headphone. | ||
# Copyright (C) 2023 David CM | ||
# Copyright (C) 2023 - 2024 David CM | ||
# Author: David CM <[email protected]> | ||
# Released under GPL 2 | ||
#globalPlugins/headphoneFinder.py | ||
|
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 |
---|---|---|
|
@@ -19,7 +19,7 @@ | |
# Translators: Long description to be shown for this add-on on add-on information from add-ons manager | ||
"addon_description" : _("""This add-on has two scripts, to beep to the left or the right, this can help you to find your bluetooth headphone."""), | ||
# version | ||
"addon_version" : "0.1", | ||
"addon_version" : "24.1.1", | ||
# Author(s) | ||
"addon_author" : u"David CM <[email protected]>", | ||
# URL for the add-on documentation support | ||
|
@@ -29,7 +29,7 @@ | |
# Minimum NVDA version supported (e.g. "2018.3.0") | ||
"addon_minimumNVDAVersion" : "2018.3.0", | ||
# Last NVDA version supported/tested (e.g. "2018.4.0", ideally more recent than minimum version) | ||
"addon_lastTestedNVDAVersion" : "2023.1.0", | ||
"addon_lastTestedNVDAVersion" : "2024.2.0", | ||
# Add-on update channel (default is stable or None) | ||
"addon_updateChannel" : None, | ||
# Add-on license such as GPL 2 | ||
|
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 |
---|---|---|
@@ -1,2 +1,7 @@ | ||
## 0.1 version ## | ||
The first version. | ||
# version 24.1.1 | ||
|
||
* updated support for NVDA 2024.2. | ||
|
||
# version 0.1 | ||
|
||
* The first version. |
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