Skip to content

Commit

Permalink
fetch and pack DirectML.dll
Browse files Browse the repository at this point in the history
  • Loading branch information
stakira committed Oct 21, 2023
1 parent 4def4ca commit 7de0c4a
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 1 deletion.
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -338,4 +338,5 @@ OpenUtau.Test/Usts/*
*.exe
appcast.*.xml
*.tar.gz
.vscode/
.vscode/
Microsoft.AI.DirectML
2 changes: 2 additions & 0 deletions OpenUtau/OpenUtau.csproj
Original file line number Diff line number Diff line change
Expand Up @@ -57,9 +57,11 @@
</ItemGroup>
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'win-x64'">
<None Include="..\runtimes\win-x64\native\**" CopyToOutputDirectory="PreserveNewest" LinkBase="." />
<None Include="..\Microsoft.AI.DirectML\bin\x64-win\DirectML.dll" CopyToOutputDirectory="PreserveNewest" LinkBase="." />
</ItemGroup>
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'win-x86'">
<None Include="..\runtimes\win-x86\native\**" CopyToOutputDirectory="PreserveNewest" LinkBase="." />
<None Include="..\Microsoft.AI.DirectML\bin\x86-win\DirectML.dll" CopyToOutputDirectory="PreserveNewest" LinkBase="." />
</ItemGroup>
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'osx.10.14-x64'">
<None Include="..\runtimes\osx\native\**" CopyToOutputDirectory="PreserveNewest" LinkBase="." />
Expand Down
5 changes: 5 additions & 0 deletions appveyor.py
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import os
import sys
import urllib.request
from datetime import datetime

appcast_ver = os.environ.get('APPVEYOR_BUILD_VERSION')
Expand Down Expand Up @@ -37,6 +38,10 @@ def write_appcast(appcast_os, appcast_rid, appcast_file):

os.system("del *.xml 2>&1")

urllib.request.urlretrieve("https://www.nuget.org/api/v2/package/Microsoft.AI.DirectML/1.12.0", "Microsoft.AI.DirectML.nupkg")
os.system("mkdir Microsoft.AI.DirectML")
os.system("tar -xf Microsoft.AI.DirectML.nupkg -C Microsoft.AI.DirectML")

os.system("dotnet restore OpenUtau -r win-x86")
os.system(
"dotnet publish OpenUtau -c Release -r win-x86 --self-contained true -o bin/win-x86")
Expand Down

0 comments on commit 7de0c4a

Please sign in to comment.