Minor fixes

This commit is contained in:
ProfessionalUwU 2023-06-25 16:48:43 +02:00
parent b05ddd5e18
commit 132894e924
Signed by: ProfessionalUwU
GPG Key ID: 9F28CB1645C4BFB5
4 changed files with 16 additions and 14 deletions

View File

@ -25,22 +25,33 @@ pacman -S dotnet-runtime dotnet-sdk
Build project
```bash
dotnet build chksum.csproj
just build
```
Publish project
```bash
dotnet publish --configuration Release chksum.csproj
just publish
```
Go to the publish folder
```bash
cd bin/Release/net7.0/linux-x64/publish
cd src/Chksum/bin/Release/net7.0/linux-x64/publish
```
Copy the libe_sqlite3.so to your /usr/local/lib or /usr/lib
```bash
cp libe_sqlite3.so /usr/local/lib
```
Run executable
```bash
./chksum
LD_LIBRARY_PATH=/usr/local/lib ./Chksum
```
Info
LD_LIBRARY_PATH=/usr/local/lib is needed to tell the executable where the library is located
Alternately you can put the libe_sqlite3.so into the same folder as the executable

View File

@ -20,7 +20,7 @@ build:
@dotnet build src/{{uppercase_project_name}}/{{uppercase_project_name}}.csproj
@dotnet build src/{{uppercase_project_name}}.Tests/{{uppercase_project_name}}.Tests.csproj
publish: format
publish:
@dotnet publish --configuration Release src/{{uppercase_project_name}}/{{uppercase_project_name}}.csproj
format:

View File

@ -1,4 +1,3 @@
using System;
using Chksum.Utils;
public class Program {

View File

@ -1,12 +1,4 @@
using System;
using System.IO;
using Microsoft.Data.Sqlite;
// Go into folder
// Check if any file is in there
// If there is a file. Calculate md5sum > filename.md5
// If there is no file. Repeat
namespace Chksum.Utils;
public class ChksumUtils {