Param( [String] $Example = 'main', [Switch] $SkipBuild ) Push-Location $PSScriptRoot If (-Not (Test-Path "./examples/$Example.rs")) { Write-Host "Example '$Example' not found" Exit 1 } If (-Not $SkipBuild) { cargo build --example $Example } $name = $Example $capital_name = (Get-Culture).TextInfo.ToTitleCase($name) $display_name = "Rust WinRT Core App Example ($capital_name)" $ident_name = "RustWinRTCoreAppExample$capital_name" $manifest = @" $display_name thiskaiguy assets\StoreLogo.png "@ $manifest_path = ".\AppxManifest.xml" $manifest | Out-File $manifest_path Add-AppxPackage -Register $manifest_path Remove-Item $manifest_path Pop-Location