Downloads:

438

Downloads of v 2.7.0.20210301:

156

Last Update:

07 Mar 2021

Package Maintainer(s):

Software Author(s):

  • Qv2ray Developers

Tags:

qv2ray v2ray shadowsocks trojan ssr naive

Qv2ray Development Edition (Install)

  • 1
  • 2
  • 3

2.7.0.20210301 | Updated: 07 Mar 2021

Downloads:

438

Downloads of v 2.7.0.20210301:

156

Maintainer(s):

Software Author(s):

  • Qv2ray Developers

  • 1
  • 2
  • 3
Qv2ray Development Edition (Install) 2.7.0.20210301

  • 1
  • 2
  • 3

All Checks are Passing

3 Passing Tests


Validation Testing Passed


Verification Testing Passed

Details

Scan Testing Successful:

No detections found in any package files

Details

Deployment Method: Individual Install, Upgrade, & Uninstall

To install Qv2ray Development Edition (Install), run the following command from the command line or from PowerShell:

>

To upgrade Qv2ray Development Edition (Install), run the following command from the command line or from PowerShell:

>

To uninstall Qv2ray Development Edition (Install), run the following command from the command line or from PowerShell:

>

Deployment Method:

📝 NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Enter Your Internal Repository Url

(this should look similar to https://community.chocolatey.org/api/v2/)


2. Setup Your Environment

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

2. Get the package into your environment

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://community.chocolatey.org/api/v2/. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Copy Your Script

choco upgrade qv2ray-dev -y --source="'INTERNAL REPO URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade qv2ray-dev -y --source="'INTERNAL REPO URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Install qv2ray-dev
  win_chocolatey:
    name: qv2ray-dev
    version: '2.7.0.20210301'
    source: INTERNAL REPO URL
    state: present

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.


chocolatey_package 'qv2ray-dev' do
  action    :install
  source   'INTERNAL REPO URL'
  version  '2.7.0.20210301'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


cChocoPackageInstaller qv2ray-dev
{
    Name     = "qv2ray-dev"
    Version  = "2.7.0.20210301"
    Source   = "INTERNAL REPO URL"
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'qv2ray-dev':
  ensure   => '2.7.0.20210301',
  provider => 'chocolatey',
  source   => 'INTERNAL REPO URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


4. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved as a trusted package on 07 Mar 2021.

Description

Qv2ray is a proxy tool based on Project V


tools\chocolateyinstall.ps1
$packageName = 'Qv2ray-Dev'

# Is the plugins' path appears?
$PluginsPath = "$env:ALLUSERSPROFILE" + "\qv2ray" + "\plugins"
$IsPathOK = Test-Path $PluginsPath
if ($IsPathOK -eq "True") {
    Write-Output "Found plugins' path."
}
else {
    Write-Output "Plugins' path is missing, create it in $PluginsPath."
    New-Item -Path "$env:ALLUSERSPROFILE" -Name "qv2ray" -ItemType "directory" -ErrorAction Ignore; 
    New-Item -Path "$env:ALLUSERSPROFILE\qv2ray" -Name "plugins" -ItemType "directory" -ErrorAction Ignore; 
    Write-Output "Created $PluginsPath."
} 

# Main Program
$installerType = 'exe'
# $url = 'https://github.com/Qv2ray/Qv2ray/releases/download/v2.7.0-pre1/qv2ray-2.7.0-pre1-win32.exe'
$url64 = 'https://github.com/Qv2ray/Qv2ray/releases/download/v2.7.0-pre2/qv2ray-2.7.0-pre2-win64.exe'
$DownloadPath = "$env:temp"
$silentArgs = '/S'
$Qv2rayPID = Get-Process -name qv2ray* -ErrorAction Ignore | Select-Object id | ForEach-Object -Process { $_.id }
# $SHA256_32 = "73ad21f1d11fc591ff5847b7fbe74d12c080b689f9ee1a2161d2d711051ac30a"
$SHA256_64 = "06e5a5f09c9ec3ed809951a90a561ab71ad33be06dfe13f5569d0401241e83e4"
Write-Output "The Qv2ray will be stop during installation / upgrading."
Get-ChocolateyWebFile -FileFullPath "$DownloadPath\Qv2ray.exe" -Url64 $url64 -Checksum64 $SHA256_64  -ChecksumType64 'sha256'  -PackageName "Qv2ray.exe" 

# ShadowsocksR plugin
# $urlssr32 = "https://github.com/Qv2ray/QvPlugin-SSR/releases/download/v3.0.0-pre3/QvPlugin-SSR.v3.0.0-pre3.Windows-x86.dll"
# $urlssr64 = "https://github.com/Qv2ray/QvPlugin-SSR/releases/download/v3.0.0-pre3/QvPlugin-SSR.v3.0.0-pre3.Windows-x64.dll"
# $SHA256_32_SSR = "C4548A845BE2C1FCD658B7BEF3B074272382CA9D13106F2646AEEDB241EA17BC"
# $SHA256_64_SSR = "1E6F0C7D2985822E45277868C4AE06E0BBD134F2C4762CF82D4A2B56898A2BD6"
# $filename_ssr = "QvSSRPlugin.dll"
# Write-Output "Downloading ShadowsocksR plugin."
# Get-ChocolateyWebFile -Url $urlssr32 -Checksum $SHA256_32_SSR -ChecksumType 'sha256' -Url64 $urlssr64 -Checksum64 $SHA256_64_SSR  -ChecksumType64 'sha256' -FileFullPath "$DownloadPath\$filename_ssr" -PackageName "$filename_ssr"


# Trojan-GFW plugin
# $urltj32 = "https://github.com/Qv2ray/QvPlugin-Trojan/releases/download/v3.0.0-pre3/QvPlugin-Trojan.v3.0.0-pre3.Windows-x86.dll"
$urltj64 = "https://github.com/Qv2ray/QvPlugin-Trojan/releases/download/v3.0.0-pre3/QvPlugin-Trojan.v3.0.0-pre3.Windows-x64.dll"
# $SHA256_32_Trojan = "42334E49D1E963F45415DAE91749BEBA641532CD2E4CB7763607214A191B2FE1"
$SHA256_64_Trojan = "CD1CBA996017F3DCBBCB45B1241A416798CDEE1BBEFC9F700E9298C33BED9A4C"
$filename_trojan = "QvTrojanPlugin.dll"
Write-Output "Downloading Trojan-GFW plugin."
Get-ChocolateyWebFile -Url64 $urltj64 -Checksum64 $SHA256_64_Trojan  -ChecksumType64 'sha256' -FileFullPath "$DownloadPath\$filename_trojan" -PackageName "$filename_trojan"


# ShadowSocks Plugin
# $urlss32 = "https://github.com/Qv2ray/QvPlugin-SS/releases/download/v3.0.0-pre3/QvPlugin-SS.v3.0.0-pre3.Windows-x86.dll"
$urlss64 = "https://github.com/Qv2ray/QvPlugin-SS/releases/download/v3.0.0-pre3/QvPlugin-SS.v3.0.0-pre3.Windows-x64.dll"
# $SHA256_32_SS = "E8C0CB89FF3729D8245D407E1F529CEA20D40B20B4B35368E83E142EC19C3973"
$SHA256_64_SS = "CACAD05EAF37D1A6EA126326A6BC9253D8A6A1DA27CFA4718F7A7B3DC4DC2951"
$filename_ss = "QvSSPlugin.dll"
Write-Output "Downloading Shadowsocks-SIP003 plugin."
Get-ChocolateyWebFile -Url64 $urlss64 -Checksum64 $SHA256_64_SS -ChecksumType64 'sha256' -FileFullPath "$DownloadPath\$filename_ss" -PackageName "$filename_ss"

# Stop Qv2ray
if ([String]::IsNullOrEmpty($Qv2rayPID)) {
    Write-Output "Process qv2ray.exe is not running."
} 
else {
    Write-Output "Process qv2ray.exe is running, stoping it and install a new version."; Stop-Process $Qv2rayPID
}

# Installation for Qv2ray
Install-ChocolateyPackage $packageName $installerType $silentArgs -File "$DownloadPath\Qv2ray.exe"  -File64 "$DownloadPath\Qv2ray.exe"

# Remove Old Plugins (this might be removed on the later editions)
Write-Output "Removing old plugins…"
Remove-Item "$PluginsPath\$filename_trojan" -Force -Recurse -ErrorAction Ignore
#Remove-Item "$PluginsPath\$filename_ssr" -Force -Recurse -ErrorAction Ignore
Remove-Item "$PluginsPath\$filename_ss" -Force -Recurse -ErrorAction Ignore

# Installation plugins
Write-Output "Copy new plugins to $PluginsPath"
Copy-Item "$DownloadPath\$filename_trojan" -Destination "$PluginsPath" -Force -Recurse
# Copy-Item "$DownloadPath\$filename_ssr" -Destination "$PluginsPath" -Force -Recurse
Copy-Item "$DownloadPath\$filename_ss" -Destination "$PluginsPath" -Force -Recurse
tools\chocolateyuninstall.ps1
$PluginsPath = "$env:ALLUSERSPROFILE" + "\qv2ray" + "\plugins"
$Qv2rayPID  = Get-Process -name qv2ray* -ErrorAction Ignore | Select-Object id | ForEach-Object -Process{$_.id}
$path = $env:ProgramFiles + "\qv2ray\Uninstall.exe"
if ([String]::IsNullOrEmpty($Qv2rayPID)) 
   {
    Write-Host "Process Qv2ray.exe is not running."
   } 
   else {
    Write-Host "Process Qv2ray.exe is running, stop and uninstall it."; Stop-Process $Qv2rayPID
}
Uninstall-ChocolateyPackage -PackageName 'Qv2ray-Dev' -File $path -SilentArgs "/S"
Remove-Item $PluginsPath -Force -Recurse -ErrorAction Ignore

Log in or click on link to see number of positives.

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Add to Builder Version Downloads Last Updated Status
Qv2ray Development Edition (Install) 2.7.0.20201105 88 Thursday, November 5, 2020 Approved
Qv2ray Development Edition (Install) 2.7.0.20200923 59 Sunday, September 27, 2020 Approved
Qv2ray Beta 2.6.0.20200709 82 Sunday, July 12, 2020 Approved
Qv2ray (Install) 2.6.0.20200610 53 Wednesday, June 10, 2020 Approved

This package has no dependencies.

Discussion for the Qv2ray Development Edition (Install) Package

Ground Rules:

  • This discussion is only about Qv2ray Development Edition (Install) and the Qv2ray Development Edition (Install) package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or Qv2ray Development Edition (Install), or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus