mirror of
https://github.com/onyx-and-iris/nvda-addon-voicemeeter.git
synced 2026-04-08 04:23:30 +00:00
Compare commits
6 Commits
add-bits-t
...
1fb435416f
| Author | SHA1 | Date | |
|---|---|---|---|
| 1fb435416f | |||
| 40aaeb4c54 | |||
| 17cdd84c51 | |||
| 43379f1b09 | |||
| dc9ac5ddc3 | |||
| 9764b9d827 |
8
.github/workflows/build_addon.yml
vendored
8
.github/workflows/build_addon.yml
vendored
@@ -34,7 +34,7 @@ jobs:
|
|||||||
- name: building addon
|
- name: building addon
|
||||||
run: pdm run scons
|
run: pdm run scons
|
||||||
|
|
||||||
- uses: actions/upload-artifact@v3
|
- uses: actions/upload-artifact@v4
|
||||||
with:
|
with:
|
||||||
name: packaged_addon
|
name: packaged_addon
|
||||||
path: ./*.nvda-addon
|
path: ./*.nvda-addon
|
||||||
@@ -44,15 +44,17 @@ jobs:
|
|||||||
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
if: ${{ startsWith(github.ref, 'refs/tags/') }}
|
||||||
needs: ["build"]
|
needs: ["build"]
|
||||||
steps:
|
steps:
|
||||||
- uses: actions/checkout@v3
|
- uses: actions/checkout@v4
|
||||||
- name: download releases files
|
- name: download releases files
|
||||||
uses: actions/download-artifact@v4.1.7
|
uses: actions/download-artifact@v4.1.7
|
||||||
|
with:
|
||||||
|
name: packaged_addon
|
||||||
- name: Display structure of downloaded files
|
- name: Display structure of downloaded files
|
||||||
run: ls -R
|
run: ls -R
|
||||||
|
|
||||||
- name: Release
|
- name: Release
|
||||||
uses: softprops/action-gh-release@v1
|
uses: softprops/action-gh-release@v1
|
||||||
with:
|
with:
|
||||||
files: packaged_addon/*.nvda-addon
|
files: ./*.nvda-addon
|
||||||
fail_on_unmatched_files: true
|
fail_on_unmatched_files: true
|
||||||
prerelease: ${{ contains(github.ref, '-') }}
|
prerelease: ${{ contains(github.ref, '-') }}
|
||||||
|
|||||||
21
Taskfile.yml
Normal file
21
Taskfile.yml
Normal file
@@ -0,0 +1,21 @@
|
|||||||
|
version: '3'
|
||||||
|
|
||||||
|
vars:
|
||||||
|
SHELL: pwsh
|
||||||
|
SOURCE: addon\globalPlugins\voicemeeter
|
||||||
|
DEST: ${env:appdata}\nvda\scratchpad\globalPlugins\voicemeeter\
|
||||||
|
IGNORE: ${env:appdata}\nvda\scratchpad\globalPlugins\voicemeeter\__pycache__\
|
||||||
|
|
||||||
|
tasks:
|
||||||
|
copy:
|
||||||
|
desc: Copy sources files to scratchpad directory
|
||||||
|
platforms: [windows]
|
||||||
|
cmds:
|
||||||
|
- "{{.SHELL}} -Command 'robocopy {{.SOURCE}} {{.DEST}} /XD {{.IGNORE}} /NDL'"
|
||||||
|
ignore_error: true
|
||||||
|
|
||||||
|
build:
|
||||||
|
desc: Build the addon
|
||||||
|
platforms: [windows]
|
||||||
|
cmds:
|
||||||
|
- '{{.SHELL}} -Command "pdm run scons"'
|
||||||
25
build.ps1
25
build.ps1
@@ -1,25 +0,0 @@
|
|||||||
param (
|
|
||||||
[switch]$build
|
|
||||||
)
|
|
||||||
|
|
||||||
function Copy-FilesToScratchpad {
|
|
||||||
$source = Join-Path $PSScriptRoot "addon" "globalPlugins" "voicemeeter"
|
|
||||||
$target = Join-Path $env:appdata "nvda" "scratchpad" "globalPlugins" "voicemeeter"
|
|
||||||
Robocopy $source $target | Out-Null
|
|
||||||
}
|
|
||||||
|
|
||||||
function Build-Addon {
|
|
||||||
"Building add-on" | Write-Host
|
|
||||||
scons
|
|
||||||
}
|
|
||||||
|
|
||||||
function Main {
|
|
||||||
"Copying updated files to Scratchpad" | Write-Host
|
|
||||||
Copy-FilesToScratchpad
|
|
||||||
|
|
||||||
if ($build) {
|
|
||||||
Build-Addon
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($MyInvocation.InvocationName -ne '.') { Main }
|
|
||||||
@@ -20,8 +20,8 @@ build = [
|
|||||||
distribution = false
|
distribution = false
|
||||||
|
|
||||||
[tool.pdm.scripts]
|
[tool.pdm.scripts]
|
||||||
copy = "pwsh build.ps1"
|
copy = "task copy"
|
||||||
build = "pwsh build.ps1 -build"
|
build = "task build"
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
exclude = [
|
exclude = [
|
||||||
|
|||||||
Reference in New Issue
Block a user