update-csharp/README.md
ProfessionalUwU 21b61759d6 Removed update functionality && Rewrote/simplified file handling && Expanded README
With this commit I will change the scope of this project. The new goal for this project is to rewrite the file handling of the original update script in C#. Because of this a lot changed with this commit.
I removed all update functionality from the code. I completely rewrote the file handling with help of the FileInfo class. I also added a couple of things to the Roadmap. While doing that I also added sources that I frequently use.
2023-01-11 04:47:58 +01:00

68 lines
1.3 KiB
Markdown

# update-c#
A rewrite of the legendary update script in C#
This time with file handling entirely in C# while keeping all scripting parts in bash.
## Authors
- [@ProfessionalUwU](http://192.168.0.69:3000/ProfessionalUwU)
## Run Locally
Clone the project
```bash
git clone http://192.168.0.69:3000/ProfessionalUwU/update-csharp.git
```
Go to the project directory
```bash
cd update-csharp
```
Install dependencies
```bash
pacman -S dotnet-runtime dotnet-sdk
```
Build project
```bash
dotnet build update.csproj
```
Publish project
```bash
dotnet publish --configuration Release --arch x64 --use-current-runtime --self-contained
```
Go to the publish folder
```bash
cd update-csharp/bin/Release/net7.0/linux-x64/publish
```
Run executable
```bash
./update
```
## Roadmap/ToDo
- Figure out how to do options/arguments
- Backup all necessary files
- Shrink size of the executable
- Potentially speed up file handling
- Color output according to state (success = green, failure = red, info = yellow)
- Backup pacman database
- Compress all files to single archive
## Sites I used to help make this project
- [dotnetperls](https://dotnetperls.com)
- [stackoverflow](https://stackoverflow.com/questions/tagged/c%23)
- [c-sharpcorner](https://www.c-sharpcorner.com)
## Contributing
Contributions are always welcome!