Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

支持不打包单独 JAR 的 JVM 插件加载方式 #1809

Closed
Him188 opened this issue Apr 19, 2021 · 4 comments · Fixed by #1842
Closed

支持不打包单独 JAR 的 JVM 插件加载方式 #1809

Him188 opened this issue Apr 19, 2021 · 4 comments · Fixed by #1842
Labels
N 优先级: 一般 s:console 子系统: mirai-console t:feature 类型: 新特性
Milestone

Comments

@Him188
Copy link
Member

Him188 commented Apr 19, 2021

遇到依赖库的签名丢失等问题导致无法使用某些依赖

可能可以支持 zip 压缩的文件

为了支持多 PluginLoader, 可以考虑 .mirai.jvm.zip, .jar.mirai.zip, .mirai.zip?

@Him188
Copy link
Member Author

Him188 commented Apr 19, 2021

这可能也设计运行时解压等问题, 或许在第一次加载时解压到某个内部目录

@Karlatemp
Copy link
Member

Or .jar!/META-INF/libs ?

@Him188
Copy link
Member Author

Him188 commented Jun 7, 2021

Or .jar!/META-INF/libs ?

压缩在 jar 里会不会影响运行时性能?

@Karlatemp
Copy link
Member

Or .jar!/META-INF/libs ?

压缩在 jar 里会不会影响运行时性能?

如果依赖的库没有达到 IDEA 那种级别的话基本影响不大,gradle 的 application 也是压在 jar 内,一般情况加载一个类只会读取一次资源

@Him188 Him188 transferred this issue from mamoe/mirai-console Jan 4, 2022
@Him188 Him188 added N 优先级: 一般 s:console 子系统: mirai-console t:feature 类型: 新特性 labels Jan 4, 2022
@Him188 Him188 added this to the Backlog milestone Jan 4, 2022
@Him188 Him188 modified the milestones: Backlog, 2.11.0-RC Feb 23, 2022
@Him188 Him188 modified the milestones: 2.11.0-RC, 2.11.0-M1 Mar 8, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
N 优先级: 一般 s:console 子系统: mirai-console t:feature 类型: 新特性
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants