Skip to content
This repository was archived by the owner on Jul 5, 2024. It is now read-only.

Commit

Permalink
Update nuspec & add pack script
Browse files Browse the repository at this point in the history
  • Loading branch information
caesay committed Aug 29, 2021
1 parent b8e23fb commit 5bd56bf
Show file tree
Hide file tree
Showing 6 changed files with 51 additions and 41 deletions.
2 changes: 1 addition & 1 deletion Squirrel.sln
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 1 addition & 0 deletions pack.cmd
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
powershell -ExecutionPolicy Bypass -File ./pack.ps1
11 changes: 11 additions & 0 deletions pack.ps1
Original file line number Diff line number Diff line change
@@ -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
33 changes: 33 additions & 0 deletions src/Clowd.Squirrel.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
<?xml version="1.0"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<version>0.0.0</version> <!-- should be set on the command line -->
<authors>GitHub, Anaïs Betts, Caelan Sayler, others</authors>
<owners>Caelan Sayler</owners>
<licenseUrl>https://github.com/clowd/Clowd.Squirrel/blob/master/COPYING</licenseUrl>
<projectUrl>https://github.com/clowd/Clowd.Squirrel</projectUrl>
<iconUrl>https://user-images.githubusercontent.com/1287295/131249078-9e131e51-0b66-4dc7-8c0a-99cbea6bcf80.png</iconUrl>

<dependencies>
<dependency id="Microsoft.CSharp" version="4.7.0" />
<dependency id="Microsoft.Web.Xdt" version="3.1.0" />
<dependency id="System.ComponentModel.Annotations" version="5.0.0" />
<dependency id="System.IO.Packaging" version="5.0.0" />
<dependency id="Microsoft.Win32.Registry" version="5.0.0" />
<dependency id="Mono.Cecil" version="0.11.4" />
<dependency id="SharpCompress" version="0.28.3" />
<dependency id="System.Drawing.Common" version="5.0.2" />
</dependencies>

<id>Clowd.Squirrel</id>
<title>Squirrel for Windows</title>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<description>An installation and update framework for Windows applications</description>
<copyright>Copyright © GitHub 2017, Caelan Sayler 2021</copyright>
</metadata>
<files>
<file src="..\build\Release\netstandard2.0\*" target="lib\netstandard2.0" />
<file src="..\build\publish\*" target="tools" />
<file src="Clowd.Squirrel.props" target="build" />
</files>
</package>
5 changes: 5 additions & 0 deletions src/squirrel.windows.props → src/Clowd.Squirrel.props
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,9 @@
<PropertyGroup>
<SquirrelToolsPath>$([MSBuild]::NormalizePath('$(MSBuildThisFileDirectory)..\tools'))</SquirrelToolsPath>
</PropertyGroup>

<Target Name="PrintSquirrelPath" AfterTargets="Publish,Build">
<Message Importance="high" Text="SquirrelToolsPath: '$(SquirrelToolsPath)'" />
</Target>

</Project>
40 changes: 0 additions & 40 deletions src/Squirrel.nuspec

This file was deleted.

0 comments on commit 5bd56bf

Please sign in to comment.