Giter Site home page Giter Site logo

[New app]: Proton VPN about evergreen HOT 2 CLOSED

aaronparker avatar aaronparker commented on May 27, 2024
[New app]: Proton VPN

from evergreen.

Comments (2)

AScott-WWF avatar AScott-WWF commented on May 27, 2024 1

I have just created the Manifest and App scripts to do this - I hope these help @aaronparker ?:
Manifest: ProtonVPN.json:

{
	"Name": "ProtonVPN",
	"Source": "https://protonvpn.com/",
	"Get": {
		"Uri": "https://api.github.com/repos/ProtonVPN/win-app/releases/latest",
        "MatchVersion": "(\\d+(\\.\\d+){1,4}).*",
        "MatchFileTypes": "\\.exe$"
	},
	"Install": {
		"Setup": "ProtonVPN*.exe",
		"Physical": {
			"Arguments": "/exenoui /exelog C:\Windows\Temp\ProtonVPN.log /qn /exenoupdates",
			"PostInstall": [TASKKILL /F /IM ProtonVPN.exe]
		},
		"Virtual": {
			"Arguments": "/exenoui /exelog C:\Windows\Temp\ProtonVPN.log /qn /exenoupdates",
			"PostInstall": [TASKKILL /F /IM ProtonVPN.exe]
		}
	}
}

Apps script: Get-ProtonVPN.ps1:

Function Get-ProtonVPN {
    <#
        .SYNOPSIS
            Returns the latest ProtonVPN version number and download.

        .NOTES
            Author: Adrian Scott
    #>
    [OutputType([System.Management.Automation.PSObject])]
    [CmdletBinding(SupportsShouldProcess = $False)]
    param (
        [Parameter(Mandatory = $False, Position = 0)]
        [ValidateNotNull()]
        [System.Management.Automation.PSObject]
        $res = (Get-FunctionResource -AppName ("$($MyInvocation.MyCommand)".Split("-"))[1])
    )

    # Pass the repo releases API URL and return a formatted object
    $params = @{
        Uri          = $res.Get.Uri
        MatchVersion = $res.Get.MatchVersion
        Filter       = $res.Get.MatchFileTypes
    }
    $object = Get-GitHubRepoRelease @params
    Write-Output -InputObject $object
}

from evergreen.

Taxit0m avatar Taxit0m commented on May 27, 2024

Is this a new version? What makes proton vpn new?

from evergreen.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.