diff --git a/.gitignore b/.gitignore index 48a07ae..f40d150 100644 --- a/.gitignore +++ b/.gitignore @@ -259,3 +259,6 @@ paket-files/ # Python Tools for Visual Studio (PTVS) __pycache__/ *.pyc + +# Custom +*.msi diff --git a/PinWin.sln b/PinWin.sln index 96f1c0e..2b2f3f9 100644 --- a/PinWin.sln +++ b/PinWin.sln @@ -14,6 +14,21 @@ Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Solution Items", "Solution EndProject Project("{930C7802-8A8C-48F9-8165-68863BCCD9DD}") = "Setup", "Setup\Setup.wixproj", "{DD87CEB2-5635-488B-BD9C-52CBD93A608C}" EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "choco", "choco", "{E667BED5-F79A-4305-B701-AED24AB5EADC}" + ProjectSection(SolutionItems) = preProject + choco\pinwin.nuspec = choco\pinwin.nuspec + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "tools", "tools", "{D6DF54E0-79AF-462A-A802-4464118076CA}" + ProjectSection(SolutionItems) = preProject + choco\tools\chocolateyinstall.ps1 = choco\tools\chocolateyinstall.ps1 + EndProjectSection +EndProject +Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "img", "img", "{2FAC4F97-AEF9-471E-9B57-579290BDE553}" + ProjectSection(SolutionItems) = preProject + img\icon.png = img\icon.png + EndProjectSection +EndProject Global GlobalSection(SolutionConfigurationPlatforms) = preSolution Debug|Any CPU = Debug|Any CPU @@ -39,6 +54,11 @@ Global GlobalSection(SolutionProperties) = preSolution HideSolutionNode = FALSE EndGlobalSection + GlobalSection(NestedProjects) = preSolution + {E667BED5-F79A-4305-B701-AED24AB5EADC} = {060ED345-F2C1-408B-B1A7-37CFCC2A168B} + {D6DF54E0-79AF-462A-A802-4464118076CA} = {E667BED5-F79A-4305-B701-AED24AB5EADC} + {2FAC4F97-AEF9-471E-9B57-579290BDE553} = {060ED345-F2C1-408B-B1A7-37CFCC2A168B} + EndGlobalSection GlobalSection(ExtensibilityGlobals) = postSolution SolutionGuid = {23B94BA9-5C80-4343-ADD9-343CB9F9804D} EndGlobalSection diff --git a/README.md b/README.md index 4fd5b13..bd8d746 100644 --- a/README.md +++ b/README.md @@ -20,12 +20,23 @@ PinWin is a minimal Windows system tray application that allows you to pin any w - Runs quietly in background and does not need installation -## Setup and Usage +## Setup #### Requirements PinWin requires Windows 7 or newer and .NET Framework 4.6.2 or higher. +#### Installation + +- Download the [latest release from SourceForge](https://sourceforge.net/projects/pinwin/files/) + +or + +- Install from [Chocolatey](https://chocolatey.org): +``` +choco install pinwin +``` + ## Feedback and Support _Please leave a feedback on [Sourceforge](https://sourceforge.net/p/pinwin/reviews). Thank you!_ diff --git a/choco/pinwin.nuspec b/choco/pinwin.nuspec new file mode 100644 index 0000000..2571360 --- /dev/null +++ b/choco/pinwin.nuspec @@ -0,0 +1,34 @@ + + + + + + pinwin + 0.2.2 + alxnull + + + + PinWin + alxnull + https://sf.net/p/pinwin + https://gitcdn.xyz/repo/Bluegrams/PinWin/master/img/icon.png + © 2020 Bluegrams + https://github.com/Bluegrams/PinWin/blob/master/LICENSE.txt + false + https://github.com/Bluegrams/PinWin + https://github.com/Bluegrams/PinWin/issues + pinwin windows always-on-top ontop pin desktop + Pin any window to be always on top of the screen. + PinWin is a minimal Windows system tray application that allows you to pin any windows to the top of the screen with one click. + https://github.com/Bluegrams/PinWin/blob/master/Changelog.md + + + + + + + + + + diff --git a/choco/tools/chocolateyinstall.ps1 b/choco/tools/chocolateyinstall.ps1 new file mode 100644 index 0000000..4ed024b --- /dev/null +++ b/choco/tools/chocolateyinstall.ps1 @@ -0,0 +1,14 @@ +$ErrorActionPreference = 'Stop'; +$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)" +$fileLocation = Join-Path $toolsDir 'PinWinSetup.msi' + +$packageArgs = @{ + packageName = $env:ChocolateyPackageName + fileType = 'msi' + file = $fileLocation + softwareName = 'PinWin*' + silentArgs = "/qn /norestart /l*v `"$($env:TEMP)\$($packageName).$($env:chocolateyPackageVersion).MsiInstall.log`"" + validExitCodes= @(0, 3010, 1641) +} + +Install-ChocolateyInstallPackage @packageArgs diff --git a/img/icon.png b/img/icon.png new file mode 100644 index 0000000..253f046 Binary files /dev/null and b/img/icon.png differ