Closed sw882882 closed 1 month ago
Would it be possible to merge this patch?
Yes, it would be possible to merge it @sw882882, but I personally recommend against it.
First of all, the patch for index.html
seems to be broken while attempting to apply it to https://github.com/H-M-H/Weylus/tree/master, however, applying it won't be necessary because @norinorin provided the source here.
Second, the ~.gitignore doesn't allow changes to~ repo doesn't track ~lib.js
~ .js
files (can be bypassed easily though).
I recommend just treating it as an addon and take @norinorin's approach by downloading the template and running <weylus executable> --custom-index-html <path to index.html> --custom-lib-js <path to lib.js>
as explained here (which you seem to have done successfully already).
In conclusion: it can be merged by overriding the default template, or by adding the template to the repo (in which case you would still have to point to the files with --custom-index-html
and --custom-lib-js
). Let's wait to hear what @electronstudio thinks about this, and I hope this answers your question.
In the meanwhile, if you want to apply it yourself (overriding the default one), this one should work on the official master branch:
git apply <patch-file>
Note: it doesn't take .gitignore into account. It's just based on @norinorin's template. So make sure to back up www/static/lib.js
.
Yes, it would be possible to merge it @sw882882, but I personally recommend against it.
Also, another thing to keep in mind is that lib.js
is generated during the building process, so merging this might complicate things in the future if Weylus would depend on a different version. I don't know the details on that.
Yes lib.js is not source code, it's generated from lib.ts. (That's why it is ignored by git.) So to create a PR that actually would one day be accepted by Weylus upstream would require the changes be made to lib.ts. That would be my preferred way of doing things, so that if Weylus original author returns or a new maintainer who is fluent in Rust steps forward the work done here can be incorporated.
Idea for @H-M-H
useful for games like osu, or if your tablet is just huge. I found the patch here and it still seems to work with the --custom cli arguments, and providing the patched html and script files.
My only issue with this patch is that if you aren't streaming video, unless you are resizing, it will only show the border of the custom area when resizing, but deleting the timeout in scale_canvas seems to make the border permanent.
Would it be possible to merge this patch?