-
Notifications
You must be signed in to change notification settings - Fork 28
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
Version of Linux/macOS plugins taken from vs-plugin-build is incorrect #238
Comments
I'm not sure if I can follow 100%.
|
I did not add them to vsrepo at all, as I don't have access to it, you did in commit ca0c8f9. |
I created them like every other (new) plugin on github with Then I copied the release blocks to their respective package files + replaced win64 indexes with linux/dawin All I did in vsrupdate was to add default=['.dll', '.dylib', '.so', '.py'] to packagefiletypes. Basically I added them using the "default" vsrupdate behaviour and haven't paid much attention the the version string :D Will update the versions in a bit |
Ah I see, I could add a switch in vsrupdate.py, so you could update like this: |
My idea is the following: Line 10 in 3e0b328
We could add a new In vsrupdate, we would only need to loop through all plugins (& check if tag contains identifier) using the following API: I'm open to other suggestions.
All necessary update checks should be carried out automatically, I don't think we need to introduce an additional parameter for this. |
This should not change the default updatemode, as the builds are an addition for Linux/macOS, they don't replace the builds provided in the original repo. |
I meant the same thing. In my case the url is stored within the package itself instead of adding it via a parameter. It will do the "normal update" & also checks for Linux/macOS builds. How would |
It would fetch the releases list at the beginning (and parse it to a dict like |
I forgot to push the version string fix. Should now be good? |
Almost, that's probably my fault: For mvtools I build a git version, I noticed in vsrepo these versions are "git:" and not just SHA, I did not include he "git" in the tag. There are probably around 120 new builds for different plugins in my repo now. What's the best way to add them to vsrepo now? If you want I could add the |
git- is fine too, it's just a hint that this is a git commit. |
Just created a pull request for that, not sure if |
Does your build system also support windows or can be extended easily? There are some plugins with no releases which could be added too this way. |
I currently don't have a github runner setup for Windows, but that should be possible. My build system is not OS-specific and should work on Windows (maybe some minor issues like illegal file names). Even when using msys the build definitions probably need custom Windows definitions for those plugins, but for a few plugins that should not be an issue. Linux and macOS is quite similar and the same commands can be used for almost all plugins. I also currently have only plugins added that did not require custom build steps, as I auto-generated the build definitions based on the used build system (autotools, meson etc.). I'm not very familiar with Windows, but there are some plugins using a GitHub runners to build for win32/win64, I will have a look if I can adopt those for win32/win64 builds in my build system. Do you have a list of those plugins? I can only think of vsrawsource, that would be nice if it could be added, as it's useful for the vhs-decode project. I create the build definitions based on the vsrepo jsons to get for example the identifier. Maybe you could add the jsons for those plugins without any release, that would help me a lot. |
I will make a list with json files. |
Hi,
I just have a first version for updating and auto-generating plugin build definitions and was able to successfully automatically create build definitions for over 40 plugins.
I noted that the few plugins I manually added are not added with the correct version to vsrepo. I generate GitHub tags like this for VapourSynth plugins:
vsplugin/{identifier}/{version}/{platform}/{buildtime}
, for examplevsplugin/com.ifb.colorbars/R4/darwin-aarch64/2024-07-23T14.46.34Z
Currently that entire tag is added as version, which is not correct. Maybe the first additions can be reverted and then only those that match this pattern will be added with the correct version. I can also change the tag system if needed.
I will wait until this is resolved before I start building new plugins, as I don't want to risk creating an even bigger mess in vsrepo.
Best regards,
Stefan
The text was updated successfully, but these errors were encountered: