-
Notifications
You must be signed in to change notification settings - Fork 1
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
Windows Support? Problems and temporary solutions. #5
Comments
Currently Go plugins are only supported on Linux, FreeBSD, and macOS. 😢 |
@bachig26 I made a small version with integrated consumet, I tried it slightly with wine |
@FlamesX-128 it worked for me, but there are some issues like:
as you can see only GoGoAnime is showing as a provider, even after the Installing plugins shows both.
|
I changed the directory:
still I can't see all the available plugins and has the same exit error. I want to ask if the |
@bachig26 2- It lets you watch the anime but when you leave it gives an error or it give an error before you can watch the anime? |
@bachig26 import (
// <...>
"github.com/FlamesX-128/anigo-plugins/consumet/gogoanime"
)
func init() {
// <...>
providers["[Api] [Direct] GoGoAnime "] = gogoanime.PackageModel{}
} |
it lets me watch anime, but it didn't give me the error when I leave it or before it...the error only shows when select the Example:
|
@bachig26 |
sorry, but I can't clearly understand this... as far I can get that the consumet iintegrated already. if that's the case, then it should not ask for installing the plugins while running the anigo, right? |
By default it is not installed, when the program asks you if you want to install it should download a ".so" or ".dylib" file. These are saved in anigo/plugins where they will be loaded every time it is turned on. In the case of windows, it uses ".dll", it is not supported by the Go library, the temporary solution I did was directly add it to the program. Original code: func init() {
var root string
var err error
if root, err = os.Getwd(); err != nil {
log.Panicln(color.RedString("[Plugin] [Init] [Error] %s", err.Error()))
return
}
// Load plugins.
for _, plugin := range plugins.Init[models.Plugin](root, "Plugin") {
// Register provider.
for name, provider := range plugin.Providers {
providers[name] = provider
}
}
} Temporary solution for windows. func init() {
var root string
var err error
if root, err = os.Getwd(); err != nil {
log.Panicln(color.RedString("[Plugin] [Init] [Error] %s", err.Error()))
return
}
// Load plugins.
// Won't install plugins.
for _, plugin := range plugins.Init[models.Plugin](root, "Plugin") {
// Register provider.
for name, provider := range plugin.Providers {
providers[name] = provider
}
}
// compile "anigo-plugins/consumet/gogoanime" with the core.
providers["[Api] [Direct] GoGoAnime "] = gogoanime.PackageModel{}
} |
I was going to integrate monoschinos too but because I put the code in a "main" package instead of a "monochinos" package I couldn't add it. 😢 |
anigo@[email protected] |
thank you, i'll try it out 👍 |
[Rewrite to Rust] I'm working on compatibility and improving the plugin manager, it may take me a few days to finish it. So sorry for taking so long. |
no worries. 🍀 |
No description provided.
The text was updated successfully, but these errors were encountered: