Skip to content

Commit

Permalink
AU: 1 updated - testdisk-photorec
Browse files Browse the repository at this point in the history
  • Loading branch information
Chocolatey committed Jul 7, 2019
1 parent e25b1e7 commit b10c165
Show file tree
Hide file tree
Showing 5 changed files with 14 additions and 13 deletions.
2 changes: 1 addition & 1 deletion automatic/testdisk-photorec/Readme.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# <img src="https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/edba4a5849ff756e767cba86641bea97ff5721fe/icons/testdisk.svg" width="48" height="48"/> [testdisk-photorec](https://chocolatey.org/packages/testdisk-photorec)
# <img src="https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-coreteampackages@edba4a5849ff756e767cba86641bea97ff5721fe/icons/testdisk.svg" width="48" height="48"/> [testdisk-photorec](https://chocolatey.org/packages/testdisk-photorec)


TestDisk is powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting a Partition Table). Partition table recovery using TestDisk is really easy.
Expand Down
4 changes: 2 additions & 2 deletions automatic/testdisk-photorec/legal/VERIFICATION.txt
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@ The embedded software have been downloaded from the listed download
location on <http://www.cgsecurity.org/wiki/TestDisk_Download>
and can be verified by doing the following:

1. Download the following <https://www.cgsecurity.org/testdisk-7.0.win.zip>
1. Download the following <https://www.cgsecurity.org/testdisk-7.1.win.zip>
2. Get the checksum using one of the following methods:
- Using powershell function 'Get-FileHash'
- Use chocolatey utility 'checksum.exe'
3. The checksums should match the following:

checksum type: sha256
checksum: 3C1FDBACA0AC686677F88B6BBF18D04C82F2C4047488C2E52DA8E2347574B320
checksum: 1231CCFD46815E324F3C541B1E4A0A569A0A16B5C7D320C8C049C36595785224

The file 'LICENSE.txt' has been obtained from <http://www.gnu.org/licenses/gpl.txt>
11 changes: 6 additions & 5 deletions automatic/testdisk-photorec/testdisk-photorec.nuspec
Original file line number Diff line number Diff line change
Expand Up @@ -3,21 +3,21 @@
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>testdisk-photorec</id>
<version>7.0.0.20170429</version>
<packageSourceUrl>https://github.com/Chocolatey/chocolatey-coreteampackages/tree/master/automatic/testdisk-photorec</packageSourceUrl>
<version>7.1</version>
<packageSourceUrl>https://github.com/chocolatey-community/chocolatey-coreteampackages/tree/master/automatic/testdisk-photorec</packageSourceUrl>
<owners>chocolatey</owners>
<title>TestDisk and PhotoRec</title>
<authors>CGSecurity</authors>
<projectUrl>http://www.cgsecurity.org/wiki/TestDisk</projectUrl>
<iconUrl>https://cdn.rawgit.com/chocolatey/chocolatey-coreteampackages/edba4a5849ff756e767cba86641bea97ff5721fe/icons/testdisk.svg</iconUrl>
<iconUrl>https://cdn.jsdelivr.net/gh/chocolatey-community/chocolatey-coreteampackages@edba4a5849ff756e767cba86641bea97ff5721fe/icons/testdisk.svg</iconUrl>
<licenseUrl>http://www.gnu.org/licenses/gpl.html</licenseUrl>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<docsUrl>http://www.cgsecurity.org/wiki/TestDisk#Documentation</docsUrl>
<mailingListUrl>http://forum.cgsecurity.org/</mailingListUrl>
<tags>testdisk-photorec data recovery foss cross-platform</tags>
<summary>Data recovery software</summary>
<!-- Do not touch the description here in the nuspec file. Description is imported during update from the Readme.md file -->
<description>
<description><![CDATA[
TestDisk is powerful free data recovery software! It was primarily designed to help recover lost partitions and/or make non-booting disks bootable again when these symptoms are caused by faulty software, certain types of viruses or human error (such as accidentally deleting a Partition Table). Partition table recovery using TestDisk is really easy.
PhotoRec is file data recovery software designed to recover lost files including video, documents and archives from hard disks, CD-ROMs, and lost pictures (thus the Photo Recovery name) from digital camera memory. PhotoRec ignores the file system and goes after the underlying data, so it will still work even if your media's file system has been severely damaged or reformatted.
Expand All @@ -33,7 +33,8 @@ PhotoRec is file data recovery software designed to recover lost files including
- Locate ext2/ext3/ext4 Backup SuperBlock
- Undelete files from FAT, exFAT, NTFS and ext2 filesystem
- Copy files from deleted FAT, exFAT, NTFS and ext2/ext3/ext4 partitions.
</description>
]]></description>
<releaseNotes>http://www.cgsecurity.org/wiki/TestDisk_{{PackageVersion}}_Release</releaseNotes>
</metadata>
<files>
Expand Down
6 changes: 3 additions & 3 deletions automatic/testdisk-photorec/tools/chocolateyInstall.ps1
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,13 @@

$toolsPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

$previousDirectories = Get-ChildItem "$toolsPath" -Filter "testdisk*" | ? { Test-Path -PathType Container $_.FullName }
$previousDirectories = Get-ChildItem "$toolsPath" -Filter "testdisk*" | Where-Object { Test-Path -PathType Container $_.FullName }
if ($previousDirectories) { Remove-Item $previousDirectories.FullName -Force -ea 0 -Recurse }

$packageArgs = @{
packageName = 'testdisk-photorec'
fileType = 'zip'
file = "$toolsPath\testdisk-7.0.win.zip"
file = "$toolsPath\testdisk-7.1.win.zip"
destination = "$toolsPath"
}

Expand All @@ -18,7 +18,7 @@ Remove-Item "$toolsPath\*.zip" -Force -ea 0

$files = Get-ChildItem "$toolsPath" -Include "testdisk_win.exe",'*photorec_win.exe' -Recurse
$desktopPath = [System.Environment]::GetFolderPath('Desktop')
$files | % {
$files | ForEach-Object {
$fileName = $_.BaseName
Install-ChocolateyShortcut -ShortcutFilePath "$desktopPath\$fileName.lnk" -TargetPath $_.FullName
}
4 changes: 2 additions & 2 deletions automatic/testdisk-photorec/tools/chocolateyUninstall.ps1
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
$ErrorActionPreference = 'Stop'
$ErrorActionPreference = 'Stop'

$files = @('testdisk_win.lnk', '*photorec_win.lnk')
$desktopPath = [System.Environment]::GetFolderPath('Desktop')

$files | ? { Test-Path "$desktopPath\$_" } | % { Remove-Item -Force "$desktopPath\$_" }
$files | Where-Object { Test-Path "$desktopPath\$_" } | ForEach-Object { Remove-Item -Force "$desktopPath\$_" }

0 comments on commit b10c165

Please sign in to comment.