Skip to content

Commit b28bcbe

Browse files
committed
完善说明
1 parent bc8d245 commit b28bcbe

File tree

80 files changed

+460
-5
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

80 files changed

+460
-5
lines changed

.github/ISSUE_TEMPLATE/bug_report.yml

+101
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,101 @@
1+
name: Bug Report / Bug 报告
2+
description: Submit bugs to help us improve the app experience / 提交 Bug 以帮助我们提高应用体验
3+
title: "[Bug] My title"
4+
assignees: Richasy
5+
labels:
6+
- "bug"
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
## 写在开头
12+
🚨 请务必完整填写下面的内容,如果缺少必要的信息,开发者可能会在未调查的情况下直接关闭问题 🚨
13+
14+
- type: textarea
15+
id: description
16+
validations:
17+
required: true
18+
attributes:
19+
label: Bug description / Bug 描述
20+
description: Please briefly describe the problem you encountered / 请简短的描述你遇到的问题
21+
- type: textarea
22+
id: repro-steps
23+
validations:
24+
required: true
25+
attributes:
26+
label: Reproduce steps / 复现问题的步骤
27+
render: plain text
28+
description: Please provide steps to reproduce the problem, if not, please specify the reason / 请提供复现问题的步骤,如果不能,请写明原因
29+
placeholder: |
30+
干净清晰的复现步骤有助于开发者更快定位问题所在,你所遇到的问题也会获得更高的优先级.
31+
32+
示例步骤:
33+
1. 打开应用
34+
2. 进入 '...'
35+
3. 点击 '....'
36+
4. 滚动至 '....'
37+
5. 发现问题
38+
- type: textarea
39+
id: expected-behavior
40+
validations:
41+
required: true
42+
attributes:
43+
label: Expected behavior / 预期行为
44+
description: Briefly describe what results you would like to see / 简要描述你希望看到什么样的结果
45+
- type: textarea
46+
id: screenshots
47+
attributes:
48+
label: Screenshot / 截图
49+
description: If possible, submitting screenshots will help us analyze the problem / 如果可以,提交截图更有助于我们分析问题
50+
- type: checkboxes
51+
id: environment-package-source
52+
attributes:
53+
label: Application source / 应用来源
54+
description: Where did you download Loopback Manager from? / 你是从哪里下载的网络回环管理器呢?
55+
options:
56+
- label: Microsoft Store
57+
- label: Github
58+
- label: Others / 其它
59+
- type: input
60+
id: environment-package-other-source
61+
attributes:
62+
label: Other sources
63+
description: If you downloaded Loopback Manager from elsewhere, please cite the source / 如果你是从其它地方下载的网络回环管理器,请注明来源
64+
- type: checkboxes
65+
id: environment-app-target-version
66+
attributes:
67+
label: System version
68+
description: Choose a system version where you found the problem / 选择一个你发现问题的系统版本
69+
options:
70+
- label: Windows 11 21H2 (Build 22000)
71+
- label: Others / 其它
72+
- type: input
73+
id: environment-app-target-other-version
74+
attributes:
75+
label: Other system versions / 其它系统版本
76+
description: If you are running the application on a specific system version, please write it / 如果你是在特别的系统版本中运行应用,请注明系统版本
77+
- type: dropdown
78+
id: form-factor
79+
attributes:
80+
multiple: true
81+
label: Device / 运行设备
82+
description: Select the type of device you are currently running Loopback Manager on / 选择你当前运行网络回环管理器的设备类型
83+
options:
84+
- Desktop/桌面/台式机
85+
- Tablet/平板或笔记本
86+
- Xbox
87+
- ARM64 device
88+
- type: textarea
89+
id: additional-context
90+
attributes:
91+
label: Remark / 备注
92+
description: Add the information you think is necessary / 添加你认为有必要的信息
93+
94+
- type: dropdown
95+
id: contribution
96+
attributes:
97+
label: We are the world / 人人为我,我为人人
98+
description: Would you be willing to help with this if you could? / 如果可以的话,你是否愿意帮忙解决这个问题?
99+
options:
100+
- 'Yes'
101+
- I'm better at spotting problems
+48
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Feature request / 功能需求
2+
description: Provide suggestions or ideas for projects / 给项目提供建议或点子
3+
title: "[Feature] My title"
4+
labels:
5+
- "enhancement"
6+
assignees: Richasy
7+
body:
8+
- type: markdown
9+
attributes:
10+
value: |
11+
## 写在开头
12+
🚨 请务必完整填写下面的内容,如果缺少必要的信息,开发者可能会在未调查的情况下直接关闭问题 🚨
13+
14+
- type: textarea
15+
id: problem-description
16+
validations:
17+
required: true
18+
attributes:
19+
label: Description / 问题描述
20+
description: Describe the problem you want to solve or the use case for the feature / 描述你想要解决的问题或者功能的使用场景
21+
placeholder: |
22+
请描述你遇到的问题或者链接到已存在的 issue.
23+
从用户故事 (User Story) 开始, 简明扼要的说明该功能的适用场景。
24+
说明当前应用在没有该功能情况下对你造成了哪些困扰,而有了这项功能后又能为用户创造怎样的价值
25+
26+
- type: textarea
27+
id: solution-description
28+
validations:
29+
required: true
30+
attributes:
31+
label: Solution / 描述解决方案
32+
description: Tell us what your expected solution to this problem is / 说说对于该问题, 你预期的解决方案是怎样的
33+
placeholder: |
34+
尽量清晰地描述你所预期的解决方案,它会以怎样的方式解决你所遇到的问题,这有助于开发者做出符合你预期的更新
35+
36+
- type: textarea
37+
id: alternatives
38+
attributes:
39+
label: Plan B / 备选方案
40+
description: There is more than one solution to the problem, maybe you have a second best solution / 问题的解决方法不止一种,也许你有一个退而求其次的方案
41+
placeholder: |
42+
当前一种解决方案难以实现时,你是否考虑了其他的替代方案?是否有一个最低的,可接受的实现目标?
43+
44+
- type: textarea
45+
id: additional-info
46+
attributes:
47+
label: Additional / 附加信息
48+
description: Add some notes you think are necessary, or show some sketches that show your ideas / 添加一些你认为有必要的备注信息,或者展示一些能表现你思路的草图

