GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||
GeezerVison is showing github.com — Add "Run on InfiniEmu" link to pull requests, update actions/upload-artifact by pipe01 · Pull Request #2150 · InfiniTimeOrg/InfiniTime Conversation
|
|
Build size and comparison to main:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Would really like to see this merged, this makes testing PRs much easier! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Love it!
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Is using an open CORS proxy wise? It feels dangerous to trust it with user traffic - if it started acting maliciously (got hacked, owner decided to cash in etc) it could return whatever it wanted to user's browsers |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Maybe not, but the worst that could happen is that they serve either an invalid ZIP file which would fail to load, or they could serve a different firmware file which would just be annoying. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
I'm trying to think if there's another way to load it, could InfiniEmu itself fetch the firmware somehow? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
If you mean fetching from GitHub directly it's not really possible because there's no official way to download artifacts without being logged in or using an API key, both of which aren't really feasible in this case. That's what nightly.link solves, however it unfortunately doesn't allow CORS. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Hmm, could the InfiniEmu server fetch it and serve the artefact to the user? |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
There's no server per se right now, it's hosted on GitHub pages. I've made a slight improvement by not hardcoding the CORS proxy into the URL in the comment and instead letting InfiniEmu handle that so that it's easier to change in the future if needed. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
👍 makes sense |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
(Un)fortunately you can't do that because that would mean that you could send any requests on behalf of the logged in user from a different webpage, which is obviously not great. |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
Ah, I thought the github cookies for that might be allowed to be samesite, but I guess it makes sense that they're not and there'd have to be a full Oauth flow (which isn't possible on GH pages I guess) |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
|
@mark9064 I think this is ready to merge 🙏 Would be nice to have soon to test PRs as they come in |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Still not a fan of using a CORS proxy but that's now up to Infiniemu itself which could be refactored, so I guess that problem is now pushed out of scope
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.