Skip to main content

Indie game storeFree gamesFun gamesHorror games
Game developmentAssetsComics
SalesBundles
Jobs
TagsGame Engines

tomalinsky

6
Posts
1
Topics
1
Followers
11
Following
A member registered Mar 15, 2015

Recent community posts

Good point on grepping for the version after publishing - that is indeed a part of my changelog (I follow this format, so it converts to HTML nicely), and my release workflow is aware of the version being published already.

And you're right, I don't have to handle everything in a single script. I suppose  I could extract the token once locally and then use it via Playwright in my CD as a repository secret, updated once it breaks. However, I'm also considering skipping the CD for itch altogether - still script the upload and form update but run it entirely on my machine instead.

(2 edits)

Yeah, that 700 hundred lines I mentioned is basically this:

  •  launch Chromium (without Playwright) pointing at the game's edit page URL and using a custom storage directory. log in, or be logged in already. close window
  • scan that storage directory for relevant cookies, extract them
  • launch Chromium via Playwright, pass the cookies to the context, open the game's edit page URL, find the text editor, switch to HTML mode, paste, click save and open the game's page to verify

I approached it relying on my prior experience building end-to-end browser tests but the issue is that Cloudflare's bot detection on the login page picks up on Playwright, so I wasn't able to get to the login form in a Playwright-controlled window, just the CAPTCHA and it was being stuck in a rejection loop. Hence this wacky (and hacky) two-step process, which would be needlessly complicated to maintain. I'd rather just have an API, so I'm sticking with manual copy/paste until one materializes and binned the Playwright attempt.

(1 edit)

Well, what should have been a single line of curl (if there was an API) ended up as a 700-line monstrosity that I can't reasonably maintain, so instead I'll just generate the HTML in my workflow, print it out in the step summary and paste it manually :S

WHY ARE YOU LIKE THIS itch

Cheers, I'll see about automating this on my machine rather than one of Github's. If I end up with something usable, I'll post it here.

Hiya! I've been successfully using butler to upload new builds via Github workflows, and that's brilliant. I have almost all of the process automated - builds, releases, changelog, the works. One thing left I'd love to be able to do is to update the game page's description using an API of sorts so that I can use the update notes from my changelog. I can't find a way to do it in the documentation, and I'd rather not go through the rabbit hole of setting up Playwright or whatever - that's heaps fragile and hacky. If there is a way to do it that I'm not aware of, I'd love to hear it - otherwise, I'd like to request this as a feature.

Late 2013 15" Retina MBP working fine.