-
Notifications
You must be signed in to change notification settings - Fork 32
Expand file tree
/
Copy pathBuild.ps1
More file actions
21 lines (17 loc) · 1.26 KB
/
Build.ps1
File metadata and controls
21 lines (17 loc) · 1.26 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
Remove-Item -Recurse -Force .\x64\Release\** -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force .\x86\Release\** -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force .\TqkLibrary.Scrcpy\bin\Release\** -ErrorAction SilentlyContinue
Remove-Item -Recurse -Force .\TqkLibrary.Scrcpy.Wpf\bin\Release\** -ErrorAction SilentlyContinue
$env:PATH="$($env:PATH);C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE"
devenv .\TqkLibrary.Scrcpy.sln /Rebuild 'Release|x64' /Project TqkLibrary.ScrcpyNative
devenv .\TqkLibrary.Scrcpy.sln /Rebuild 'Release|x86' /Project TqkLibrary.ScrcpyNative
dotnet build --no-incremental .\TqkLibrary.Scrcpy\TqkLibrary.Scrcpy.csproj -c Release
nuget pack .\TqkLibrary.Scrcpy\TqkLibrary.Scrcpy.nuspec -Symbols -OutputDirectory .\TqkLibrary.Scrcpy\bin\Release
dotnet build --no-incremental .\TqkLibrary.Scrcpy.Wpf\TqkLibrary.Scrcpy.Wpf.csproj -c Release
nuget pack .\TqkLibrary.Scrcpy.Wpf\TqkLibrary.Scrcpy.Wpf.nuspec -Symbols -OutputDirectory .\TqkLibrary.Scrcpy.Wpf\bin\Release
$localNuget = $env:localNuget
if(![string]::IsNullOrWhiteSpace($localNuget))
{
Copy-Item .\TqkLibrary.Scrcpy\bin\Release\*.nupkg -Destination $localNuget -Force
Copy-Item .\TqkLibrary.Scrcpy.Wpf\bin\Release\*.nupkg -Destination $localNuget -Force
}