mirror of
https://github.com/onyx-and-iris/nvda-voicemeeter.git
synced 2025-02-22 04:45:08 +00:00
call task from pdm
remove build.ps1
This commit is contained in:
parent
9ee0dac610
commit
cc0a1de07b
@ -29,7 +29,7 @@ tasks:
|
|||||||
- for:
|
- for:
|
||||||
matrix:
|
matrix:
|
||||||
KIND: [basic, banana, potato]
|
KIND: [basic, banana, potato]
|
||||||
cmd: '{{.SHELL}} -Command "Compress-Archive -Path dist/{{.ITEM.KIND}} -DestinationPath dist/{{.ITEM.KIND}}.zip"'
|
cmd: '{{.SHELL}} -Command "Compress-Archive -Path dist/{{.ITEM.KIND}} -DestinationPath dist/{{.ITEM.KIND}}.zip -Force"'
|
||||||
|
|
||||||
clean:
|
clean:
|
||||||
desc: Clean the project
|
desc: Clean the project
|
||||||
|
23
build.ps1
23
build.ps1
@ -1,23 +0,0 @@
|
|||||||
function Compress-Builds {
|
|
||||||
$target = Join-Path -Path $PSScriptRoot -ChildPath "dist"
|
|
||||||
@("basic", "banana", "potato") | ForEach-Object {
|
|
||||||
Compress-Archive -Path $(Join-Path -Path $target -ChildPath $_) -DestinationPath $(Join-Path -Path $target -ChildPath "${_}.zip") -Force
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function Get-Builds {
|
|
||||||
@("basic", "banana", "potato") | ForEach-Object {
|
|
||||||
$specName = $_
|
|
||||||
|
|
||||||
Write-Host "building $specName"
|
|
||||||
|
|
||||||
pdm run pyinstaller --noconfirm --distpath (Join-Path -Path "dist" -ChildPath $specName) (Join-Path -Path "spec" -ChildPath "${specName}.spec")
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
function main {
|
|
||||||
Get-Builds
|
|
||||||
Compress-Builds
|
|
||||||
}
|
|
||||||
|
|
||||||
if ($MyInvocation.InvocationName -ne '.') { main }
|
|
@ -31,7 +31,9 @@ build-backend = "pdm.backend"
|
|||||||
distribution = true
|
distribution = true
|
||||||
|
|
||||||
[tool.pdm.scripts]
|
[tool.pdm.scripts]
|
||||||
build = {shell = "pwsh build.ps1"}
|
build = {shell = "task build"}
|
||||||
|
compress = {shell = "task compress"}
|
||||||
|
release = {composite = ["build", "compress"]}
|
||||||
|
|
||||||
[tool.ruff]
|
[tool.ruff]
|
||||||
exclude = [
|
exclude = [
|
||||||
|
Loading…
Reference in New Issue
Block a user