11param (
2- [string ]$config = " Release" ,
2+ [string ]$config = " Release" ,
33 [string ]$solution = (Join-Path $PSScriptRoot " .." - Resolve)
44)
55Write-Host " Config: $config "
@@ -40,11 +40,11 @@ function Delete-Unused ($path, $config) {
4040 $target = " $path \Output\$config "
4141 $included = Get-ChildItem $target - Filter " *.dll"
4242 foreach ($i in $included ){
43- $deleteList = Get-ChildItem $target \Plugins - Include $i - Recurse | Where { $_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion -And $_.Name -eq " $i " }
43+ $deleteList = Get-ChildItem $target \Plugins - Include $i - Recurse | Where { $_.VersionInfo.FileVersion -eq $i.VersionInfo.FileVersion -And $_.Name -eq " $i " }
4444 $deleteList | ForEach-Object { Write-Host Deleting duplicated $_.Name with version $_.VersionInfo.FileVersion at location $_.Directory.FullName }
4545 $deleteList | Remove-Item
4646 }
47- Remove-Item - Path $target - Include " *.xml" - Recurse
47+ Remove-Item - Path $target - Include " *.xml" - Recurse
4848}
4949
5050function Remove-CreateDumpExe ($path , $config ) {
@@ -87,7 +87,7 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
8787 Squirrel -- releasify $nupkg -- releaseDir $temp -- setupIcon $icon -- no- msi | Write-Output
8888 Move-Item $temp \* $output - Force
8989 Remove-Item $temp
90-
90+
9191 $file = " $output \Flow-Launcher-Setup.exe"
9292 Write-Host " Filename: $file "
9393
@@ -107,7 +107,7 @@ function Publish-Self-Contained ($p) {
107107}
108108
109109function Publish-Portable ($outputLocation , $version ) {
110-
110+
111111 & $outputLocation \Flow-Launcher-Setup.exe -- silent | Out-Null
112112 mkdir " $env: LocalAppData \FlowLauncher\app-$version \UserData"
113113 Compress-Archive - Path $env: LocalAppData \FlowLauncher - DestinationPath $outputLocation \Flow- Launcher- Portable.zip
@@ -119,7 +119,7 @@ function Main {
119119 Copy-Resources $p
120120
121121 if ($config -eq " Release" ){
122-
122+
123123 Delete- Unused $p $config
124124
125125 Publish-Self - Contained $p
@@ -134,4 +134,4 @@ function Main {
134134 }
135135}
136136
137- Main
137+ Main
0 commit comments