Skip to content

Commit bc8fb08

Browse files
committed
3.623.20209.21649
1 parent f0c700c commit bc8fb08

14 files changed

+210
-92
lines changed
Lines changed: 58 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,58 @@
1+
---
2+
name: "Bug Report \U0001F41B"
3+
about: 创建 Bug 报告以帮助我们改进 / Create a report to help us improve
4+
title: "\U0001F41B[BUG] 请输入标题(Please enter a title)"
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
发布前请先尝试在 Issues 内搜索一下你的问题是否已经被提出过,
12+
详细地描述 bug,让大家都能理解,请一定确定你所要发布的内容是一个 Bug,如果不确定请发 Question
13+
别忘了填写标题,标题要简短的描述问题
14+
Before posting, please try searching in Issues to see if your question has already been asked,
15+
Describe the bug in detail so that everyone can understand it
16+
Don't forget to fill in the title, which should briefly describe the problem
17+
-->
18+
19+
### 🐛 描述(Description)
20+
<!--
21+
详细的描述该问题
22+
Describe the problem in detail
23+
-->
24+
25+
26+
### 📷 复现步骤(Steps to Reproduce)
27+
28+
<!--
29+
清晰描述复现步骤,让别人也能看到问题
30+
确保上述步骤尽可能能够在大多数设备上 100% 复现,以便定位问题原因
31+
Clearly describe the reproduction steps so that others can see the problem
32+
Ensure that the above steps can be reproduced 100% on most devices as far as possible in order to locate the cause of the problem
33+
-->
34+
1.
35+
2.
36+
3.
37+
38+
### 📄 日志信息(Log Information)
39+
<!--
40+
41+
```
42+
你的日志内容
43+
Your log content
44+
```
45+
46+
-->
47+
48+
### 🚑 基本信息(Basic Information)
49+
50+
- 库版本(Library Version):
51+
- 系统版本号(OS Version): <!-- example Windows 10.19042.844(see winver) / macOS Monterey 12 / Ubuntu 20.04.2 LTS -->
52+
53+
### 🖼 截图(Screenshots)
54+
55+
<!--
56+
截图可以贴在这里
57+
Screenshots can be posted here
58+
-->

.github/ISSUE_TEMPLATE/question.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: "Question \U0001F9D0"
3+
about: 对库使用的疑问或需要帮助 / Questions about the use of the library or need help
4+
title: "\U0001F9D0[Question] 请输入标题(Please enter a title)"
5+
labels: question
6+
assignees: ''
7+
8+
---
9+
10+
<!--
11+
发布前请先尝试在 Issuse 内搜索一下你的 Question 是否已经被提出过,
12+
别忘了填写标题,标题要简短的描述 Question
13+
Before publishing, please try to search in issue to see if your question has been proposed,
14+
Don't forget to fill in the title, which should briefly describe the question
15+
-->
16+
17+
### 🧐 问题描述(Description)
18+
19+
<!--
20+
详细地描述 Question,让大家都能理解
21+
Describe the question in detail so that everyone can understand it
22+
-->
23+
24+
### 🚑 其他信息(Other Information)
25+
26+
<!--
27+
如截图等其他信息可以贴在这里
28+
Other information such as screenshots can be posted here
29+
-->
30+
31+
- 库版本(Library Version):
32+
- 系统版本号(OS Version): <!-- example Windows 10.19042.844(see winver) / macOS Monterey 12 / Ubuntu 20.04.2 LTS -->

.github/workflows/CI.yml

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
name: CI
2+
on:
3+
push:
4+
branches:
5+
- main
6+
tags:
7+
- "*"
8+
pull_request:
9+
workflow_dispatch:
10+
11+
jobs:
12+
test:
13+
name: Test
14+
runs-on: ${{ matrix.os }}
15+
strategy:
16+
matrix:
17+
os: [ windows-latest ]
18+
19+
steps:
20+
- name: Checkout repository
21+
uses: actions/checkout@v3
22+
with:
23+
fetch-depth: 0
24+
submodules: recursive
25+
26+
- name: Setup .NET
27+
uses: actions/setup-dotnet@v2
28+
with:
29+
dotnet-version: 7.0.x
30+
31+
- name: Verify dotnet info
32+
run: dotnet --info
33+
34+
- name: Test
35+
shell: pwsh
36+
run: dotnet test -c Release
37+
38+
build:
39+
name: Build
40+
needs: [ test ]
41+
if: ${{ github.event_name == 'push' && startsWith(github.ref, 'refs/tags/') }}
42+
runs-on: windows-latest
43+
strategy:
44+
matrix:
45+
include:
46+
- ProjectName: "WinAuth"
47+
PackageId: "WinAuth.Library"
48+
49+
steps:
50+
- name: Checkout repository
51+
uses: actions/checkout@v3
52+
with:
53+
fetch-depth: 0
54+
submodules: recursive
55+
56+
- name: Setup .NET
57+
uses: actions/setup-dotnet@v2
58+
with:
59+
dotnet-version: 7.0.x
60+
61+
- name: Verify dotnet info
62+
run: dotnet --info
63+
64+
- name: Build
65+
shell: pwsh
66+
run: dotnet build -c Release src\${{ matrix.ProjectName }}\${{ matrix.ProjectName }}.csproj
67+
68+
- name: Push nuget packages
69+
shell: pwsh
70+
run: |
71+
dotnet nuget push pkg\${{ matrix.PackageId }}*.nupkg -s https://nuget.pkg.github.com/BeyondDimension -k ${{ secrets.RMBADMIN_TOKEN }} --skip-duplicate
72+
dotnet nuget push pkg\${{ matrix.PackageId }}*.snupkg -s https://nuget.pkg.github.com/BeyondDimension -k ${{ secrets.RMBADMIN_TOKEN }} --skip-duplicate
73+
dotnet nuget push pkg\${{ matrix.PackageId }}*.nupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
74+
dotnet nuget push pkg\${{ matrix.PackageId }}*.snupkg -s https://api.nuget.org/v3/index.json -k ${{ secrets.NUGET_API_KEY }} --skip-duplicate
75+
release:
76+
name: Release
77+
needs: build
78+
runs-on: ubuntu-latest
79+
80+
steps:
81+
- name: Changelog
82+
uses: glennawatson/ChangeLog@v1
83+
id: changelog
84+
85+
- name: Create Release
86+
uses: ncipollo/release-action@v1
87+
with:
88+
token: ${{ secrets.RMBADMIN_TOKEN }}
89+
body: ${{ steps.changelog.outputs.commitLog }}
90+
draft: false
91+
prerelease: false

