diff --git a/Flow.Launcher/Flow.Launcher.csproj b/Flow.Launcher/Flow.Launcher.csproj
index f3885ccfd..910eb03bc 100644
--- a/Flow.Launcher/Flow.Launcher.csproj
+++ b/Flow.Launcher/Flow.Launcher.csproj
@@ -1,5 +1,4 @@
-
WinExe
net5.0-windows10.0.19041.0
@@ -12,6 +11,8 @@
false
false
en
+ ../Scripts/flowlauncher.nuspec
+ version=$(PackageVersion)
@@ -100,4 +101,4 @@
-
\ No newline at end of file
+
diff --git a/Scripts/flowlauncher.nuspec b/Scripts/flowlauncher.nuspec
index 8877bfbaf..d4dfa11df 100644
--- a/Scripts/flowlauncher.nuspec
+++ b/Scripts/flowlauncher.nuspec
@@ -3,7 +3,7 @@
FlowLauncher
Flow Launcher
- $version$
+ 1.0.0
Flow-Launcher Team
https://github.com/Flow-Launcher/Flow.Launcher
https://raw.githubusercontent.com/Flow-Launcher/Flow.Launcher/master/Flow.Launcher/Images/app.png
@@ -11,6 +11,6 @@
Flow Launcher - a launcher for windows
-
+
diff --git a/Scripts/post_build.ps1 b/Scripts/post_build.ps1
index 28d1d3c42..074538093 100644
--- a/Scripts/post_build.ps1
+++ b/Scripts/post_build.ps1
@@ -71,8 +71,8 @@ function Pack-Squirrel-Installer ($path, $version, $output) {
Write-Host "Input path: $input"
# making version static as multiple versions can exist in the nuget folder and in the case a breaking change is introduced.
New-Alias Nuget $env:USERPROFILE\.nuget\packages\NuGet.CommandLine\5.4.0\tools\NuGet.exe -Force
- # TODO: can we use dotnet pack here?
- nuget pack $spec -Version $version -BasePath $input -OutputDirectory $output -Properties Configuration=Release
+
+ dotnet pack "$path\Flow.Launcher\Flow.Launcher.csproj" -p:NuspecFile=$spec -p:NuspecBasePath="$path\Output\Release" -p:PackageVersion=$version -c Release --no-build --output $output
$nupkg = "$output\FlowLauncher.$version.nupkg"
Write-Host "nupkg path: $nupkg"
@@ -103,7 +103,8 @@ function Publish-Self-Contained ($p) {
# we call dotnet publish on the main project.
# The other projects should have been built in Release at this point.
- dotnet publish -c Release $csproj /p:PublishProfile=$profile
+
+ # dotnet publish -c Release $csproj /p:PublishProfile=$profile
}
function Main {