diff --git a/build.ps1 b/build.ps1 index 601cd7c..e4fcdc1 100644 --- a/build.ps1 +++ b/build.ps1 @@ -2,13 +2,19 @@ $buildPath = 'C:\SeeSharp\win10\x64' $pagesPath = Join-Path -Path $buildPath -ChildPath '\pages' ### build App +Write-Host "BUILDING APP" -ForegroundColor Green +cd SeeSharp.Desktop dotnet publish -o $buildPath -c RELEASE -f netcoreapp3.0 -r win10-x64 /p:PublishSingleFile=true /p:IncludeSymbolsInSingleFile=true +cd .. -### Create 'Send to > pages' shortcut +### Create 'Send to > SeeSharp' shortcut +Write-Host "CREATING 'Send to > SeeSharp' SHORTCUT" -ForegroundColor Green $wshshell = New-Object -com wscript.shell $shortcutPath = Join-Path -Path $wshshell.SpecialFolders.Item('sendto') -ChildPath 'SeeSharp.lnk' $shortcut = $wshshell.CreateShortcut($shortcutPath) $shortcut.TargetPath = $pagesPath $shortcut.Description = 'this shortcut was created by SeeSharp' -$shortcut.Save() \ No newline at end of file +$shortcut.Save() + +Write-Host "ALL DONE!" -ForegroundColor Green \ No newline at end of file