Compare commits

...

8 Commits

Author SHA1 Message Date
d4a4d4dcaa Added publishing script 2026-02-20 22:01:59 +01:00
019922ea90 ofdl exe 2026-02-20 22:01:49 +01:00
e5e0e9bca9 initial 2026-02-20 22:00:53 +01:00
9c8f115f07 csproj 2026-02-20 21:59:41 +01:00
69080dd91b initial 2026-02-20 21:58:55 +01:00
cc2203c74d OFDL: Updated .gitignore 2026-02-20 21:58:25 +01:00
261ba0887c non-nude 2026-02-20 21:57:55 +01:00
f8d0dd2bbf OFDL: Update project file to not output Exe 2026-02-20 21:54:17 +01:00
8 changed files with 76 additions and 6 deletions

3
.gitignore vendored
View File

@ -374,3 +374,6 @@ venv/
# Generated docs
/site
# Cajetan
.dev/

View File

@ -9,6 +9,12 @@
<ApplicationIcon>Icon\download.ico</ApplicationIcon>
</PropertyGroup>
<PropertyGroup>
<SelfContained>false</SelfContained>
<PublishSingleFile>true</PublishSingleFile>
<DebugType>embedded</DebugType>
</PropertyGroup>
<ItemGroup>
<Content Include="Icon\download.ico" />
</ItemGroup>
@ -25,6 +31,19 @@
<ItemGroup>
<PackageReference Include="Serilog.Sinks.Seq" Version="7.0.1" />
<PackageReference Include="Akka" Version="1.5.60"/>
<PackageReference Include="BouncyCastle.NetCore" Version="2.2.1"/>
<PackageReference Include="HtmlAgilityPack" Version="1.12.4"/>
<PackageReference Include="Microsoft.Data.Sqlite" Version="10.0.3"/>
<PackageReference Include="Microsoft.Extensions.DependencyInjection" Version="10.0.3"/>
<PackageReference Include="Newtonsoft.Json" Version="13.0.4"/>
<PackageReference Include="protobuf-net" Version="3.2.56"/>
<PackageReference Include="PuppeteerSharp" Version="20.2.6"/>
<PackageReference Include="Serilog" Version="4.3.1"/>
<PackageReference Include="Serilog.Sinks.Console" Version="6.1.1"/>
<PackageReference Include="Serilog.Sinks.File" Version="7.0.0"/>
<PackageReference Include="System.Reactive" Version="6.1.0"/>
<PackageReference Include="xFFmpeg.NET" Version="7.2.0"/>
</ItemGroup>
</Project>

View File

@ -1,8 +1,10 @@
{
"profiles": {
"Cajetan.OF-DL": {
"commandName": "Project",
"commandLineArgs": "--non-interactive --specific-lists Capture"
"commandName": "Project",
"workingDirectory": "..\\.dev\\",
//"commandLineArgs": "--non-interactive --specific-lists Capture"
"commandLineArgs": "--non-interactive --specific-users amyboz"
}
}
}

View File

@ -21,7 +21,7 @@ public class CajetanDbService(IConfigService configService)
await cmdInfo.ExecuteNonQueryAsync();
}
using (SqliteCommand cmdNonNude = new("CREATE TABLE IF NOT EXISTS user_non_nude (user_id INTEGER NOT NULL, name VARCHAR NOT NULL, PRIMARY KEY(user_id)", connection))
using (SqliteCommand cmdNonNude = new("CREATE TABLE IF NOT EXISTS user_non_nude (user_id INTEGER NOT NULL, name VARCHAR NOT NULL, PRIMARY KEY(user_id));", connection))
{
await cmdNonNude.ExecuteNonQueryAsync();
}

View File

@ -104,7 +104,7 @@ internal class Worker(IServiceProvider serviceProvider)
}
Log.Error("Auth file was not found!");
AnsiConsole.MarkupLine("\n[red]auth.json is missing.");
AnsiConsole.MarkupLine("\n[red]auth.json is missing.[/]");
return false;
}

View File

@ -5,6 +5,7 @@
<RootNamespace>OF_DL</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<DebugType>embedded</DebugType>
</PropertyGroup>
<ItemGroup>

View File

@ -1,12 +1,12 @@
<Project Sdk="Microsoft.NET.Sdk">
<Project Sdk="Microsoft.NET.Sdk">
<PropertyGroup>
<OutputType>Exe</OutputType>
<TargetFramework>net10.0</TargetFramework>
<RootNamespace>OF_DL</RootNamespace>
<ImplicitUsings>enable</ImplicitUsings>
<Nullable>enable</Nullable>
<ApplicationIcon>Icon\download.ico</ApplicationIcon>
<DebugType>embedded</DebugType>
</PropertyGroup>
<ItemGroup>
@ -42,12 +42,15 @@
<ItemGroup>
<None Update="auth.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
<None Update="config.conf">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
<None Update="rules.json">
<CopyToOutputDirectory>Always</CopyToOutputDirectory>
<ExcludeFromSingleFile>true</ExcludeFromSingleFile>
</None>
</ItemGroup>

42
Publish_OF-DL.bat Normal file
View File

@ -0,0 +1,42 @@
@ECHO OFF
ECHO.
ECHO ==============================
ECHO == Cleaning Output ===========
ECHO ==============================
dotnet clean ".\Cajetan.OF-DL\Cajetan.OF-DL.csproj" -v minimal
DEL /Q /F ".\Publish"
ECHO.
ECHO ==============================
ECHO == Publishing Cajetan OF-DL ==
ECHO ==============================
dotnet publish ".\Cajetan.OF-DL\Cajetan.OF-DL.csproj" -o ".\Publish" -c Debug
ECHO.
ECHO ==============================
ECHO == Renaming to 'OF DL.exe' ===
ECHO ==============================
REM REN ".\Publish\Cajetan.OF-DL.exe" "OF DL.exe"
REM REN ".\Publish\Cajetan.OF-DL.pdb" "OF DL.pdb"
ECHO.
GOTO Exit
ECHO ==============================
ECHO == Copy to network drive? ====
ECHO ==============================
CHOICE /C yn /m "Copy published files to network drive? "
IF %ERRORLEVEL%==1 (GOTO Copy) ELSE (GOTO Exit)
:Copy
xcopy .\Publish\* p:\_Utils\OF_DL /I /Y /Q /EXCLUDE:.\excludes.txt
:Exit
ECHO.
ECHO.
PAUSE