Skip to content

Commit 7de0c4a

Browse files
committed
fetch and pack DirectML.dll
1 parent 4def4ca commit 7de0c4a

File tree

3 files changed

+9
-1
lines changed

3 files changed

+9
-1
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -338,4 +338,5 @@ OpenUtau.Test/Usts/*
338338
*.exe
339339
appcast.*.xml
340340
*.tar.gz
341-
.vscode/
341+
.vscode/
342+
Microsoft.AI.DirectML

OpenUtau/OpenUtau.csproj

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -57,9 +57,11 @@
5757
</ItemGroup>
5858
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'win-x64'">
5959
<None Include="..\runtimes\win-x64\native\**" CopyToOutputDirectory="PreserveNewest" LinkBase="." />
60+
<None Include="..\Microsoft.AI.DirectML\bin\x64-win\DirectML.dll" CopyToOutputDirectory="PreserveNewest" LinkBase="." />
6061
</ItemGroup>
6162
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'win-x86'">
6263
<None Include="..\runtimes\win-x86\native\**" CopyToOutputDirectory="PreserveNewest" LinkBase="." />
64+
<None Include="..\Microsoft.AI.DirectML\bin\x86-win\DirectML.dll" CopyToOutputDirectory="PreserveNewest" LinkBase="." />
6365
</ItemGroup>
6466
<ItemGroup Condition="'$(RuntimeIdentifier)' == 'osx.10.14-x64'">
6567
<None Include="..\runtimes\osx\native\**" CopyToOutputDirectory="PreserveNewest" LinkBase="." />

appveyor.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
import os
22
import sys
3+
import urllib.request
34
from datetime import datetime
45

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

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

41+
urllib.request.urlretrieve("https://www.nuget.org/api/v2/package/Microsoft.AI.DirectML/1.12.0", "Microsoft.AI.DirectML.nupkg")
42+
os.system("mkdir Microsoft.AI.DirectML")
43+
os.system("tar -xf Microsoft.AI.DirectML.nupkg -C Microsoft.AI.DirectML")
44+
4045
os.system("dotnet restore OpenUtau -r win-x86")
4146
os.system(
4247
"dotnet publish OpenUtau -c Release -r win-x86 --self-contained true -o bin/win-x86")

0 commit comments

Comments
 (0)