Skip to content

Commit e435a9b

Browse files
committed
add some code
1 parent 0e6dd08 commit e435a9b

File tree

12 files changed

+220
-0
lines changed

12 files changed

+220
-0
lines changed

.config/dotnet-tools.json

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
{
2+
"version": 1,
3+
"isRoot": true,
4+
"tools": {
5+
"csharpier": {
6+
"version": "0.18.0",
7+
"commands": ["dotnet-csharpier"]
8+
}
9+
}
10+
}

.editorconfig

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# http://editorconfig.org
2+
root = true
3+
4+
[*]
5+
indent_style = space
6+
indent_size = 4
7+
end_of_line = lf
8+
charset = utf-8
9+
trim_trailing_whitespace = true
10+
insert_final_newline = true
11+
12+
[*.md]
13+
trim_trailing_whitespace = false
14+
15+
[*.{yml,yaml}]
16+
indent_size = 2

.github/FUNDING.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
github: eai04191

.github/workflows/build.yml

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
name: Build
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
build:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Setup .NET
14+
uses: actions/setup-dotnet@v2
15+
with:
16+
dotnet-version: 6.0.x
17+
18+
- name: Restore dependencies
19+
run: dotnet restore
20+
21+
- name: Build
22+
run: dotnet build --no-restore
23+
24+
- name: Upload artifact
25+
uses: actions/upload-artifact@v3
26+
with:
27+
path: ${{ github.workspace }}/bin/Debug/netstandard2.1/net.laoplus.HttpProxy.dll
28+
if-no-files-found: error

.github/workflows/format.yml

Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
name: Check code format
2+
3+
on:
4+
push:
5+
6+
jobs:
7+
prettier:
8+
runs-on: ubuntu-latest
9+
10+
steps:
11+
- uses: actions/checkout@v3
12+
13+
- name: Check code format with prettier
14+
run: |
15+
npx -y prettier . --check --ignore-path .gitignore
16+
17+
csharpier:
18+
runs-on: ubuntu-latest
19+
20+
steps:
21+
- uses: actions/checkout@v3
22+
23+
- name: Check code format with csharpier
24+
run: |
25+
dotnet tool restore
26+
dotnet dotnet-csharpier --check .

.gitignore

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
2+
# Created by https://www.toptal.com/developers/gitignore/api/dotnetcore
3+
# Edit at https://www.toptal.com/developers/gitignore?templates=dotnetcore
4+
5+
### DotnetCore ###
6+
# .NET Core build folders
7+
bin/
8+
obj/
9+
10+
# Common node modules locations
11+
/node_modules
12+
/wwwroot/node_modules
13+
14+
# End of https://www.toptal.com/developers/gitignore/api/dotnetcore
15+
16+
.vs
17+
.idea

HttpProxy.csproj

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
<Project Sdk="Microsoft.NET.Sdk">
2+
3+
<PropertyGroup>
4+
<TargetFramework>netstandard2.1</TargetFramework>
5+
<AssemblyName>net.laoplus.HttpProxy</AssemblyName>
6+
<Product>HttpProxy</Product>
7+
<Description>Set global proxy for BestHTTP</Description>
8+
<Version>1.0.0</Version>
9+
<AllowUnsafeBlocks>true</AllowUnsafeBlocks>
10+
<LangVersion>latest</LangVersion>
11+
<DebugType>none</DebugType>
12+
</PropertyGroup>
13+
14+
<ItemGroup>
15+
<PackageReference Include="BepInEx.IL2CPP" Version="6.0.0-*" IncludeAssets="compile" />
16+
<PackageReference Include="BepInEx.PluginInfoProps" Version="1.*" />
17+
<PackageReference Include="LastOrigin.GameLibs" Version="*-*" />
18+
</ItemGroup>
19+
</Project>

HttpProxy.sln

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
2+
Microsoft Visual Studio Solution File, Format Version 12.00
3+
Project("{FAE04EC0-301F-11D3-BF4B-00C04F79EFBC}") = "HttpProxy", "HttpProxy.csproj", "{5D646289-5FB3-4263-9C0F-2889042C383D}"
4+
EndProject
5+
Global
6+
GlobalSection(SolutionConfigurationPlatforms) = preSolution
7+
Debug|Any CPU = Debug|Any CPU
8+
Release|Any CPU = Release|Any CPU
9+
EndGlobalSection
10+
GlobalSection(ProjectConfigurationPlatforms) = postSolution
11+
{5D646289-5FB3-4263-9C0F-2889042C383D}.Debug|Any CPU.ActiveCfg = Debug|Any CPU
12+
{5D646289-5FB3-4263-9C0F-2889042C383D}.Debug|Any CPU.Build.0 = Debug|Any CPU
13+
{5D646289-5FB3-4263-9C0F-2889042C383D}.Release|Any CPU.ActiveCfg = Release|Any CPU
14+
{5D646289-5FB3-4263-9C0F-2889042C383D}.Release|Any CPU.Build.0 = Release|Any CPU
15+
EndGlobalSection
16+
EndGlobal

LICENSE

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
MIT License
2+
3+
Copyright (c) 2021 Eai
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.

NuGet.Config

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
<?xml version="1.0" encoding="utf-8"?>
2+
<configuration>
3+
<packageSources>
4+
<add key="BepInEx" value="https://nuget.bepinex.dev/v3/index.json" />
5+
</packageSources>
6+
</configuration>

0 commit comments

Comments
 (0)