Feat: Add default JuiceAgent config

Configure the built-in jar loader to load Loader.jar and call Loader.entry.
This commit is contained in:
xiaozhou233 committed 2026-10-27 20:12:42 +08:00
1 parent faa84b14d0
commit 34fc410a0c
2 files changed
+22

No files matched your search

+3
View File
@@ -0,0 +1,3 @@
# Placeholder so the resources directory is tracked by git.
# Files put here are flattened into the injection zip (e.g. config.toml ends up
# next to the jars in ~/.orangex).
+19
View File
@@ -0,0 +1,19 @@
# See config.md for more information https://github.com/xiaozhou233/JuiceAgent/blob/main/docs/config.md
[JuiceAgent]
Version = 2
JuiceAgentNativeLibraryPath = ""
[JarLoader]
# Mode: BuiltIn, CustomJar
# BuiltIn: Use the built-in jar loader (recommended, support JuiceAgent-API ( https://github.com/xiaozhou233/JuiceAgent#juiceagent-api ))
# CustomJar: Load the Jar directly, without using JuiceAgent-API
# For more information, please refer to the documentation: https://github.com/xiaozhou233/JuiceAgent/blob/main/docs/advanced.md#load-custom-api--directly-load-jar
Enabled = true
Mode = "BuiltIn"
# InjectionDir only works when Mode is BuiltIn
InjectionDir = "./injection"
JarPath = "./Loader.jar"
EntryClass = "cn.xiaozhou233.orangex.loader.Loader"
EntryMethod = "entry"