Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
W
windbot
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Locked Files
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Security & Compliance
Security & Compliance
Dependency List
License Compliance
Packages
Packages
List
Container Registry
Analytics
Analytics
CI / CD
Code Review
Insights
Issues
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
nanahira
windbot
Commits
e8280715
Commit
e8280715
authored
Sep 29, 2022
by
mercury233
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' of
https://github.com/IceYGO/windbot
parents
4a8351df
2e4415df
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
56 additions
and
1 deletion
+56
-1
.github/workflows/test-build.yml
.github/workflows/test-build.yml
+52
-0
Program.cs
Program.cs
+3
-0
WindBotInfo.cs
WindBotInfo.cs
+1
-1
No files found.
.github/workflows/test-build.yml
0 → 100644
View file @
e8280715
name
:
Automated Test Build
on
:
push
:
branches
:
[
"
master"
]
pull_request
:
branches
:
[
"
master"
]
jobs
:
build
:
runs-on
:
windows-2019
env
:
Solution_Name
:
WindBot.sln
steps
:
-
name
:
Checkout
uses
:
actions/checkout@v3
with
:
fetch-depth
:
0
-
name
:
Setup MSBuild.exe
uses
:
microsoft/setup-msbuild@v1
-
name
:
Build!
run
:
msbuild $env:Solution_Name /t:Build /p:Configuration=Release
-
name
:
Pack
run
:
|
mkdir dist
xcopy /e /y bin\Release dist\WindBot\
xcopy /y BotWrapper\bin\Release\bot.conf dist\
xcopy /y BotWrapper\bin\Release\bot.exe dist\
cd dist
7z a WindBot.7z *
cd ..
-
name
:
Upload build artifacts
uses
:
actions/upload-artifact@v3
with
:
path
:
dist\WindBot.7z
-
name
:
GitHub Release
if
:
github.event_name == 'push'
uses
:
marvinpinto/action-automatic-releases@latest
with
:
repo_token
:
"
${{
secrets.GITHUB_TOKEN
}}"
automatic_release_tag
:
"
latest"
prerelease
:
true
title
:
"
Development
Build"
files
:
|
dist/WindBot.7z
Program.cs
View file @
e8280715
...
@@ -52,6 +52,9 @@ namespace WindBot
...
@@ -52,6 +52,9 @@ namespace WindBot
if
(!
File
.
Exists
(
absolutePath
))
if
(!
File
.
Exists
(
absolutePath
))
// In case windbot is placed in a folder under ygopro folder
// In case windbot is placed in a folder under ygopro folder
absolutePath
=
Path
.
GetFullPath
(
"../"
+
databasePath
);
absolutePath
=
Path
.
GetFullPath
(
"../"
+
databasePath
);
if
(!
File
.
Exists
(
absolutePath
))
// In case windbot is placed in a folder under ygopro2 folder
absolutePath
=
Path
.
GetFullPath
(
"../cdb/"
+
databasePath
);
if
(!
File
.
Exists
(
absolutePath
))
if
(!
File
.
Exists
(
absolutePath
))
{
{
Logger
.
WriteErrorLine
(
"Can't find cards database file."
);
Logger
.
WriteErrorLine
(
"Can't find cards database file."
);
...
...
WindBotInfo.cs
View file @
e8280715
...
@@ -24,7 +24,7 @@ namespace WindBot
...
@@ -24,7 +24,7 @@ namespace WindBot
Host
=
"127.0.0.1"
;
Host
=
"127.0.0.1"
;
Port
=
7911
;
Port
=
7911
;
HostInfo
=
""
;
HostInfo
=
""
;
Version
=
0x135
3
;
Version
=
0x135
4
;
Hand
=
0
;
Hand
=
0
;
Debug
=
false
;
Debug
=
false
;
Chat
=
true
;
Chat
=
true
;
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment