Skip to content

Commit 0201fca

Browse files
committed
add github nuget registry
1 parent bd3af8f commit 0201fca

File tree

4 files changed

+29
-18
lines changed

4 files changed

+29
-18
lines changed

README.md

+10-18
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ A wrapper of C# `FileSystemWatcher` for Windows, used in [ImageGlass](https://gi
44
This project is based on the *VSCode FileWatcher*: https://github.com/Microsoft/vscode-filewatcher-windows
55

66
![Nuget](https://img.shields.io/nuget/dt/FileWatcherEx?color=%2300a8d6&logo=nuget)
7-
[![Build status](https://ci.appveyor.com/api/projects/status/t20tf9qyta8enhu1?svg=true)](https://ci.appveyor.com/project/d2phap/filewatcherex)
87

98

109
## Resource links
@@ -19,8 +18,13 @@ This project is based on the *VSCode FileWatcher*: https://github.com/Microsoft/
1918

2019
## Installation
2120
Run the command
22-
```bat
21+
```bash
22+
# Nuget package
2323
Install-Package FileWatcherEx
24+
25+
26+
# or use Github registry
27+
dotnet add PROJECT package FileWatcherEx
2428
```
2529

2630
## Usage
@@ -59,21 +63,9 @@ void FW_OnRenamed(object sender, FileChangedEvent e)
5963
[MIT](LICENSE)
6064

6165
## Support this project
62-
63-
<a href="https://github.com/sponsors/d2phap" target="_blank" title="Become a sponsor">
64-
<img src="https://img.shields.io/badge/[email protected]?maxAge=3600&logo=github" height="30" alt="Become a sponsor">
65-
</a>
66-
67-
<a href="https://www.patreon.com/d2phap" target="_blank" title="Become a patron">
68-
<img src="https://img.shields.io/badge/Patreon-@d2phap%20-e85b46.svg?maxAge=3600&logo=patreon" height="30" alt="Become a patron">
69-
</a>
70-
71-
<a href="https://www.paypal.me/d2phap" target="_blank" title="Buy me a beer?">
72-
<img src="https://img.shields.io/badge/PayPal-Donate%20$10%20-0070ba.svg?maxAge=3600&logo=paypal" height="30" alt="Buy me a beer?">
73-
</a>
74-
75-
<a href="https://donorbox.org/imageglass" target="_blank" title="Wire transfer">
76-
<img src="https://img.shields.io/badge/DonorBox-@imageglass%20-005384.svg?maxAge=3600&logo=donorbox" height="30" alt="Wire transfer">
77-
</a>
66+
- [GitHub sponsor](https://github.com/sponsors/d2phap)
67+
- [Patreon](https://www.patreon.com/d2phap)
68+
- [PayPal](https://www.paypal.me/d2phap)
69+
- [Wire Transfers](https://donorbox.org/imageglass)
7870

7971
Thanks for your gratitude and finance help!

Source/FileWatcherEx/FileWatcherEx.csproj

+1
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,7 @@
1616
<VersionPrefix>2.0.0</VersionPrefix>
1717
<PackageLicenseExpression>MIT</PackageLicenseExpression>
1818
<PackageReleaseNotes>Supports for normalizing RENAMED events and .NET 6.0</PackageReleaseNotes>
19+
<Authors>$(Authors)</Authors>
1920
</PropertyGroup>
2021

2122
<ItemGroup>

nuget.config

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<clear />
5+
<add key="github" value="https://nuget.pkg.github.com/d2phap/index.json" />
6+
</packageSources>
7+
<packageSourceCredentials>
8+
<github>
9+
<add key="Username" value="d2phap" />
10+
<add key="ClearTextPassword" value="YOUR_GITHUB_PAT" />
11+
</github>
12+
</packageSourceCredentials>
13+
</configuration>

nuget.ps1

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
2+
dotnet nuget push "Source\FileWatcherEx\bin\Release\FileWatcherEx.2.0.0.nupkg" --api-key YOUR_GITHUB_PAT --source "github"
3+
4+
5+
PAUSE

0 commit comments

Comments
 (0)