mirror of
https://github.com/Phantop/LADXHD.git
synced 2024-11-21 05:52:47 +00:00
add workflow build
This commit is contained in:
parent
765b073ac4
commit
b317c6281f
21
.github/workflows/dotnet.yml
vendored
Normal file
21
.github/workflows/dotnet.yml
vendored
Normal file
|
@ -0,0 +1,21 @@
|
|||
name: build
|
||||
on:
|
||||
workflow_dispatch:
|
||||
push:
|
||||
branches: [main]
|
||||
|
||||
jobs:
|
||||
deploy:
|
||||
runs-on: windows-latest
|
||||
steps:
|
||||
- uses: actions/checkout@v4
|
||||
- uses: actions/setup-dotnet@v3
|
||||
with:
|
||||
dotnet-version: '6.0.x' # SDK Version to use.
|
||||
- name: Create the package
|
||||
run: dotnet publish -c Release
|
||||
- name: Upload build artifact
|
||||
uses: actions/upload-artifact@v4
|
||||
with:
|
||||
name: LADXHD
|
||||
path: bin/Release/net6.0-windows/win-x64/publish/
|
|
@ -11,7 +11,7 @@ with.
|
|||
<!--
|
||||
Modify this string to change the font that will be imported.
|
||||
-->
|
||||
<FontName>DejaVu Sans</FontName>
|
||||
<FontName>Segoe UI</FontName>
|
||||
|
||||
<!--
|
||||
Size is a float value, measured in points. Modify this value to change
|
||||
|
|
|
@ -11,7 +11,7 @@ with.
|
|||
<!--
|
||||
Modify this string to change the font that will be imported.
|
||||
-->
|
||||
<FontName>Ubuntu Mono</FontName>
|
||||
<FontName>Courier New</FontName>
|
||||
|
||||
<!--
|
||||
Size is a float value, measured in points. Modify this value to change
|
||||
|
|
|
@ -11,7 +11,7 @@ with.
|
|||
<!--
|
||||
Modify this string to change the font that will be imported.
|
||||
-->
|
||||
<FontName>Ubuntu Mono</FontName>
|
||||
<FontName>Courier New</FontName>
|
||||
|
||||
<!--
|
||||
Size is a float value, measured in points. Modify this value to change
|
||||
|
|
|
@ -44,6 +44,8 @@
|
|||
<StartupObject>ProjectZ.Program</StartupObject>
|
||||
<AssemblyName>LADXHD</AssemblyName>
|
||||
<PublishSingleFile>true</PublishSingleFile>
|
||||
<EnableCompressionInSingleFile>true</EnableCompressionInSingleFile>
|
||||
<SelfContained>true</SelfContained>
|
||||
<ApplicationIcon>Resources\Icon.ico</ApplicationIcon>
|
||||
<ApplicationManifest>app.manifest</ApplicationManifest>
|
||||
</PropertyGroup>
|
||||
|
|
|
@ -11,12 +11,11 @@ THIS IS NOT MY PROJECT. You can find the original location of it [here](https://
|
|||
This repository merely exists to preserve it as an easily buildable copy, as the original source used a strange MonoGame layout.
|
||||
I've provided a build artifact with the relevant `dotnet` version bundled, for easy usage of the project under `wine`, as that's how I would use it.
|
||||
|
||||
You can build it easily by cloning the repository and running the GitHub action provided.
|
||||
The following commands process can be used to build that on Linux, assuming .NET 6.0 with the right target available:
|
||||
|
||||
```bash
|
||||
winetricks d3dcompiler_47 dotnet6
|
||||
dotnet tool restore
|
||||
MGFXC_WINE_PATH=$WINEPREFIX dotnet publish -c Release -r win-x64 /p:PublishReadyToRun=false /p:TieredCompilation=false --self-contained -o <outdir>
|
||||
MGFXC_WINE_PATH=$WINEPREFIX dotnet publish -c Release -o <outdir>
|
||||
```
|
||||
|
||||
Certain files have been modified to use fonts that are available on my system (DejaVu Sans, Ubuntu Mono) over Microsoft fonts. You may have to adjust them if you get a build error.
|
||||
|
|
|
@ -1,35 +0,0 @@
|
|||
b EnableShadows True
|
||||
b Autosave True
|
||||
b SmoothCamera True
|
||||
b BorderlessWindowed True
|
||||
b IsFullscreen False
|
||||
b LockFPS True
|
||||
i Version 1
|
||||
i GameScale 11
|
||||
i UIScale 0
|
||||
i MusicVolume 35
|
||||
i EffectVolume 35
|
||||
i CurrentLanguage 0
|
||||
i controlLeftkey0 37
|
||||
i controlLeftbutton0 4
|
||||
i controlRightkey0 39
|
||||
i controlRightbutton0 8
|
||||
i controlUpkey0 38
|
||||
i controlUpbutton0 1
|
||||
i controlDownkey0 40
|
||||
i controlDownbutton0 2
|
||||
i controlAkey0 83
|
||||
i controlAbutton0 4096
|
||||
i controlBkey0 68
|
||||
i controlBbutton0 8192
|
||||
i controlXkey0 65
|
||||
i controlXbutton0 16384
|
||||
i controlYkey0 87
|
||||
i controlYbutton0 32768
|
||||
i controlSelectkey0 32
|
||||
i controlSelectbutton0 32
|
||||
i controlStartkey0 13
|
||||
i controlStartbutton0 16
|
||||
f ControllerDeadzone 0.15
|
||||
s ContentPath ../../Data/
|
||||
s SavePath ../../SaveFiles/
|
Loading…
Reference in a new issue