Skip to content

Commit

Permalink
Start of some publishing functionality.
Browse files Browse the repository at this point in the history
  • Loading branch information
TLeonardUK committed Aug 21, 2021
1 parent 914912c commit b0619fc
Show file tree
Hide file tree
Showing 9 changed files with 139 additions and 1 deletion.
71 changes: 71 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,71 @@
name: Release

on:
push:
branches:
- "master"
tags:
- "v*"

env:
# Path to the solution file relative to the root of the project.
SOLUTION_FILE_PATH: ./Source/DS3OpenServer.sln

# Configuration type to build.
# You can convert this to a build matrix if you need coverage of multiple configuration types.
# https://docs.github.com/actions/learn-github-actions/managing-complex-workflows#using-a-build-matrix
BUILD_CONFIGURATION: Release

jobs:
build:
runs-on: windows-latest

steps:
- name: Checkout respository
uses: actions/checkout@v2
with:
submodules: recursive

- name: Install .NET Core
uses: actions/setup-dotnet@v1
with:
dotnet-version: 5.0.x

- name: Add MSBuild to PATH
uses: microsoft/[email protected]

- name: Restore NuGet packages
working-directory: ${{env.GITHUB_WORKSPACE}}
run: nuget restore ${{env.SOLUTION_FILE_PATH}}

- name: Install vcpkg
shell: cmd
working-directory: ${{github.workspace}}/Tools/vcpkg
run: bootstrap-vcpkg.bat

- name: Integrate vcpkg with Visual Studio
working-directory: ${{github.workspace}}/Tools/vcpkg
run: vcpkg integrate install

- name: Build
working-directory: ${{env.GITHUB_WORKSPACE}}
# Add additional options to the MSBuild command line here (like platform or verbosity level).
# See https://docs.microsoft.com/visualstudio/msbuild/msbuild-command-line-reference
run: msbuild /m /p:Configuration=${{env.BUILD_CONFIGURATION}} ${{env.SOLUTION_FILE_PATH}}

- name: Package Release
shell: cmd
working-directory: ${{github.workspace}}
run: ${{github.workspace}}/Tools/Package.bat

- name: Zip Release
uses: papeloto/action-zip@v1
with:
files: ${{github.workspace}}/Publish/
dest: ${{github.workspace}}/Publish.zip

- name: Upload Release
uses: actions/upload-artifact@v2
with:
name: release-build
path: ${{github.workspace}}/Publish.zip
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -41,4 +41,5 @@ Temp/
RawCaptures/
GameCaptures/
Dumps/
enc_temp_folder/
enc_temp_folder/
Publish/
33 changes: 33 additions & 0 deletions Resources/ReadMe.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,33 @@
-------------------------------------------------------------------------
Dark Souls 3 - Open Server
https://github.com/TLeonardUK/ds3os
-------------------------------------------------------------------------

Contained in this folder are 2 executables.

-- Server.exe --
When run this will launch a dark souls 3 server. When launched it will save
a file to Saved\server.ds3oconfig, this file contains configuration settings
and cryptographic keys that allow other users to join the server. You should
open this file and modify the Name, Description and Hostname settings your
server. If you do not have a hostname that points to your computer use your
external IP address (the one you find from visiting sites like
https://www.whatismyip.com/).

The server accepts connections on ports 50050, 50000 and 50010 by default. If
the computer you are running the server on is behind a router you will likely
need to modify your wrote to port-forward TCP and UDP on all of those ports to
allow external people to connect. Guides to doing this are numerous and available
online.

-- Loader.exe --
This tool allows you to launch Dark Souls III in a way that allows you to join
an unofficial server. All you need to do is open the Loader, set the path
to your DarkSoulsIII.exe (normally somewhere in your steam directory) and then
import a .ds3oconfig file that describes the server to connect to, and should have
been given to you by whoever is running the server.

Be warned, while it does not currently seem to occur, no guarantee is made that
your account will not be soft-banned on offical servers if you use this tool.
It would be wise to use a family-share account or a similar disposable account
when using this.
Binary file added Resources/icon.ico
Binary file not shown.
Binary file added Resources/icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
3 changes: 3 additions & 0 deletions Source/Loader/Loader.csproj.user
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
<?xml version="1.0" encoding="utf-8"?>
<Project ToolsVersion="Current" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<_LastSelectedProfileId>Z:\ds3os\Source\Loader\Properties\PublishProfiles\FolderProfile.pubxml</_LastSelectedProfileId>
</PropertyGroup>
<ItemGroup>
<Compile Update="Forms\MainForm.cs">
<SubType>Form</SubType>
Expand Down
14 changes: 14 additions & 0 deletions Source/Loader/Properties/PublishProfiles/FolderProfile.pubxml
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<Configuration>Debug</Configuration>
<Platform>x64</Platform>
<PublishDir>Z:\ds3os\Bin\Loader\Publish</PublishDir>
<PublishProtocol>FileSystem</PublishProtocol>
<TargetFramework>net5.0-windows</TargetFramework>
<SelfContained>false</SelfContained>
</PropertyGroup>
</Project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
<?xml version="1.0" encoding="utf-8"?>
<!--
https://go.microsoft.com/fwlink/?LinkID=208121.
-->
<Project ToolsVersion="4.0" xmlns="http://schemas.microsoft.com/developer/msbuild/2003">
<PropertyGroup>
<History>False|2021-08-21T18:49:02.8370246Z;False|2021-08-21T19:48:29.5760218+01:00;False|2021-08-21T19:47:45.8286531+01:00;</History>
</PropertyGroup>
</Project>
7 changes: 7 additions & 0 deletions Tools/Package.bat
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
:: Assumed to be run from root directory.

mkdir Publish
mkdir Publish\Loader
mkdir Publish\Server
copy Resources\ReadMe.txt Publish\ReadMe.txt
xcopy /s Bin\Server Publish\Server

0 comments on commit b0619fc

Please sign in to comment.