From 5bd56bff59996cdd5bbd615f0f55d3da674770f7 Mon Sep 17 00:00:00 2001 From: Caelan Sayler Date: Sun, 29 Aug 2021 13:03:01 +0100 Subject: [PATCH] Update nuspec & add pack script --- Squirrel.sln | 2 +- pack.cmd | 1 + pack.ps1 | 11 +++++ src/Clowd.Squirrel.nuspec | 33 +++++++++++++++ ...rel.windows.props => Clowd.Squirrel.props} | 5 +++ src/Squirrel.nuspec | 40 ------------------- 6 files changed, 51 insertions(+), 41 deletions(-) create mode 100644 pack.cmd create mode 100644 pack.ps1 create mode 100644 src/Clowd.Squirrel.nuspec rename src/{squirrel.windows.props => Clowd.Squirrel.props} (58%) delete mode 100644 src/Squirrel.nuspec diff --git a/Squirrel.sln b/Squirrel.sln index 7361cfbf..f184783b 100644 --- a/Squirrel.sln +++ b/Squirrel.sln @@ -16,8 +16,8 @@ EndProject Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "SolutionLevel", "SolutionLevel", "{ED657D2C-F8A0-4012-A64F-7367D41BE4D2}" ProjectSection(SolutionItems) = preProject .editorconfig = .editorconfig + src\Clowd.Squirrel.nuspec = src\Clowd.Squirrel.nuspec src\Directory.Build.props = src\Directory.Build.props - src\Squirrel.nuspec = src\Squirrel.nuspec vendor\wix\template.wxs = vendor\wix\template.wxs EndProjectSection EndProject diff --git a/pack.cmd b/pack.cmd new file mode 100644 index 00000000..b746ae55 --- /dev/null +++ b/pack.cmd @@ -0,0 +1 @@ +powershell -ExecutionPolicy Bypass -File ./pack.ps1 \ No newline at end of file diff --git a/pack.ps1 b/pack.ps1 new file mode 100644 index 00000000..eb4d657c --- /dev/null +++ b/pack.ps1 @@ -0,0 +1,11 @@ +Set-Location "$PSScriptRoot" +$ErrorActionPreference = "Stop" + +# get current git version +$gitVerJson = (&nbgv get-version -f json) | ConvertFrom-Json +$version = $gitVerJson.SimpleVersion + $gitVerJson.PrereleaseVersion + +& "$PSScriptRoot\.nuget\NuGet.exe" pack "$PSScriptRoot\src\Clowd.Squirrel.nuspec" ` +-BasePath "$PSScriptRoot\src" ` +-OutputDirectory "$PSScriptRoot\build" ` +-Version $version \ No newline at end of file diff --git a/src/Clowd.Squirrel.nuspec b/src/Clowd.Squirrel.nuspec new file mode 100644 index 00000000..39ee47b6 --- /dev/null +++ b/src/Clowd.Squirrel.nuspec @@ -0,0 +1,33 @@ + + + + 0.0.0 + GitHub, Anaïs Betts, Caelan Sayler, others + Caelan Sayler + https://github.com/clowd/Clowd.Squirrel/blob/master/COPYING + https://github.com/clowd/Clowd.Squirrel + https://user-images.githubusercontent.com/1287295/131249078-9e131e51-0b66-4dc7-8c0a-99cbea6bcf80.png + + + + + + + + + + + + + Clowd.Squirrel + Squirrel for Windows + false + An installation and update framework for Windows applications + Copyright © GitHub 2017, Caelan Sayler 2021 + + + + + + + diff --git a/src/squirrel.windows.props b/src/Clowd.Squirrel.props similarity index 58% rename from src/squirrel.windows.props rename to src/Clowd.Squirrel.props index 0b45b327..9df58873 100644 --- a/src/squirrel.windows.props +++ b/src/Clowd.Squirrel.props @@ -2,4 +2,9 @@ $([MSBuild]::NormalizePath('$(MSBuildThisFileDirectory)..\tools')) + + + + + \ No newline at end of file diff --git a/src/Squirrel.nuspec b/src/Squirrel.nuspec deleted file mode 100644 index 028c0068..00000000 --- a/src/Squirrel.nuspec +++ /dev/null @@ -1,40 +0,0 @@ - - - - 2.0.1 - GitHub - Anaïs Betts - https://github.com/squirrel/Squirrel.Windows/blob/master/COPYING - https://github.com/squirrel/Squirrel.Windows - https://raw.githubusercontent.com/Squirrel/Squirrel.Windows/master/docs/artwork/Squirrel-Logo-Square.png - - - - - - - - squirrel.windows - Squirrel for Windows - false - An installation and update framework for Windows applications - Copyright GitHub© 2017 - - - - - - - - - - - - - - - - - - -