Skip to content

Commit

Permalink
Added nuspec and build related files
Browse files Browse the repository at this point in the history
  • Loading branch information
Bäriswyl Roman committed May 24, 2017
1 parent cef71c3 commit a296a0a
Show file tree
Hide file tree
Showing 5 changed files with 85 additions and 0 deletions.
10 changes: 10 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
# Changelog

## vnext (xxxx-xx-xx)

### Enhancements

### Bug fixes

## Older changes
See https://raw.githubusercontent.com/Roemer/FlaUI/master/CHANGELOG.md
44 changes: 44 additions & 0 deletions CreateArtefacts.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
$artefactDir = "Artefacts"
$tempDir = "Temp"
$version = "1.1.0"
$rootPath = "."

function Main {
if (Test-Path $artefactDir) {
rd $artefactDir -Recurse | Out-Null
}
md -Name $artefactDir | Out-Null

if (Test-Path $tempDir) {
rd $tempDir -Recurse | Out-Null
}
md -Name $tempDir | Out-Null

# FlaUInspect
$inspectDir = Join-Path $tempDir "FlaUInspect-$version"
Copy-Item -Path $rootPath\src\FlaUInspect\bin -Destination $inspectDir -Recurse
Get-ChildItem $inspectDir -Include *.pdb,*.xml,*.vshost.*,*RANDOM_SEED* -Recurse | Remove-Item
Deploy-License $inspectDir

# Create Zips
[Reflection.Assembly]::LoadWithPartialName("System.IO.Compression.FileSystem") | Out-Null
$compression = [System.IO.Compression.CompressionLevel]::Optimal
$includeBaseDirectory = $false
[System.IO.Compression.ZipFile]::CreateFromDirectory($inspectDir, (Join-Path $artefactDir "FlaUInspect-$version.zip"), $compression, $includeBaseDirectory)

Create-Packages

# Cleanup
rd $tempDir -Recurse
}

function Deploy-License($dest) {
Copy-Item -Path $rootPath\CHANGELOG.md -Destination $dest
Copy-Item -Path $rootPath\LICENSE.txt -Destination $dest
}

function Create-Packages() {
choco pack "$rootPath\nuspec\FlaUInspect.nuspec" -OutputDirectory $artefactDir --version $version
}

Main
File renamed without changes.
5 changes: 5 additions & 0 deletions VERIFICATION.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
VERIFICATION
Verification is intended to assist the Chocolatey moderators and community
in verifying that this package's contents are trustworthy.

The binaries can be downloaded from https://github.com/FlauTech/FlaUInspect/releases and compared with the ones included in this package.
26 changes: 26 additions & 0 deletions nuspec/FlaUInspect.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>flauinspect</id>
<version>$version$</version>
<title>FlaUInspect</title>
<authors>Roemer</authors>
<owners>Roemer</owners>
<licenseUrl>https://github.com/FlauTech/FlaUInspect/blob/master/LICENSE.txt</licenseUrl>
<projectUrl>https://github.com/FlauTech/FlaUInspect</projectUrl>
<iconUrl>https://github.com/FlauTech/FlaUInspect/blob/master/FlaUInspect.png?raw=true</iconUrl>
<packageSourceUrl>https://github.com/FlauTech/FlaUInspect</packageSourceUrl>
<releaseNotes>https://github.com/FlauTech/FlaUInspect/blob/master/CHANGELOG.md</releaseNotes>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<summary>Tool to inspect Windows applications how UIA sees them.</summary>
<description>This application allows to inspect Windows applications with Microsoft UIA (UI Automation) and shows how UIA sees the application.</description>
<copyright>Copyright 2016-2017</copyright>
<tags>UI Automation UIA2 UIA3 UIA System.Windows.Automation Inspect</tags>
</metadata>
<files>
<file src="..\src\FlaUInspect\bin\**\*.*" exclude="**\*.pdb;**\*.xml;**\*.vshost.*;**\*RANDOM_SEED*" target="tools" />
<file src="..\LICENSE.txt" target="tools" />
<file src="..\CHANGELOG.md" target="tools" />
<file src="..\VERIFICATION.txt" target="tools" />
</files>
</package>

0 comments on commit a296a0a

Please sign in to comment.