diff --git a/.gitignore b/.gitignore index b5b112f13..80c9c10a6 100644 --- a/.gitignore +++ b/.gitignore @@ -338,4 +338,5 @@ OpenUtau.Test/Usts/* *.exe appcast.*.xml *.tar.gz -.vscode/ \ No newline at end of file +.vscode/ +Microsoft.AI.DirectML diff --git a/OpenUtau/OpenUtau.csproj b/OpenUtau/OpenUtau.csproj index b02b96468..27b11f33d 100644 --- a/OpenUtau/OpenUtau.csproj +++ b/OpenUtau/OpenUtau.csproj @@ -57,9 +57,11 @@ + + diff --git a/appveyor.py b/appveyor.py index e7023fc4f..c99fd5fce 100755 --- a/appveyor.py +++ b/appveyor.py @@ -1,5 +1,6 @@ import os import sys +import urllib.request from datetime import datetime appcast_ver = os.environ.get('APPVEYOR_BUILD_VERSION') @@ -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")