neopostmodern / wohnungsbot

Der Wohnungsbot — die Anwendung zum 2. Akt ("Das Versprechen des Bots") des Automatisierungsdramas in drei Akten "Von einem der auszog eine Wohnung in Berlin zu finden" von Clemens Schöll
https://wohnungsbot.de
GNU Affero General Public License v3.0
151 stars 27 forks source link

Building for Linux not working on Windows #105

Closed drblaui closed 2 years ago

drblaui commented 2 years ago

Using the npm run package-linux Commands fails, since the builder request the https://service.electron.build url, which is down and seems to have been for quite a while. I don't know if the Server behind the domain is just offline sometimes or if it will be down always. Anyway the build can't be done reliably

As much as I can gather, this should only be a problem on Windows Environments

neopostmodern commented 2 years ago

I have no Windows computer and no idea how to solve this. What would this be necessary for?

The best way I can think of to achieve this (with no access to a Linux machine to build on) would be setting up a GitHub Actions workflow in a fork and then build natively on Linux, see https://github.com/neopostmodern/wohnungsbot/blob/master/.github/workflows/build-electron-dev.yml#L11 (it builds natively on three separate operating systems).

drblaui commented 2 years ago

What would this be necessary for?

My usecase was that I manly develop on Windows and needed some personal changes to the bot to run it on my linux computer. I guess this is really niche and I just kinda intended this issue to be more of a fyi.

I ended up solving it with docker and this solution and you could probably use WSL (haven't tried it tho)

I'm unsure if this issue is solvable without changing how the application gets build

neopostmodern commented 2 years ago

Given that this has limited impact and we've already documented two workarounds and I don't see any simple solution I'd close this.

Also, of your changes could benefit others I'd be happy to merge them in a PR.

drblaui commented 2 years ago

I am unsure if my changes are useful for "normal" users, as i just implemented that the bot sends me an email if it's stuck on a captcha so that i know i have to vnc into my computer if I'm not home and solve it for him. So it's also a very specific case

(Plus i had to rewrite how Mails are send, because I didn't want to create a sendgrid account). But I'll consider looking at other issues in the near future