Skip to content

Latest commit

 

History

History
94 lines (64 loc) · 2.83 KB

README.md

File metadata and controls

94 lines (64 loc) · 2.83 KB

Fun Content Manager

简体中文

Manage fun content.

Install

When the pull request for new version is published, you can install it via winget:

winget install --id DuckStudio.FCM -s winget -e
Linux

Linux

I use WSL2 Ubuntu + fish shell + bash.
You can use ANY editor you like, not just limited to nano.
Before continuing, please install the .NET 10 SDK.

Clone repository

git clone https://github.com/DuckDuckStudio/fcm.git # Add the "-b <version>" parameter to specify the version
cd src/fcm/

Compiles FCM

[!TIP] You DON'T necessarily have to strictly follow the examples given here; you can refer to the dotnet publish command documentation to combine new command.

The example here uses the Release build configuration, specifying the target operating system as Linux, single file, and self-contained runtime.

dotnet publish fcm --configuration Release --os linux -p:PublishSingleFile=true --self-contained

Add to PATH

Please replace the path in the code with the path to your actual publish folder.

For fish:

nano ~/.config/fish/config.fish
# Add the following code
# set -gx PATH "/path/to/repo/fcm/src/fcm/bin/Release/net10.0/linux-x64/publish/" $PATH

For bash:

nano ~/.bashrc
# Add the following code
# export PATH="/path/to/repo/fcm/src/fcm/bin/Release/net10.0/linux-x64/publish/:$PATH"

Then reload the configuration with the source command.

Usage

You can start by importing the fun.txt file from the repository.

# Assuming you have already cloned and cd into the repository directory
fcm import fun.txt

Then get a random one:

# No parameters is equivalent to fcm get
fcm

For more help information, please run fcm --help.

License

This program is licensed under the Apache License 2.0.

Dependencies

This program would not be possible without the following projects: Thank you to the open source community!

Package License
Spectre.Console MIT License
DuckStudio.CatFood Apache License 2.0

For the license files related to these dependencies, please see NOTICE.md.