This repository has been archived by the owner on Nov 19, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 60
Build youself
drizzle-mizzle edited this page Jul 30, 2023
·
7 revisions
- Install .NET 7 SDK and .NET 7 Runtime
- Clone the repo
- Go to the project directory
- Execute
dotnet run
- Execute
dotnet publish -c Release -r win-x64 --self-contained true
If you use Linux or macOS, changewin-x64
tolinux-x64
orosx-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
- Go to the
CharacterAI-Discord-Bot\bin\Release\net7.0\[win|linux|osx]-x64
- 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 withimg
andstorage
folders from[win|linux|osx]-x64
folder to thepublish
folder.