1
1
param (
2
- [string ]$config = " Release" ,
2
+ [string ]$config = " Release" ,
3
3
[string ]$solution = (Join-Path $PSScriptRoot " .." - Resolve)
4
4
)
5
5
Write-Host " Config: $config "
@@ -40,11 +40,11 @@ function Delete-Unused ($path, $config) {
40
40
$target = " $path \Output\$config "
41
41
$included = Get-ChildItem $target - Filter " *.dll"
42
42
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 " }
44
44
$deleteList | ForEach-Object { Write-Host Deleting duplicated $_.Name with version $_.VersionInfo.FileVersion at location $_.Directory.FullName }
45
45
$deleteList | Remove-Item
46
46
}
47
- Remove-Item - Path $target - Include " *.xml" - Recurse
47
+ Remove-Item - Path $target - Include " *.xml" - Recurse
48
48
}
49
49
50
50
function Remove-CreateDumpExe ($path , $config ) {
@@ -87,7 +87,7 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
87
87
Squirrel -- releasify $nupkg -- releaseDir $temp -- setupIcon $icon -- no- msi | Write-Output
88
88
Move-Item $temp \* $output - Force
89
89
Remove-Item $temp
90
-
90
+
91
91
$file = " $output \Flow-Launcher-Setup.exe"
92
92
Write-Host " Filename: $file "
93
93
@@ -107,7 +107,7 @@ function Publish-Self-Contained ($p) {
107
107
}
108
108
109
109
function Publish-Portable ($outputLocation , $version ) {
110
-
110
+
111
111
& $outputLocation \Flow-Launcher-Setup.exe -- silent | Out-Null
112
112
mkdir " $env: LocalAppData \FlowLauncher\app-$version \UserData"
113
113
Compress-Archive - Path $env: LocalAppData \FlowLauncher - DestinationPath $outputLocation \Flow- Launcher- Portable.zip
@@ -119,7 +119,7 @@ function Main {
119
119
Copy-Resources $p
120
120
121
121
if ($config -eq " Release" ){
122
-
122
+
123
123
Delete- Unused $p $config
124
124
125
125
Publish-Self - Contained $p
@@ -134,4 +134,4 @@ function Main {
134
134
}
135
135
}
136
136
137
- Main
137
+ Main
0 commit comments