diff --git a/README.md b/README.md index 1d40e9a..7cdb8a5 100644 --- a/README.md +++ b/README.md @@ -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 \ No newline at end of file diff --git a/justfile b/justfile index 8ad837f..6b0b79a 100644 --- a/justfile +++ b/justfile @@ -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: diff --git a/src/Chksum/Program.cs b/src/Chksum/Program.cs index 15e4b64..67459a6 100644 --- a/src/Chksum/Program.cs +++ b/src/Chksum/Program.cs @@ -1,4 +1,3 @@ -using System; using Chksum.Utils; public class Program { diff --git a/src/Chksum/chksum.cs b/src/Chksum/chksum.cs index d951feb..9cf007e 100644 --- a/src/Chksum/chksum.cs +++ b/src/Chksum/chksum.cs @@ -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 {