.github/PULL_REQUEST_TEMPLATE.md

+49
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,49 @@
1+
<!-- 🚨 Please do not skip or delete the following information, they are all information required for assessment and testing, complete filling will help you pass the review faster 🚨 -->
2+
3+
<!-- 👉 A PR is best to address only one issue, unless those issues are related to each other -->
4+
5+
<!-- 📝 Please always open the PR `☑️ Allow edits by maintainers` button,Loopback Manager uses a stricter project template, and the maintainer can help you fix some minor errors or formatting issues 🎉 -->
6+
7+
## Close
8+
9+
<!-- Add the issue number to be fixed after the `Close` title above, such as "Close #1234", so that the issue can be closed directly after the PR is merged -->
10+
11+
<!-- Add a brief description of the fixed issue or added feature here -->
12+
13+
## PR type
14+
15+
What is the purpose of this PR?
16+
17+
<!-- Please uncomment the corresponding type -->
18+
19+
<!-- - Bug fix -->
20+
<!-- - Feature -->
21+
<!-- - Code style -->
22+
<!-- - Build or CI update -->
23+
<!-- - Document update -->
24+
<!-- - Others: -->
25+
26+
## What is the current behavior?
27+
28+
<!-- Please describe the behavior of the app before your fix, or add an Issue link -->
29+
30+
## What is the new behavior?
31+
32+
<!-- Describe what problem you solved and what your current behavior is -->
33+
34+
## PR checklist
35+
36+
Please check that your PR meets the following requirements: <!-- remove those that don't apply to the current PR -->
37+
38+
- [ ] App successfully launched
39+
- [ ] New components
40+
- [ ] The documentation for the new component has been prepared, the documentation link: [link]()
41+
- [ ] For controls, the controls have been placed in the `Controls` folder of the main project
42+
- [ ] File headers have been added to all source files
43+
- [ ] **NOT** Contains breaking updates
44+
45+
<!-- If this PR contains a breaking update, please describe below the impact on existing applications and how to adapt to the new changes -->
46+
47+
## Remark
48+
49+
<!-- Please add any information you find helpful -->

.github/release-drafter.yml

+17
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
template: |
2+
## 更改记录
3+
4+
$CHANGES
5+
name-template: 'v$RESOLVED_VERSION'
6+
tag-template: 'v$RESOLVED_VERSION'
7+
categories:
8+
- title: '🚀 功能'
9+
labels:
10+
- 'enhancement'
11+
- title: '🐛 Bug 修复'
12+
labels:
13+
- 'bug'
14+
- title: '🧰 管理与维护'
15+
label: 'maintain'
16+
change-template: '- $TITLE @$AUTHOR (#$NUMBER)'
17+
change-title-escapes: '\<*_&' # You can add # and @ to disable mentions, and add ` to disable code blocks.

.github/workflows/release-builder.yml