Authenticator/Authenticator.csproj

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,11 @@
11
<Project Sdk="Microsoft.NET.Sdk">
22

33
<PropertyGroup>
4-
<TargetFramework>net7.0</TargetFramework>
4+
<Title>WinAuth</Title>
5+
<Description>WinAuth - The Windows Authenticator</Description>
6+
<Product>WinAuth</Product>
7+
<Copyright>© Copyright 2016. Colin Mackie. All rights reserved.</Copyright>
58
<AssemblyName>WinAuth</AssemblyName>
6-
<GenerateAssemblyInfo>false</GenerateAssemblyInfo>
79
</PropertyGroup>
810

911
<ItemGroup>
@@ -12,4 +14,7 @@
1214
<PackageReference Include="Portable.BouncyCastle" Version="1.9.0" />
1315
<PackageReference Include="System.Security.Cryptography.ProtectedData" Version="7.0.0" />
1416
</ItemGroup>
17+
18+
<Import Project="..\src\TFM_NET7.props" />
19+
<Import Project="..\src\GeneratePackage.props" />
1520
</Project>
Lines changed: 2 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,36 +1,9 @@
1-
using System.Reflection;
2-
using System.Runtime.CompilerServices;
3-
using System.Runtime.InteropServices;
4-
[assembly: SuppressIldasm]
5-
6-
// General Information about an assembly is controlled through the following
7-
// set of attributes. Change these attribute values to modify the information
8-
// associated with an assembly.
9-
[assembly: AssemblyTitle("Authenticator")]
10-
[assembly: AssemblyDescription("Authenticator implementation")]
11-
[assembly: AssemblyConfiguration("")]
12-
[assembly: AssemblyProduct("WinAuth")]
13-
[assembly: AssemblyCopyright("Copyright © 2016. Colin Mackie. All rights reserved.")]
14-
[assembly: AssemblyTrademark("")]
15-
[assembly: AssemblyCulture("")]
1+
using System.Runtime.InteropServices;
162

173
// Setting ComVisible to false makes the types in this assembly not visible
184
// to COM components. If you need to access a type in this assembly from
195
// COM, set the ComVisible attribute to true on that type.
206
[assembly: ComVisible(false)]
217

228
// The following GUID is for the ID of the typelib if this project is exposed to COM
23-
[assembly: Guid("1524be97-5daf-4fc9-93eb-12ec78b23fa0")]
24-
25-
// Version information for an assembly consists of the following four values:
26-
//
27-
// Major Version
28-
// Minor Version
29-
// Build Number
30-
// Revision
31-
//
32-
// You can specify all the values or you can default the Build and Revision Numbers
33-
// by using the '*' as shown below:
34-
// [assembly: AssemblyVersion("1.0.*")]
35-
[assembly: AssemblyVersion("3.6.1.0")]
36-
[assembly: AssemblyFileVersion("3.6.1.0")]
9+
[assembly: Guid("1524be97-5daf-4fc9-93eb-12ec78b23fa0")]

NuGet.Config

Lines changed: 0 additions & 5 deletions
This file was deleted.

WinAuth.sln

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ VisualStudioVersion = 17.4.33122.133
55
MinimumVisualStudioVersion = 10.0.40219.1
66
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "Authenticator", "Authenticator\Authenticator.csproj", "{3A299D80-D745-481F-88B8-8F22FFBBB77F}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "WinAuth", "src\WinAuth\WinAuth.csproj", "{AC76E0B8-28E7-4138-BAF3-BC1E18C89C82}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "WinAuth", "src\WinAuth\WinAuth.csproj", "{AC76E0B8-28E7-4138-BAF3-BC1E18C89C82}"
99
EndProject
1010
Project("{2150E333-8FDC-42A3-9474-1A3956D46DE8}") = "Root", "Root", "{FD79FB1B-D7CB-4557-8876-768F0D008495}"
1111
ProjectSection(SolutionItems) = preProject
1212
src\.editorconfig = src\.editorconfig
13+
.github\workflows\CI.yml = .github\workflows\CI.yml
1314
src\Directory.Build.props = src\Directory.Build.props
14-
src\Directory.Packages.props = src\Directory.Packages.props
15+
ref\DirectoryPackages\Directory.Packages.props = ref\DirectoryPackages\Directory.Packages.props
1516
src\GeneratePackage.props = src\GeneratePackage.props
16-
NuGet.Config = NuGet.Config
1717
README.md = README.md
1818
src\TFM_NET7.props = src\TFM_NET7.props
1919
EndProjectSection
-1.9 KB
Binary file not shown.
-1.82 KB
Binary file not shown.
-1.81 KB
Binary file not shown.

0 commit comments

Comments
 (0)