Skip to content

Commit 9e0d94e

Browse files
committed
[r] solution file name,
[edit] README - Disable debug symbol generation in all projects - Add /out to gitignore for publish output - Darken terminal background color to #0a0a0a
1 parent 576ae8e commit 9e0d94e

8 files changed

Lines changed: 37 additions & 3 deletions

File tree

.github/workflows/build.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
dotnet-version: 10.0.x
2020

2121
- name: Restore solution
22-
run: dotnet restore src/etcd-terminal.slnx
22+
run: dotnet restore src/EtcdTerminal.slnx
2323

2424
- name: Build solution
25-
run: dotnet build src/etcd-terminal.slnx --configuration Release --no-restore
25+
run: dotnet build src/EtcdTerminal.slnx --configuration Release --no-restore

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,7 @@ bld/
2222
[Oo]bj/
2323
[Ll]og/
2424
[Ll]ogs/
25+
/out
2526

2627
# .NET Core
2728
project.lock.json

README.md

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -49,3 +49,33 @@ Example configuration:
4949
]
5050
}
5151
```
52+
53+
## Building
54+
55+
Requires [.NET 10.0 SDK](https://dotnet.microsoft.com/download).
56+
57+
```bash
58+
dotnet build src/EtcdTerminal.slnx
59+
```
60+
61+
## Running the App
62+
63+
### From source
64+
65+
```bash
66+
dotnet run --project src/EtcdTerminal.App/EtcdTerminal.App.csproj
67+
```
68+
69+
### Published binary
70+
71+
Create a self-contained deployment:
72+
73+
```bash
74+
dotnet publish src/EtcdTerminal.App/EtcdTerminal.App.csproj -c Release --self-contained false -o out
75+
```
76+
77+
Run the published binary:
78+
79+
```bash
80+
./out/etcd-terminal
81+
```

src/EtcdTerminal.App/EtcdTerminal.App.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@
99
<AssemblyName>etcd-terminal</AssemblyName>
1010
<RootNamespace>EtcdTerminal.App</RootNamespace>
1111
<OutputType>Exe</OutputType>
12+
<DebugType>none</DebugType>
1213
</PropertyGroup>
1314
<ItemGroup>
1415
<ProjectReference Include="..\EtcdTerminal\EtcdTerminal.csproj" />

src/EtcdTerminal.App/Program.cs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
using Simplify.DI;
55
using Spectre.Console;
66

7-
const string SetBgCommand = "\x1b]11;#252629\x07";
7+
const string SetBgCommand = "\x1b]11;#0a0a0a\x07";
88
const string ResetBgCommand = "\x1b]111\x07";
99
const string ShuttingDown = "[yellow]Shutting down...[/]";
1010
const string PressAnyKeyRestart = "\n[grey]Press any key to restart...[/]";

src/EtcdTerminal.Infrastructure/EtcdTerminal.Infrastructure.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,7 @@
33
<TargetFramework>net10.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
6+
<DebugType>none</DebugType>
67
</PropertyGroup>
78
<ItemGroup>
89
<ProjectReference Include="..\EtcdTerminal\EtcdTerminal.csproj" />

src/EtcdTerminal/EtcdTerminal.csproj

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,6 @@
33
<TargetFramework>net10.0</TargetFramework>
44
<ImplicitUsings>enable</ImplicitUsings>
55
<Nullable>enable</Nullable>
6+
<DebugType>none</DebugType>
67
</PropertyGroup>
78
</Project>

0 commit comments

Comments
 (0)