aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorJP Dillingham <jp@dillingham.me>2026-03-22 18:16:50 -0500
committerJP Dillingham <jp@dillingham.me>2026-03-22 18:16:50 -0500
commit13e3698c494a0a9bf768bb7f220c9d5a85640b75 (patch)
treec10906585c26f404c876401ad7596305ebf9f6ce /src
parent49791f5269fb34ffc6c72486690558ab664a642e (diff)
downloadslskd-13e3698c494a0a9bf768bb7f220c9d5a85640b75.tar.gz
new header and banner
Diffstat (limited to 'src')
-rw-r--r--src/slskd/Application.cs52
-rw-r--r--src/slskd/Program.cs61
-rw-r--r--src/slskd/Properties/stylecop.json4
3 files changed, 90 insertions, 27 deletions
diff --git a/src/slskd/Application.cs b/src/slskd/Application.cs
index b1c3d63f..3fdaae86 100644
--- a/src/slskd/Application.cs
+++ b/src/slskd/Application.cs
@@ -1,32 +1,36 @@
-// <copyright file="Application.cs" company="JP Dillingham">
+// <copyright file="Application.cs" company="JP Dillingham and slskd Contributors">
//
// ▄▄▄▄ ▄▄▄▄ ▄▄▄▄
// ▄▄▄▄▄▄█ █▄▄▄▄▄█ █▄▄▄▄▄█ █
// █__ --█ █__ --█ ◄█ - █
// █▄▄▄▄▄█▄▄█▄▄▄▄▄█▄▄█▄▄█▄▄▄▄▄█
-// ──────────────────────────────────────────── ──────── ─ ─── ─ ── ─
-//
-// Copyright (c) JP Dillingham and contributors.
-//
-// This program is free software: you can redistribute it and/or modify
-// it under the terms of the GNU Affero General Public License as published
-// by the Free Software Foundation, version 3.
-//
-// This program is distributed in the hope that it will be useful,
-// but WITHOUT ANY WARRANTY; without even the implied warranty of
-// MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
-// GNU Affero General Public License for more details.
-//
-// You should have received a copy of the GNU Affero General Public License
-// along with this program. If not, see https://www.gnu.org/licenses/.
-//
-// This program is distributed with Additional Terms pursuant to
-// Section 7 of the GNU Affero General Public License. See the
-// LICENSE file in the root directory of this project for the
-// complete terms and conditions.
-//
-// SPDX-FileCopyrightText: JP Dillingham and contributors
-// SPDX-License-Identifier: AGPL-3.0-only
+// ┍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━ ━ ━┉ ┉ ┉
+// │ Copyright (c) JP Dillingham and slskd Contributors.
+// │
+// │ https://slskd.org
+// │
+// │ This program is free software: you can redistribute it and/or modify
+// │ it under the terms of the GNU Affero General Public License as published
+// │ by the Free Software Foundation, either version 3 of the License, or
+// │ (at your option) any later version.
+// │
+// │ This program is distributed in the hope that it will be useful,
+// │ but WITHOUT ANY WARRANTY; without even the implied warranty of
+// │ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
+// │ GNU Affero General Public License for more details.
+// │
+// │ You should have received a copy of the GNU Affero General Public License
+// │ along with this program. If not, see https://www.gnu.org/licenses/.
+// │
+// │ This program is distributed with Additional Terms pursuant to
+// │ Section 7 of the GNU Affero General Public License. See the
+// │ LICENSE file in the root directory of this project for the
+// │ complete terms and conditions.
+// │
+// ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ╌ ╌╌╌╌ ╌
+// │ SPDX-FileCopyrightText: JP Dillingham and contributors
+// │ SPDX-License-Identifier: AGPL-3.0-only
+// ╰───────────────────────────────────────────╶──── ─ ─── ─ ── ──┈ ┈
//
// </copyright>
diff --git a/src/slskd/Program.cs b/src/slskd/Program.cs
index 436ec117..cceee615 100644
--- a/src/slskd/Program.cs
+++ b/src/slskd/Program.cs
@@ -1521,7 +1521,7 @@ namespace slskd
}
}
- private static void PrintLogo(string version)
+ private static void PrintLogoOld(string version)
{
try
{
@@ -1575,6 +1575,65 @@ namespace slskd
}
}
+ private static void PrintLogo(string version)
+ {
+ try
+ {
+ var padding = 56 - version.Length;
+ var paddingLeft = padding / 2;
+ var paddingRight = paddingLeft + (padding % 2);
+
+ var centeredVersion = new string(' ', paddingLeft) + version + new string(' ', paddingRight);
+
+ var logos = new[]
+ {
+ $@"
+ ▄▄▄▄ ▄▄▄▄ ▄▄▄▄
+ ▄▄▄▄▄▄▄ █ █ ▄▄▄▄▄▄▄ █ █▄▄▄ ▄▄▄█ █
+ █__ --█ █ █ █__ --█ █ ◄█ █ - █
+ █▄▄▄▄▄█ █▄▄█ █▄▄▄▄▄█ █▄▄█▄▄█ █▄▄▄▄▄█",
+ @$"
+ ▄▄▄▄ ▄▄▄▄ ▄▄▄▄
+ ▄▄▄▄▄▄█ █▄▄▄▄▄█ █▄▄▄▄▄█ █
+ █__ --█ █__ --█ ◄█ - █
+ █▄▄▄▄▄█▄▄█▄▄▄▄▄█▄▄█▄▄█▄▄▄▄▄█",
+ };
+
+ var logo = logos[new System.Random().Next(0, logos.Length)];
+
+ var banner = @$"
+{logo}
+┍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━ ━ ━┉ ┉ ┉
+│ Copyright (c) JP Dillingham and slskd Contributors
+│
+│ https://slskd.org
+│
+│ GNU AFFERO GENERAL PUBLIC LICENSE
+│ └─▸ SPDX: AGPL-3.0-only
+│
+├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ╌ ╌╌╌╌ ╌
+│ {version}";
+
+ if (IsDevelopment)
+ {
+ banner += "\n│ └─▸ ⚠️ DEVELOPMENT";
+ }
+
+ if (IsCanary)
+ {
+ banner += "\n│ └─▸ 🧪 CANARY";
+ }
+
+ banner += "\n╰───────────────────────────────────────────╶──── ─ ─── ─ ── ──┈ ┈";
+
+ Console.WriteLine(banner);
+ }
+ catch
+ {
+ // noop. console may not be available in all cases.
+ }
+ }
+
private static void VerifyDirectory(string directory, bool createIfMissing = true, bool verifyWriteable = true)
{
if (!System.IO.Directory.Exists(directory))
diff --git a/src/slskd/Properties/stylecop.json b/src/slskd/Properties/stylecop.json
index a10d42b7..dc63e593 100644
--- a/src/slskd/Properties/stylecop.json
+++ b/src/slskd/Properties/stylecop.json
@@ -16,8 +16,8 @@
"documentationRules": {
"documentPrivateElements": false,
"documentPrivateFields": false,
- "companyName": "JP Dillingham",
- "copyrightText": " ▄▄▄▄ ▄▄▄▄ ▄▄▄▄\n ▄▄▄▄▄▄█ █▄▄▄▄▄█ █▄▄▄▄▄█ █\n █__ --█ █__ --█ ◄█ - █\n █▄▄▄▄▄█▄▄█▄▄▄▄▄█▄▄█▄▄█▄▄▄▄▄█\n\n Copyright (c) {companyName} and contributors.\n\n This program is free software: you can redistribute it and/or modify\n it under the terms of the GNU Affero General Public License as published\n by the Free Software Foundation, version 3.\n\n This program is distributed in the hope that it will be useful,\n but WITHOUT ANY WARRANTY; without even the implied warranty of\n MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n GNU Affero General Public License for more details.\n\n You should have received a copy of the GNU Affero General Public License\n along with this program. If not, see https://www.gnu.org/licenses/.\n\n This program is distributed with Additional Terms pursuant to\n Section 7 of the GNU Affero General Public License. See the\n LICENSE file in the root directory of this project for the\n complete terms and conditions.\n\n SPDX-FileCopyrightText: JP Dillingham and contributors\n SPDX-License-Identifier: AGPL-3.0-only",
+ "companyName": "JP Dillingham and slskd Contributors",
+ "copyrightText": " ▄▄▄▄ ▄▄▄▄ ▄▄▄▄\n ▄▄▄▄▄▄█ █▄▄▄▄▄█ █▄▄▄▄▄█ █\n █__ --█ █__ --█ ◄█ - █\n █▄▄▄▄▄█▄▄█▄▄▄▄▄█▄▄█▄▄█▄▄▄▄▄█\n ┍━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━━ ━━━━ ━ ━┉ ┉ ┉\n │ Copyright (c) JP Dillingham and slskd Contributors.\n │\n │ https://slskd.org\n │\n │ This program is free software: you can redistribute it and/or modify\n │ it under the terms of the GNU Affero General Public License as published\n │ by the Free Software Foundation, either version 3 of the License, or\n │ (at your option) any later version.\n │\n │ This program is distributed in the hope that it will be useful,\n │ but WITHOUT ANY WARRANTY; without even the implied warranty of\n │ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the\n │ GNU Affero General Public License for more details.\n │\n │ You should have received a copy of the GNU Affero General Public License\n │ along with this program. If not, see https://www.gnu.org/licenses/.\n │\n │ This program is distributed with Additional Terms pursuant to\n │ Section 7 of the GNU Affero General Public License. See the\n │ LICENSE file in the root directory of this project for the\n │ complete terms and conditions.\n │\n ├╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌╌ ╌ ╌╌╌╌ ╌\n │ SPDX-FileCopyrightText: JP Dillingham and contributors\n │ SPDX-License-Identifier: AGPL-3.0-only\n ╰───────────────────────────────────────────╶──── ─ ─── ─ ── ──┈ ┈",
"variables": {
"licenseName": "AGPL-3.0-only",
"licenseFile": "LICENSE"