-
-
Notifications
You must be signed in to change notification settings - Fork 260
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Bumped to v2.2, created basic release script, built new release.
- Loading branch information
Showing
14 changed files
with
136 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,64 @@ | ||
# IMPORTANT: Make sure that the path to msbuild is correct! | ||
$msbuild = "C:\Windows\Microsoft.NET\Framework\v4.0.30319\msbuild.exe" | ||
if ((Test-Path $msbuild) -eq $false) { | ||
Write-Host "Cannot find msbuild at '$msbuild'." | ||
Break | ||
} | ||
|
||
# Load useful functions. | ||
. .\Resources\PowershellFunctions.ps1 | ||
|
||
# Keep track of the 'release' folder location - it's the root of everything else. | ||
# We can also build paths to the key locations we'll use. | ||
$scriptParentPath = Split-Path -parent $MyInvocation.MyCommand.Definition | ||
$folderReleaseRoot = $scriptParentPath | ||
$folderSourceRoot = Split-Path -parent $folderReleaseRoot | ||
$folderSolutionsRoot = Join-Path $folderSourceRoot "SharpShell" | ||
$folderNuspecRoot = Join-Path $folderSourceRoot "release\nuspec" | ||
|
||
# Part 1 - Build the solution | ||
Write-Host "Preparing to build the SharpShell solution..." | ||
$solutionCoreLibraries = Join-Path $folderSolutionsRoot "SharpShell.sln" | ||
. $msbuild $solutionCoreLibraries /p:Configuration=Release /verbosity:minimal | ||
|
||
# Part 2 - Get the version number of the core library, use this to build the destination release folder. | ||
$folderBuild = Join-Path $folderSourceRoot "Build" | ||
$releaseVersion = [Reflection.Assembly]::LoadFile((Join-Path $folderBuild "Core\SharpShell.dll")).GetName().Version | ||
Write-Host "Built SharpShell. Release Version: $releaseVersion" | ||
|
||
# Part 3 - Copy the core, tools and samples to the release. | ||
$folderRelease = Join-Path $folderReleaseRoot $releaseVersion | ||
Copy-Item "$folderBuild\Core" "$folderRelease\Core" -Force -Recurse | ||
Copy-Item "$folderBuild\Samples" "$folderRelease\Samples" -Force -Recurse | ||
Copy-Item "$folderBuild\Tools" "$folderRelease\Tools" -Force -Recurse | ||
|
||
# Part 4 - Build the SharpShell Nuget Package | ||
Write-Host "Preparing to build the SharpShell Nuget Package..." | ||
$folderReleasePackage = Join-Path $folderRelease "Package" | ||
EnsureEmptyFolderExists $folderReleasePackage | ||
$nuget = Join-Path $scriptParentPath "Resources\nuget.exe" | ||
CopyItems (Join-Path "$folderRelease\Core" "*.*") (Join-Path $folderNuspecRoot "SharpShell\lib\net40") | ||
. $nuget pack (Join-Path $folderNuspecRoot "SharpShell\SharpShell.nuspec") -Version $releaseVersion -OutputDirectory $folderReleasePackage | ||
$packagePath = (Join-Path $folderReleasePackage "SharpShell.$releaseVersion.nupkg") | ||
|
||
# Part 5 - Build the SharpShell Tools Nuget Package | ||
Write-Host "Preparing to build the SharpShell Tools Nuget Package..." | ||
CopyItems (Join-Path "$folderRelease\Tools" "*.*") (Join-Path $folderNuspecRoot "SharpShellTools\lib") | ||
. $nuget pack (Join-Path $folderNuspecRoot "SharpShellTools\SharpShellTools.nuspec") -Version $releaseVersion -OutputDirectory $folderReleasePackage | ||
$packagePathTools = (Join-Path $folderReleasePackage "SharpShell.$releaseVersion.nupkg") | ||
|
||
# Part 6 - Zip up the Core. | ||
# TODO | ||
|
||
# Part 7 - Zip up the Server Manager. | ||
# TODO | ||
|
||
# Part 8 - Zip up the SRM. | ||
# TODO | ||
|
||
# We're done! | ||
Write-Host "Successfully built version: $releaseVersion" | ||
|
||
# If the user wants, we can also publish. | ||
# . $nuget push $packagePath | ||
# . $nuget push $packagePathTools |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
# Copy items to a destination folder, creating the folder if needed. | ||
function CopyItems($source, $destinationFolder) { | ||
|
||
# Create the any folders or subfolders up to the destination that don't exist. | ||
EnsureFolderExists($destinationFolder) | ||
|
||
# Now copy the items. | ||
Copy-Item $source -Destination $destinationFolder | ||
} | ||
|
||
# Ensures that a folder exists. | ||
function EnsureFolderExists($folder) { | ||
|
||
# Create the any folders or subfolders up to the destination that don't exist. | ||
if (!(Test-Path -path $folder)) { | ||
New-Item $folder -Type Directory | ||
} | ||
} | ||
|
||
# Ensures that a folder exists and deletes anything in it. | ||
function EnsureEmptyFolderExists($folder) { | ||
EnsureFolderExists($folder) | ||
Remove-Item -Recurse -Force $folder | ||
EnsureFolderExists($folder) | ||
} |
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> | ||
<metadata> | ||
<id>SharpShell</id> | ||
<version>2.2</version> | ||
<title>SharpShell</title> | ||
<authors>Dave Kerr</authors> | ||
<owners>Dave Kerr</owners> | ||
<projectUrl>https://github.com/dwmkerr/sharpshell</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>SharpShell is a framework that lets you build Windows Shell Extensions using the .NET Framework.</description> | ||
<summary>SharpShell is a framework that lets you build Windows Shell Extensions using the .NET Framework.</summary> | ||
<copyright>Copyright © Dave Kerr 2014</copyright> | ||
<tags>Shell,SharpShell,COM,Context Menu,Icon Handler</tags> | ||
<frameworkAssemblies> | ||
<frameworkAssembly assemblyName="System.Windows.Forms" targetFramework="" /> | ||
<frameworkAssembly assemblyName="System.Drawing" targetFramework="" /> | ||
</frameworkAssemblies> | ||
</metadata> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,20 @@ | ||
<?xml version="1.0" encoding="utf-8"?> | ||
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd"> | ||
<metadata> | ||
<id>SharpShellTools</id> | ||
<version>2.2.0.0</version> | ||
<title>SharpShell Tools</title> | ||
<authors>Dave Kerr</authors> | ||
<owners>Dave Kerr</owners> | ||
<projectUrl>https://github.com/dwmkerr/sharpshell</projectUrl> | ||
<requireLicenseAcceptance>false</requireLicenseAcceptance> | ||
<description>SharpShell is a framework that lets you build Windows Shell Extensions using the .NET Framework. The SharpShell Tools are a set of tools for working with these extensions.</description> | ||
<summary>SharpShell is a framework that lets you build Windows Shell Extensions using the .NET Framework. The SharpShell Tools are a set of tools for working with these extensions.</summary> | ||
<copyright>Copyright © Dave Kerr 2014</copyright> | ||
<tags>Shell,SharpShell,COM,Context Menu,Icon Handler</tags> | ||
<frameworkAssemblies> | ||
<frameworkAssembly assemblyName="System.Windows.Forms" targetFramework="" /> | ||
<frameworkAssembly assemblyName="System.Drawing" targetFramework="" /> | ||
</frameworkAssemblies> | ||
</metadata> | ||
</package> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Binary file modified
BIN
-11 KB
(97%)
SharpShell/Tools/ServerRegistrationManager/EmbeddedReferences/SharpShell.dll
Binary file not shown.