Skip to content

Commit 33b4b07

Browse files
committed
Added chocolatey package v1.15.0
1 parent 216cf00 commit 33b4b07

File tree

4 files changed

+126
-0
lines changed

4 files changed

+126
-0
lines changed

Package/Chocolatey/icon.png

8.62 KB
Loading
Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
$ErrorActionPreference = 'Stop';
2+
$packageName= 'windowtextextractor'
3+
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
4+
$url = 'https://github.com/AlexanderPro/WindowTextExtractor/releases/download/v1.15.0/WindowTextExtractor_v1.15.0.zip'
5+
6+
$packageArgs = @{
7+
packageName = $packageName
8+
destination = $toolsDir
9+
fileType = 'zip'
10+
url = $url
11+
softwareName = 'WindowTextExtractor*'
12+
checksum = '454f477dd62a2092a2aa09e751bc6a70cdb847a25d060b7e57bf7b8a426ba3c6'
13+
checksumType = 'sha256'
14+
}
15+
16+
Install-ChocolateyZipPackage @packageArgs

Package/Chocolatey/update.ps1

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
$releases = 'https://github.com/AlexanderPro/WindowTextExtractor/releases'
2+
3+
function global:au_GetLatest {
4+
$download_page = Invoke-WebRequest -Uri $releases
5+
$regex = '/AlexanderPro/WindowTextExtractor/releases/download/.*?/WindowTextExtractor_v.*?.zip$'
6+
$url = "https://github.com/" + ($download_page.links | ? href -match $regex | select -First 1 -expand href)
7+
8+
$verregex= [regex]'/WindowTextExtractor_v(.*?).zip$'
9+
$version = $verregex.Match( $url ).Groups[1]
10+
return @{
11+
Version = $version;
12+
URL32 = $url;
13+
ChecksumType32 = 'sha256'
14+
}
15+
}
16+
17+
18+
function global:au_SearchReplace {
19+
@{
20+
"tools\chocolateyInstall.ps1" = @{
21+
"(^[$]url\s*=\s*)('.*')" = "`$1'$($Latest.URL32)'" #1
22+
"(?i)(^\s*checksum\s*=\s*)'.*'" = "`$1'$($Latest.Checksum32)'" #2
23+
}
24+
}
25+
}
26+
27+
28+
update -ChecksumFor 32
Lines changed: 82 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,82 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<!-- Read this before creating packages: https://chocolatey.org/docs/create-packages -->
3+
<!-- It is especially important to read the above link to understand additional requirements when publishing packages to the community feed aka dot org (https://chocolatey.org/packages). -->
4+
5+
<!-- Test your packages in a test environment: https://github.com/chocolatey/chocolatey-test-environment -->
6+
7+
<!--
8+
This is a nuspec. It mostly adheres to https://docs.nuget.org/create/Nuspec-Reference. Chocolatey uses a special version of NuGet.Core that allows us to do more than was initially possible. As such there are certain things to be aware of:
9+
10+
* the package xmlns schema url may cause issues with nuget.exe
11+
* Any of the following elements can ONLY be used by choco tools - projectSourceUrl, docsUrl, mailingListUrl, bugTrackerUrl, packageSourceUrl, provides, conflicts, replaces
12+
* nuget.exe can still install packages with those elements but they are ignored. Any authoring tools or commands will error on those elements
13+
-->
14+
15+
<!-- You can embed software files directly into packages, as long as you are not bound by distribution rights. -->
16+
<!-- * If you are an organization making private packages, you probably have no issues here -->
17+
<!-- * If you are releasing to the community feed, you need to consider distribution rights. -->
18+
<!-- Do not remove this test for UTF-8: if “Ω” doesn’t appear as greek uppercase omega letter enclosed in quotation marks, you should use an editor that supports UTF-8, not this one. -->
19+
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
20+
<metadata>
21+
<!-- == PACKAGE SPECIFIC SECTION == -->
22+
<!-- This section is about this package, although id and version have ties back to the software -->
23+
<!-- id is lowercase and if you want a good separator for words, use '-', not '.'. Dots are only acceptable as suffixes for certain types of packages, e.g. .install, .portable, .extension, .template -->
24+
<!-- If the software is cross-platform, attempt to use the same id as the debian/rpm package(s) if possible. -->
25+
<id>windowtextextractor</id>
26+
<!-- version should MATCH as closely as possible with the underlying software -->
27+
<!-- Is the version a prerelease of a version? https://docs.nuget.org/create/versioning#creating-prerelease-packages -->
28+
<!-- Note that unstable versions like 0.0.1 can be considered a released version, but it's possible that one can release a 0.0.1-beta before you release a 0.0.1 version. If the version number is final, that is considered a released version and not a prerelease. -->
29+
<version>1.15.0</version>
30+
<packageSourceUrl>https://github.com/AlexanderPro/WindowTextExtractor/Package/Chocolatey</packageSourceUrl>
31+
<!-- owners is a poor name for maintainers of the package. It sticks around by this name for compatibility reasons. It basically means you. -->
32+
<owners>AlexanderPro</owners>
33+
<!-- ============================== -->
34+
35+
<!-- == SOFTWARE SPECIFIC SECTION == -->
36+
<!-- This section is about the software itself -->
37+
<title>WindowTextExtractor</title>
38+
<authors>Alexander Illarionov</authors>
39+
<!-- projectUrl is required for the community feed -->
40+
<projectUrl>https://github.com/AlexanderPro/WindowTextExtractor</projectUrl>
41+
<iconUrl>https://rawcdn.githack.com/AlexanderPro/chocolatey-packages/139a9955b6a7be267083d9d8835cb89bde61128d/windowtextextractor/icon.png</iconUrl>
42+
<!-- <copyright>Year Software Vendor</copyright> -->
43+
<!-- If there is a license Url available, it is is required for the community feed -->
44+
<!-- <licenseUrl>Software License Location __REMOVE_OR_FILL_OUT__</licenseUrl>
45+
<requireLicenseAcceptance>true</requireLicenseAcceptance>-->
46+
<!--<projectSourceUrl>Software Source Location - is the software FOSS somewhere? Link to it with this</projectSourceUrl>-->
47+
<!--<docsUrl>At what url are the software docs located?</docsUrl>-->
48+
<!--<mailingListUrl></mailingListUrl>-->
49+
<!--<bugTrackerUrl></bugTrackerUrl>-->
50+
<tags>viewer text extract password window asterisk asterix spy password-cracker password-recovery OCR screenshot capture</tags>
51+
<summary>WindowTextExtractor allows you to get a text, password, screenshot from any window of an operating system</summary>
52+
<description>WindowTextExtractor allows you to get a text from any window of an operating system including microsoft office programs, console windows, password textboxes, etc. It can recover passwords stored behind asterisks (*****) from most of the windows apps. It also shows a detailed window and its process information and allows you to take a window screenshot.
53+
54+
55+
**Please Note**: This is an automatically updated package. If you find it is
56+
out of date by more than a day or two, please contact the maintainer(s) and
57+
let them know the package is no longer updating correctly.
58+
</description>
59+
<!-- <releaseNotes>__REPLACE_OR_REMOVE__MarkDown_Okay</releaseNotes> -->
60+
<!-- =============================== -->
61+
62+
<!-- Specifying dependencies and version ranges? https://docs.nuget.org/create/versioning#specifying-version-ranges-in-.nuspec-files -->
63+
<!--<dependencies>
64+
<dependency id="" version="__MINIMUM_VERSION__" />
65+
<dependency id="" version="[__EXACT_VERSION__]" />
66+
<dependency id="" version="[_MIN_VERSION_INCLUSIVE, MAX_VERSION_INCLUSIVE]" />
67+
<dependency id="" version="[_MIN_VERSION_INCLUSIVE, MAX_VERSION_EXCLUSIVE)" />
68+
<dependency id="" />
69+
<dependency id="chocolatey-uninstall.extension" />
70+
</dependencies>-->
71+
<!-- chocolatey-uninstall.extension - If supporting 0.9.9.x (or below) and including a chocolateyUninstall.ps1 file to uninstall an EXE/MSI, you probably want to include chocolatey-uninstall.extension as a dependency. Please verify whether you are using a helper function from that package. -->
72+
73+
<!--<provides>NOT YET IMPLEMENTED</provides>-->
74+
<!--<conflicts>NOT YET IMPLEMENTED</conflicts>-->
75+
<!--<replaces>NOT YET IMPLEMENTED</replaces>-->
76+
</metadata>
77+
<files>
78+
<!-- this section controls what actually gets packaged into the Chocolatey package -->
79+
<file src="tools\**" target="tools" />
80+
<!--Building from Linux? You may need this instead: <file src="tools/**" target="tools" />-->
81+
</files>
82+
</package>

0 commit comments

Comments
 (0)