From da4df9fe0525fb8bf04771ba0631b61ffe4fdccd Mon Sep 17 00:00:00 2001 From: Adam Goldsmith Date: Tue, 2 May 2023 23:36:59 -0400 Subject: [PATCH] Add new CH340 driver package --- ch340_driver/CH341SER.EXE | 3 +++ ch340_driver/ch340_driver.nuspec | 17 +++++++++++++++++ ch340_driver/tools/CH341SER.EXE | 3 +++ ch340_driver/tools/chocolateyinstall.ps1 | 15 +++++++++++++++ 4 files changed, 38 insertions(+) create mode 100644 ch340_driver/CH341SER.EXE create mode 100644 ch340_driver/ch340_driver.nuspec create mode 100644 ch340_driver/tools/CH341SER.EXE create mode 100644 ch340_driver/tools/chocolateyinstall.ps1 diff --git a/ch340_driver/CH341SER.EXE b/ch340_driver/CH341SER.EXE new file mode 100644 index 0000000..5616848 --- /dev/null +++ b/ch340_driver/CH341SER.EXE @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74d12019023390d27739625773005ecccf1bc6c4547e0c46088e86665e519524 +size 658240 diff --git a/ch340_driver/ch340_driver.nuspec b/ch340_driver/ch340_driver.nuspec new file mode 100644 index 0000000..dd58a92 --- /dev/null +++ b/ch340_driver/ch340_driver.nuspec @@ -0,0 +1,17 @@ + + + + + ch340_driver + 3.8 + https://git.claremontmakerspace.org/CMS/chocolatey-packages + Adam + CH340 Driver (Install) + WCH + http://www.wch-ic.com/downloads/CH341SER_EXE.html + http://www.wch-ic.com/downloads/CH340DS1_PDF.html + ch340 ch341 serial driver + Driver for the CH340/CH341 USB Serial IC + 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/98,Server 2022/2019/2016/2012/2008/2003 -32/64bit, Microsoft WHQL/HCK Certified, supports USB to 3-line and 9-line serial port. + + diff --git a/ch340_driver/tools/CH341SER.EXE b/ch340_driver/tools/CH341SER.EXE new file mode 100644 index 0000000..5616848 --- /dev/null +++ b/ch340_driver/tools/CH341SER.EXE @@ -0,0 +1,3 @@ +version https://git-lfs.github.com/spec/v1 +oid sha256:74d12019023390d27739625773005ecccf1bc6c4547e0c46088e86665e519524 +size 658240 diff --git a/ch340_driver/tools/chocolateyinstall.ps1 b/ch340_driver/tools/chocolateyinstall.ps1 new file mode 100644 index 0000000..0696023 --- /dev/null +++ b/ch340_driver/tools/chocolateyinstall.ps1 @@ -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