Minor fixes
This commit is contained in:
parent
b05ddd5e18
commit
132894e924
19
README.md
19
README.md
@ -25,22 +25,33 @@ pacman -S dotnet-runtime dotnet-sdk
|
|||||||
Build project
|
Build project
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dotnet build chksum.csproj
|
just build
|
||||||
```
|
```
|
||||||
|
|
||||||
Publish project
|
Publish project
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
dotnet publish --configuration Release chksum.csproj
|
just publish
|
||||||
```
|
```
|
||||||
|
|
||||||
Go to the publish folder
|
Go to the publish folder
|
||||||
```bash
|
```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
|
Run executable
|
||||||
|
|
||||||
```bash
|
```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
|
2
justfile
2
justfile
@ -20,7 +20,7 @@ build:
|
|||||||
@dotnet build src/{{uppercase_project_name}}/{{uppercase_project_name}}.csproj
|
@dotnet build src/{{uppercase_project_name}}/{{uppercase_project_name}}.csproj
|
||||||
@dotnet build src/{{uppercase_project_name}}.Tests/{{uppercase_project_name}}.Tests.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
|
@dotnet publish --configuration Release src/{{uppercase_project_name}}/{{uppercase_project_name}}.csproj
|
||||||
|
|
||||||
format:
|
format:
|
||||||
|
@ -1,4 +1,3 @@
|
|||||||
using System;
|
|
||||||
using Chksum.Utils;
|
using Chksum.Utils;
|
||||||
|
|
||||||
public class Program {
|
public class Program {
|
||||||
|
@ -1,12 +1,4 @@
|
|||||||
using System;
|
|
||||||
using System.IO;
|
|
||||||
using Microsoft.Data.Sqlite;
|
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;
|
namespace Chksum.Utils;
|
||||||
public class ChksumUtils {
|
public class ChksumUtils {
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user