-
-
Notifications
You must be signed in to change notification settings - Fork 796
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
94de407
commit 3099262
Showing
7 changed files
with
38 additions
and
290 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,4 @@ | ||
@echo off | ||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0scripts\build_demo.ps1"""" | ||
powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0build.ps1"""" | ||
@REM powershell -ExecutionPolicy ByPass -NoProfile -command "& """%~dp0scripts\build_extension.ps1"""" | ||
exit /b %ErrorLevel% | ||
exit /b %ErrorLevel% |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
$wingetVersion = & winget --version 2>$null | ||
|
||
if ($wingetVersion -eq $null) { | ||
Write-Output "winget is not installed. Starting installation..." | ||
|
||
Invoke-WebRequest -Uri "https://github.com/microsoft/winget-cli/releases/download/v1.6.3482/Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" -OutFile "$env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" | ||
|
||
Add-AppxPackage -Path "$env:TEMP\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe.msixbundle" | ||
|
||
Write-Output "winget has been installed." | ||
} | ||
|
||
$dotnetVersion = & dotnet --version 2>$null | ||
|
||
if ($dotnetVersion -eq $null) { | ||
Write-Output ".NET SDK is not installed." | ||
|
||
winget install Microsoft.DotNet.SDK.8 | ||
} else { | ||
$majorVersion = $dotnetVersion.Split('.')[0] | ||
|
||
if ($majorVersion -ge 8) { | ||
Write-Output ".NET SDK version is $dotnetVersion, which is 8.0.0 or newer." | ||
} else { | ||
Write-Output ".NET SDK version is $dotnetVersion, which is older than 8.0.0." | ||
|
||
winget install Microsoft.DotNet.SDK.8 | ||
} | ||
} | ||
|
||
if ($env:PROCESSOR_ARCHITECTURE -eq "AMD64") { | ||
dotnet restore Wpf.Ui.sln /tl | ||
dotnet build src\Wpf.Ui.Gallery\Wpf.Ui.Gallery.csproj --configuration Release --no-restore --verbosity quiet /tl | ||
} else { | ||
Write-Host "Not in the x64 desktop environment." | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.