Compare commits

..

2 Commits

Author SHA1 Message Date
da4df9fe05 Add new CH340 driver package
Some checks failed
/ Build-Chocolatey-Packages (push) Failing after 2m46s
2023-05-03 09:42:33 -04:00
232816a883 Set up git LFS 2023-05-02 23:33:06 -04:00
6 changed files with 42 additions and 0 deletions

2
.gitattributes vendored Normal file
View File

@ -0,0 +1,2 @@
*.exe filter=lfs diff=lfs merge=lfs -text
*.EXE filter=lfs diff=lfs merge=lfs -text

View File

@ -14,6 +14,8 @@ jobs:
steps: steps:
- name: Checkout - name: Checkout
uses: actions/checkout@v3 uses: actions/checkout@v3
with:
lfs: true
- name: Setup dotnet - name: Setup dotnet
uses: https://github.com/actions/setup-dotnet@v3 uses: https://github.com/actions/setup-dotnet@v3
with: with:

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