Add new CH340 driver package
Some checks failed
/ Build-Chocolatey-Packages (push) Failing after 2m46s

This commit is contained in:
Adam Goldsmith 2023-05-02 23:36:59 -04:00
parent 232816a883
commit da4df9fe05
4 changed files with 38 additions and 0 deletions

BIN
ch340_driver/CH341SER.EXE (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,17 @@
<?xml version="1.0" encoding="utf-8"?>
<package xmlns="http://schemas.microsoft.com/packaging/2015/06/nuspec.xsd">
<metadata>
<id>ch340_driver</id>
<version>3.8</version>
<packageSourceUrl>https://git.claremontmakerspace.org/CMS/chocolatey-packages</packageSourceUrl>
<owners>Adam</owners>
<title>CH340 Driver (Install)</title>
<authors>WCH</authors>
<projectUrl>http://www.wch-ic.com/downloads/CH341SER_EXE.html</projectUrl>
<docsUrl>http://www.wch-ic.com/downloads/CH340DS1_PDF.html</docsUrl>
<tags>ch340 ch341 serial driver</tags>
<summary>Driver for the CH340/CH341 USB Serial IC</summary>
<description>CH340/CH341 USB to serial port One-Key installation VCP vendor driver for Windows, supports Windows 11/10/8.1/8/7/VISTA/XP/2000/98Server 2022/2019/2016/2012/2008/2003 -32/64bit, Microsoft WHQL/HCK Certified, supports USB to 3-line and 9-line serial port.</description>
</metadata>
</package>

BIN
ch340_driver/tools/CH341SER.EXE (Stored with Git LFS) Normal file

Binary file not shown.

View File

@ -0,0 +1,15 @@
$ErrorActionPreference = 'Stop' # stop on all errors
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$fileLocation = Join-Path $toolsDir 'CH341SER.EXE'
$packageArgs = @{
packageName = $env:ChocolateyPackageName
FileType = 'exe'
File = $fileLocation
SilentArgs = '/S'
Checksum = '74d12019023390d27739625773005ecccf1bc6c4547e0c46088e86665e519524'
ChecksumType64 = 'sha256'
ValidExitCodes = @(0, 1223)
}
Install-ChocolateyInstallPackage @packageArgs