Skip to content

Commit

Permalink
Package download protonpass
Browse files Browse the repository at this point in the history
[skip ci]
  • Loading branch information
tunisiano187 committed Sep 11, 2024
1 parent 963ba0f commit 01b3cdf
Show file tree
Hide file tree
Showing 4 changed files with 93 additions and 0 deletions.
19 changes: 19 additions & 0 deletions automatic/protonpass/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
[![](https://img.shields.io/chocolatey/v/protonpass?color=green&label=protonpass)](https://chocolatey.org/packages/protonpass) [![](https://img.shields.io/chocolatey/dt/protonpass)](https://chocolatey.org/packages/protonpass)

## Proton Pass

# Proton Pass desktop application

Proton Pass is a cloud based password manager solution with end-to-end encryption.

It also generates unique email aliases, preventing your true email address from being used to track you, exposed in data breaches, or targeted for spam.

The Proton Pass desktop app for Windows, includes offline access. To activate offline mode, Go to settings > Enable offline mode, you’ll be asked to enter your password.

#### [choco://protonpass](choco://protonpass)
To use choco:// protocol URLs, install [(unofficial) choco:// Protocol support ](https://chocolatey.org/packages/choco-protocol-support)

### Package-specific issue
If this package isn't up-to-date for some days, [Create an issue](https://github.com/tunisiano187/Chocolatey-packages/issues/new/choose)

Support the package maintainer and [![Patreon](https://cdn.jsdelivr.net/gh/tunisiano187/Chocolatey-packages@d15c4e19c709e7148588d4523ffc6dd3cd3c7e5e/icons/patreon.png)](https://www.patreon.com/bePatron?u=39585820)
28 changes: 28 additions & 0 deletions automatic/protonpass/protonpass.nuspec
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2011/08/nuspec.xsd">
<metadata>
<id>protonpass</id>
<version>1.16.7</version>
<title>Proton Pass</title>
<authors>Proton AG</authors>
<owners>wadoli</owners>
<requireLicenseAcceptance>false</requireLicenseAcceptance>
<projectUrl>https://proton.me/pass</projectUrl>
<iconUrl>https://avatars.githubusercontent.com/u/124775790</iconUrl>
<description># Proton Pass desktop application

Proton Pass is a cloud based password manager solution with end-to-end encryption.

It also generates unique email aliases, preventing your true email address from being used to track you, exposed in data breaches, or targeted for spam.

The Proton Pass desktop app for Windows, includes offline access. To activate offline mode, Go to settings &gt; Enable offline mode, you’ll be asked to enter your password.</description>
<summary>Proton Pass secures your passwords and identity with end-to-end encryption.</summary>
<copyright>Copyright © 2024 Proton AG</copyright>
<tags>proton pass password manager security</tags>
<packageSourceUrl>https://github.com/wadoli/chocolatey-pkg-protonpass</packageSourceUrl>
<docsUrl>https://proton.me/support/pass</docsUrl>
</metadata>
<files>
<file src="tools\**" target="tools" />
</files>
</package>
21 changes: 21 additions & 0 deletions automatic/protonpass/tools/chocolateyinstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
$ErrorActionPreference = 'Stop' # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
#$url = ''
$url64 = 'https://proton.me/download/PassDesktop/win32/x64/ProtonPass_Setup_1.16.7.exe'

$packageArgs = @{
packageName = $env:ChocolateyPackageName
unzipLocation = $toolsDir
fileType = 'EXE'
#url = $url
url64bit = $url64
silentArgs = "/s"
validExitCodes= @(0)
softwareName = 'Proton Pass*' #part or all of the Display Name as you see it in Programs and Features. It should be enough to be unique
#checksum = '{{Checksum}}'
#checksumType = '{{ChecksumType}}' #default is md5, can also be sha1, sha256 or sha512
checksum64 = '6ED86BF91D59F16D0F4F02CF8961CBCA461264160CB3F5CD326EDF71297CC948'
checksumType64= 'sha256' #default is checksumType
}

Install-ChocolateyPackage @packageArgs # https://docs.chocolatey.org/en-us/create/functions/install-chocolateypackage
25 changes: 25 additions & 0 deletions automatic/protonpass/tools/chocolateyuninstall.ps1
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
$ErrorActionPreference = 'Stop';

[array]$key = Get-UninstallRegistryKey -SoftwareName 'Proton Pass'
$packageName = $env:ChocolateyPackageName

if ($key.Count -eq 1) {
$key | % {
$packageArgs = @{
packageName = $packageName
fileType = 'EXE'
silentArgs = '--uninstall -s'
validExitCodes = @(0)
file = "$($_.UninstallString -replace ' --uninstall')"
}

Uninstall-ChocolateyPackage @packageArgs
}
} elseif ($key.Count -eq 0) {
Write-Warning "$packageName has already been uninstalled by other means."
} elseif ($key.Count -gt 1) {
Write-Warning "$($key.Count) matches found!"
Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
Write-Warning "Please alert package maintainer the following keys were matched:"
$key | % {Write-Warning "- $($_.DisplayName)"}
}

0 comments on commit 01b3cdf

Please sign in to comment.