This commit is contained in:
Ryan 2024-07-30 17:55:22 +08:00 • committed by GitHub
commit bbb14f5b50
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
3 changed files with 30 additions and 0 deletions

6
.github/dependabot.yml vendored Normal file
View file

@ -0,0 +1,6 @@
version: 2
updates:
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "daily"

19
.github/workflows/winget.yml vendored Normal file
View file

@ -0,0 +1,19 @@
name: Publish to Winget
on:
release:
types: [released]
jobs:
publish:
runs-on: ubuntu-latest
steps:
- name: Extract version from tag
id: extract_version
run: |
version=$(echo "${{ github.event.release.tag_name }}" | sed -E 's/v([0-9]+)\.0*([0-9]+)-([0-9]+)/\1.\2.\3/')
echo "version=$version" >> $GITHUB_OUTPUT
- uses: vedantmgoyal9/winget-releaser@main
with:
identifier: daynix.UsbDk
version: ${{ steps.extract_version.outputs.version }}
token: ${{ secrets.WINGET_TOKEN }}

View file

@ -35,6 +35,11 @@ desired configuration.
## Installing and running
UsbDk can be installed via Winget on desktop Windows:
```
winget install daynix.UsbDk
```
Use UsbDkController.exe to install/uninstall and verify basic operation.
Run UsbDkController.exe without parameters for command line options.