Skip to content
This repository has been archived by the owner on Nov 19, 2024. It is now read-only.

Build youself

drizzle-mizzle edited this page Jul 30, 2023 · 7 revisions

Prerequirements

  1. Install .NET 7 SDK and .NET 7 Runtime
  2. Clone the repo
  3. Go to the project directory
    image

Run

  • Execute dotnet run

Compile

  1. Execute dotnet publish -c Release -r win-x64 --self-contained true
    If you use Linux or macOS, change win-x64 to linux-x64 or osx-x64 accordingly;
    If you use 32bit system, you can change -x64 to -x86, but I can't guarantee it will work, you're on your own here

    image
  2. Go to the CharacterAI-Discord-Bot\bin\Release\net7.0\[win|linux|osx]-x64
  3. Your built application will lay in the publish folder ready to work.

  • You may want to add -p:PublishSingleFile=true parameter to the publish command, so you could get a pretty little binary file instead of the .dll mess:
dotnet publish -c Release -r win-x64 --self-contained true -p:PublishSingleFile=true
  • But you will have to manually copy the Config.json file with img and storage folders from [win|linux|osx]-x64 folder to the publish folder.

    image image

Clone this wiki locally