Skip to content

Commit 0baae05

Browse files
committed
Initial commit
1 parent 731e154 commit 0baae05

File tree

271 files changed

+24855
-1
lines changed

Some content is hidden

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

271 files changed

+24855
-1
lines changed

.editorconfig

Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
root = true
2+
3+
# All Files
4+
[*]
5+
charset = utf-8
6+
indent_style = space
7+
indent_size = 4
8+
insert_final_newline = true
9+
trim_trailing_whitespace = true
10+
11+
# Solution Files
12+
[*.sln]
13+
indent_style = space
14+
indent_size = 4
15+
insert_final_newline = true
16+
trim_trailing_whitespace = true
17+
18+
# XML Project Files
19+
[*.csproj]
20+
indent_style = space
21+
indent_size = 2
22+
23+
# Code Files
24+
[*.cs]
25+
insert_final_newline = true
26+
trim_trailing_whitespace = true
27+
indent_style = space
28+
indent_size = 4
29+
tab_width = 4
30+
end_of_line = crlf
31+
csharp_prefer_braces = when_multiline:warning
32+
dotnet_diagnostic.IDE0047.severity = none
33+
dotnet_diagnostic.IDE0048.severity = none
34+
dotnet_style_parentheses_in_arithmetic_binary_operators = always_for_clarity:suggest
35+
dotnet_style_parentheses_in_relational_binary_operators = always_for_clarity:suggest
36+
dotnet_style_parentheses_in_other_binary_operators = always_for_clarity:suggest
37+
dotnet_style_parentheses_in_other_operators = always_for_clarity:suggest
38+
39+
[*.{cs,vb}]
40+
#### Naming styles ####
41+
42+
# Naming styles
43+
44+
dotnet_naming_style.begins_with_i.required_prefix = I
45+
dotnet_naming_style.begins_with_i.capitalization = pascal_case

.gitattributes

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
# Auto detect text files and perform LF normalization
2+
* text=auto

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
# These are supported funding model platforms
2+
3+
github: [kwsch]

.github/ISSUE_TEMPLATE/bug_report.md

Lines changed: 32 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,32 @@
1+
---
2+
name: Bug report
3+
about: Create a report to help us improve
4+
title: ''
5+
labels: bug
6+
assignees: ''
7+
8+
---
9+
10+
**Describe the bug**
11+
A clear and concise description of what the bug is.
12+
13+
**To Reproduce**
14+
Steps to reproduce the behavior:
15+
1. Go to '...'
16+
2. Click on '....'
17+
3. Scroll down to '....'
18+
4. See error
19+
20+
**Expected behavior**
21+
A clear and concise description of what you expected to happen.
22+
23+
**Screenshots**
24+
If applicable, add screenshots to help explain your problem.
25+
26+
**Desktop (please complete the following information):**
27+
- OS: [e.g. iOS]
28+
- Browser [e.g. chrome, safari]
29+
- Version [e.g. 22]
30+
31+
**Additional context**
32+
Add any other context about the problem here.
Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
---
2+
name: Feature request
3+
about: Suggest an idea for this project
4+
title: ''
5+
labels: enhancement
6+
assignees: ''
7+
8+
---
9+
10+
**Is your feature request related to a problem? Please describe.**
11+
A clear and concise description of what the problem is. Ex. I'm always frustrated when [...]
12+
13+
**Describe the solution you'd like**
14+
A clear and concise description of what you want to happen.
15+
16+
**Describe alternatives you've considered**
17+
A clear and concise description of any alternative solutions or features you've considered.
18+
19+
**Additional context**
20+
Add any other context or screenshots about the feature request here.
Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: 'Build Sysbot.NET'
2+
description: 'Build Sysbot.NET, upload artifact and compress'
3+
4+
inputs:
5+
dotnet:
6+
description: '.NET version'
7+
required: true
8+
default: 'net8.0-windows'
9+
10+
platform:
11+
description: 'Platform'
12+
required: true
13+
default: 'win-x64'
14+
15+
project:
16+
description: 'Project'
17+
required: true
18+
default: 'SysBot.Pokemon.WinForms'
19+
20+
artifact:
21+
description: 'Artifact name'
22+
required: true
23+
24+
version:
25+
description: 'Version'
26+
required: true
27+
default: 1.0.0.0
28+
29+
runs:
30+
using: "composite"
31+
steps:
32+
# Build applications
33+
- name: Build application
34+
shell: pwsh
35+
run: dotnet publish -c Release -r ${{ inputs.platform }} --sc false -p:PublishSingleFile=true /p:Version=${{ inputs.version }} .\${{ inputs.project }}\${{ inputs.project }}.csproj
36+
37+
# Upload artifact
38+
- name: Upload build artifacts
39+
uses: actions/upload-artifact@v3
40+
with:
41+
name: ${{ inputs.artifact }}
42+
path: .\${{ inputs.project }}\bin\Release\${{ inputs.dotnet }}\${{ inputs.platform }}\publish
43+
44+
# Compress application
45+
- name: application
46+
if: github.event_name != 'pull_request'
47+
shell: pwsh
48+
run: Compress-Archive .\${{ inputs.project }}\bin\Release\${{ inputs.dotnet }}\${{ inputs.platform }}\publish\* ${{ inputs.artifact }}

