Skip to content

Commit f2f7c24

Browse files
committed
fixed deployment for femto to include correct .HDE.vl file
1 parent 5eec564 commit f2f7c24

8 files changed

Lines changed: 15521 additions & 30 deletions

README-AzureKinect.md

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -26,15 +26,14 @@ Once the VL.Devices.AzureKinect nuget is installed and referenced in your VL doc
2626
Demos are available via the Help Browser!
2727

2828
## Developing
29-
While developing make sure to have correct .dlls for either AzureKinect or Femto devices in the \runtimes folder!
30-
31-
When done working on help patches, run "help2femto.bat" which duplicates the help patches into \help-femto (but with references set to VL.Devices.AzureKinect.Femto) and commit those.
29+
When done working on patches, run "azure2femto.bat" which duplicates files into \vl-femto and \help-femto (but with references set to VL.Devices.AzureKinect.Femto) and commit those.
3230

3331
The deployment GH Action creates two packs including the correct readme and help patches.
3432

3533
## Sponsoring
3634
Development of this library was partially sponsored by
3735
- [Studio Brüll](https://studiobruell.de)
3836
- [wirmachenbunt](https://wirmachenbunt.de)
37+
- [SCHNELLE BUNTE BILDER](https://schnellebuntebilder.de)
3938

4039
For custom development requests, please [get in touch](mailto:devvvvs@vvvv.org).

README-femto.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,15 +30,16 @@ Once the NuGet is installed and referenced in your VL document you'll see the ca
3030
Demos are available via the Help Browser!
3131

3232
## Developing
33-
While developing make sure to have correct .dlls for either AzureKinect or Femto devices in the \runtimes folder!
33+
While developing for Femto make sure to have correct native .dlls for Femto devices in the \runtimes folder!
3434

35-
When done working on help patches, run "help2femto.bat" which duplicates the help patches into \help-femto (but with references set to VL.Devices.AzureKinect.Femto) and commit those.
35+
When done working on patches, run "azure2femto.bat" which duplicates files into \vl-femto and \help-femto (but with references set to VL.Devices.AzureKinect.Femto) and commit those.
3636

3737
The deployment GH Action creates two packs including the correct readme and help patches.
3838

3939
## Sponsoring
4040
Development of this library was partially sponsored by
4141
- [Studio Brüll](https://studiobruell.de)
4242
- [wirmachenbunt](https://wirmachenbunt.de)
43+
- [SCHNELLE BUNTE BILDER](https://schnellebuntebilder.de)
4344

4445
For custom development requests, please [get in touch](mailto:devvvvs@vvvv.org).

azure2femto.bat

Lines changed: 56 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,56 @@
1+
@echo off
2+
3+
echo Making femto files...
4+
5+
setlocal enabledelayedexpansion
6+
7+
:: Input and output folders
8+
set "helpInFolder=.\help"
9+
set "helpOutFolder=.\help-femto"
10+
set "vlInFolder=."
11+
set "vlOutFolder=.\vl-femto"
12+
13+
:: Create output folder if it doesn't exist
14+
if not exist "%helpOutFolder%" (
15+
mkdir "%helpOutFolder%"
16+
)
17+
18+
if not exist "%vlOutFolder%" (
19+
mkdir "%vlOutFolder%"
20+
)
21+
22+
:: Loop through all .vl files and change references
23+
for %%f in ("%helpInFolder%\*.vl") do (
24+
set "filename=%%~nxf"
25+
powershell -NoProfile -Command ^
26+
"$text = Get-Content -Raw '%%f';" ^
27+
"$text = $text -replace 'Location=\"VL.Devices.AzureKinect\"', 'Location=\"VL.Devices.AzureKinect.Femto\"';" ^
28+
"Set-Content -Encoding UTF8 '%helpOutFolder%\!filename!' $text"
29+
)
30+
31+
:: Loop through all .vl files and change references
32+
for %%f in ("%vlInFolder%\*.vl") do (
33+
set "filename=%%~nxf"
34+
35+
rem Default newname
36+
set "newname="
37+
38+
rem Check if the filename ends with .HDE.vl
39+
if /I "!filename:~-7!"==".HDE.vl" (
40+
rem Remove the last 7 characters (.HDE.vl) and append .Femto.HDE.vl
41+
set "base=!filename:~0,-7!"
42+
set "newname=!base!.Femto.HDE.vl"
43+
) else (
44+
rem Remove the last 3 characters (.vl) and append .Femto.vl
45+
set "base=!filename:~0,-3!"
46+
set "newname=!base!.Femto.vl"
47+
)
48+
49+
powershell -NoProfile -Command ^
50+
"$text = Get-Content -Raw '%%f';" ^
51+
"$text = $text -replace 'Location=\"VL.Devices.AzureKinect\"', 'Location=\"VL.Devices.AzureKinect.Femto\"';" ^
52+
"Set-Content -Encoding UTF8 '%vlOutFolder%\!newname!' $text"
53+
)
54+
55+
echo Done.
56+
pause

deployment/VL.Devices.AzureKinect.Femto.nuspec

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -32,8 +32,7 @@
3232
<file src="..\runtimes\win-x64\native\onnxruntime_providers_tensorrt.dll" target="runtimes\win-x64\native\" exclude="" />
3333
<!-- copy core dlls which are device specific -->
3434
<file src="..\runtimes-femto\**" target="runtimes\" exclude="" />
35-
<file src="..\VL.Devices.AzureKinect.vl" target="VL.Devices.AzureKinect.Femto.vl" exclude="" />
36-
<file src="..\VL.Devices.AzureKinect.HDE.vl" target="VL.Devices.AzureKinect.Femto.HDE.vl" exclude="" />
35+
<file src="..\vl-femto\**" target="." exclude="" />
3736
<file src="..\help\Help.xml" target="help\" exclude="" />
3837
<file src="..\help-femto\**" target="help\" exclude="" />
3938
<file src="..\shaders\**" target="shaders\" exclude="" />

0 commit comments

Comments
 (0)