From 7de0c4a080aad590dfb227a43b08bf84c78478bc Mon Sep 17 00:00:00 2001 From: Sugita Akira Date: Fri, 20 Oct 2023 23:12:14 -0700 Subject: [PATCH] fetch and pack DirectML.dll --- .gitignore | 3 ++- OpenUtau/OpenUtau.csproj | 2 ++ appveyor.py | 5 +++++ 3 files changed, 9 insertions(+), 1 deletion(-) 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")