.github/dependabot.yml

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# To get started with Dependabot version updates, you'll need to specify which
2+
# package ecosystems to update and where the package manifests are located.
3+
# Please see the documentation for all configuration options:
4+
# https://docs.github.com/github/administering-a-repository/configuration-options-for-dependency-updates
5+
6+
version: 2
7+
updates:
8+
- package-ecosystem: "nuget" # See documentation for possible values
9+
directory: "/" # Location of package manifests
10+
schedule:
11+
interval: "daily"

.github/workflows/dotnet-build.yml

Lines changed: 77 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,77 @@
1+
name: .NET Core Desktop
2+
3+
on:
4+
push:
5+
branches: [ "main", "develop" ]
6+
tags-ignore: [ "**" ]
7+
pull_request:
8+
branches: [ "main", "develop" ]
9+
10+
jobs:
11+
build:
12+
runs-on: windows-latest
13+
14+
permissions:
15+
contents: write
16+
17+
steps:
18+
- name: Checkout
19+
uses: actions/checkout@v3
20+
with:
21+
fetch-depth: 0
22+
23+
- name: Install .NET Core
24+
uses: actions/setup-dotnet@v3
25+
with:
26+
dotnet-version: 8.0.x
27+
28+
- name: Restore packages
29+
run: dotnet restore
30+
31+
# Get current date for release naming
32+
- name: Get current date
33+
id: date
34+
run: echo "DATE=$(date +'%y.%m.%d')" >> $ENV:GITHUB_OUTPUT
35+
36+
# Build applications
37+
- name: Build WinForms - Windows x64
38+
uses: ./.github/actions/sysbot-build
39+
with:
40+
dotnet: 'net8.0-windows'
41+
platform: 'win-x64'
42+
project: 'SysBot.Pokemon.WinForms'
43+
artifact: 'winforms-windows-x64'
44+
version: '${{ steps.date.outputs.DATE }}.${{ github.run_number }}'
45+
46+
- name: Build ConsoleApp - Linux arm64
47+
uses: ./.github/actions/sysbot-build
48+
with:
49+
dotnet: 'net8.0'
50+
platform: 'linux-arm64'
51+
project: 'SysBot.Pokemon.ConsoleApp'
52+
artifact: 'consoleapp-linux-arm64'
53+
version: '${{ steps.date.outputs.DATE }}.${{ github.run_number }}'
54+
55+
# Create pre-release
56+
- name: Pre-Release
57+
uses: softprops/action-gh-release@v1
58+
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/develop' }}
59+
with:
60+
tag_name: ${{ steps.date.outputs.DATE }}.${{ github.run_number }}
61+
prerelease: true
62+
body: Pre-release, compare Git commits.
63+
files: |
64+
winforms-windows-x64.zip
65+
consoleapp-linux-arm64.zip
66+
67+
# Create release
68+
- name: Release
69+
uses: softprops/action-gh-release@v1
70+
if: ${{ github.event_name != 'pull_request' && github.ref == 'refs/heads/main' }}
71+
with:
72+
tag_name: ${{ steps.date.outputs.DATE }}.${{ github.run_number }}
73+
prerelease: false
74+
body: Release, compare Git commits.
75+
files: |
76+
winforms-windows-x64.zip
77+
consoleapp-linux-arm64.zip

0 commit comments

Comments
 (0)