+66
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,66 @@
1+
name: Release Builder
2+
3+
on:
4+
workflow_dispatch:
5+
inputs:
6+
version:
7+
description: '版本号(不含v)'
8+
required: true
9+
default: '1.0.0.0'
10+
11+
jobs:
12+
release:
13+
runs-on: windows-latest
14+
15+
env:
16+
SigningCertificate: LoopbackManager.Package_TemporaryKey.pfx
17+
Solution_Path: .\LoopbackManager.Desktop.sln
18+
Desktop_Project_Directory: src\LoopbackManager.Package
19+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
20+
21+
steps:
22+
23+
- name: Configure Pagefile
24+
uses: al-cheb/[email protected]
25+
with:
26+
minimum-size: 32GB
27+
maximum-size: 32GB
28+
disk-root: "C:"
29+
30+
- name: Checkout
31+
uses: actions/checkout@v2
32+
with:
33+
fetch-depth: 0
34+
35+
- uses: release-drafter/release-drafter@v5
36+
name: Create release draft
37+
id: release-drafter
38+
39+
- name: Setup MSBuild.exe
40+
uses: microsoft/[email protected]
41+
42+
- name: Update manifest version
43+
run: |
44+
[xml]$manifest = get-content ".\$env:Desktop_Project_Directory\Package.appxmanifest"
45+
$manifest.Package.Identity.Version = "${{github.event.inputs.version}}"
46+
$manifest.save(".\$env:Desktop_Project_Directory\Package.appxmanifest")
47+
48+
- name: Build x64
49+
run: msbuild $env:Solution_Path /p:Platform=x64 /p:AppxBundlePlatforms="x64" /p:AppxPackageDir=C:\Package\x64 /p:PackageCertificateKeyFile=$env:SigningCertificate /restore
50+
env:
51+
BuildMode: SideloadOnly
52+
Configuration: Release
53+
54+
- name: Create x64 archive
55+
run: Compress-Archive -Path C:\Package\x64\LoopbackManager.Package_${{github.event.inputs.version}}_Test -DestinationPath C:\Package\LoopbackManager.Desktop_${{github.event.inputs.version}}_x64.zip
56+
57+
- name: Update x64 release asset
58+
id: upload-release-asset-x64
59+
uses: actions/upload-release-asset@v1
60+
env:
61+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
62+
with:
63+
upload_url: ${{ steps.release-drafter.outputs.upload_url }}
64+
asset_path: C:\Package\LoopbackManager.Desktop_${{github.event.inputs.version}}_x64.zip
65+
asset_name: LoopbackManager.Desktop_${{github.event.inputs.version}}_x64.zip
66+
asset_content_type: application/zip

.github/workflows/release-drafter.yml

+24
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
name: Release Drafter
2+
3+
on:
4+
push:
5+
# branches to consider in the event; optional, defaults to all
6+
branches:
7+
- main
8+
# pull_request event is required only for autolabeler
9+
pull_request:
10+
# Only following types are handled by the action, but one can default to all as well
11+
types: [opened, reopened, synchronize]
12+
13+
jobs:
14+
update_release_draft:
15+
runs-on: ubuntu-latest
16+
steps:
17+
# Drafts your next Release notes as Pull Requests are merged into "master"
18+
- uses: release-drafter/release-drafter@v5
19+
# (Optional) specify config name to use, relative to .github/. Default: release-drafter.yml
20+
# with:
21+
# config-name: my-config.yml
22+
# disable-autolabeler: true
23+
env:
24+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

LICENSE

+21
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Richasy
4+
5+
Permission is hereby granted, free of charge, to any person obtaining a copy
6+
of this software and associated documentation files (the "Software"), to deal
7+
in the Software without restriction, including without limitation the rights
8+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9+
copies of the Software, and to permit persons to whom the Software is
10+
furnished to do so, subject to the following conditions:
11+
12+
The above copyright notice and this permission notice shall be included in all
13+
copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21+
SOFTWARE.

LoopbackManager.Desktop.sln

+2-2
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,9 @@ Microsoft Visual Studio Solution File, Format Version 12.00
33
# Visual Studio Version 17
44
VisualStudioVersion = 17.2.32526.322
55
MinimumVisualStudioVersion = 10.0.40219.1
6-
Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "LoopbackManager.App (Package)", "src\LoopbackManager.App (Package)\LoopbackManager.App (Package).wapproj", "{E27D101E-9E9A-4DA9-884B-55E19FF73E97}"
6+
Project("{C7167F0D-BC9F-4E6E-AFE1-012C56B48DB5}") = "LoopbackManager.Package", "src\LoopbackManager.Package\LoopbackManager.Package.wapproj", "{E27D101E-9E9A-4DA9-884B-55E19FF73E97}"
77
EndProject
8-
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "LoopbackManager.App", "src\LoopbackManager.App\LoopbackManager.App.csproj", "{3C93931D-C9C5-44A9-AD89-C1DB27EA5805}"
8+
Project("{9A19103F-16F7-4668-BE54-9A1E7A4F7556}") = "LoopbackManager.App", "src\LoopbackManager.App\LoopbackManager.App.csproj", "{3C93931D-C9C5-44A9-AD89-C1DB27EA5805}"
99
EndProject
1010
Global
1111
GlobalSection(SolutionConfigurationPlatforms) = preSolution

0 commit comments

Comments
 (0)