Skip to content
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

Mac OS Release? #30

Open
konjelly opened this issue Feb 27, 2023 · 12 comments
Open

Mac OS Release? #30

konjelly opened this issue Feb 27, 2023 · 12 comments
Labels
help wanted Extra attention is needed

Comments

@konjelly
Copy link

I've been pulling my hair out trying to get this compiled on my Mac. I've never worked with Electron before, but I keep getting errors on things like "copy-webpack-plugin" or ".webpack/main" not existing. Rather than trying to fix my issues since I'm sure they're due to my inexperience, would it be possible for the next release to include a build for Mac OS, even if it is not officially supported?

@Razviar Razviar added the help wanted Extra attention is needed label Feb 27, 2023
@Razviar
Copy link
Owner

Razviar commented Feb 27, 2023

Like I said in #24 we don't have mac supporter/maintainer in our team. Basically I don't even have a mac computer to dev something for mac. If there's anyone how wants to step in and add mac support - it will be appreciated.

We have pull request #26 but I even have no idea how to test it lol/

@konjelly
Copy link
Author

I appreciate the reply, and maybe I'm way off base here, but since it's an Electron app don't you just need to include the Mac as a target when you build? I.e. if you're using electron-builder, you'd just need to run something like this: electron-builder -mw (for Mac and Windows). That's what I meant by including one but not supporting it.

@Razviar
Copy link
Owner

Razviar commented Feb 27, 2023

That's the thing, to be able to build something I need at least a platform to run it on. With mac, you can't build mac Electron version on windows, you need to run mac build electron-forge scripts specifically under macOS. And it also needs a bunch of additional settings and you must know what you're doing. We had this tracker https://github.com/Razviar/mtgap working for mac (when we had mac supporter on the team), so you could take a look and check out how it was tuned in order to get it working.

@borghe1
Copy link

borghe1 commented Mar 31, 2023

starting to take a look at migrating this for M1/M2 Macs running the iPad app (kudos to SD for making the iPad app apple-sil compatible). Location of the live match files are ~/Library/Containers/SNAP/Data/Documents/Standalone/States/nvprod

@borghe1
Copy link

borghe1 commented Mar 31, 2023

ok, I have the tracker working on macOS. Overlay doesn't seem to be working (but I've never actually used it before). But tracking and syncing to msp is working. after installing npm and electron I just run rpm start run from the root of the directory. working on overlay now.

@konjelly
Copy link
Author

@borghe1 you are amazing! If you need any help testing let me know.

@borghe1
Copy link

borghe1 commented Mar 31, 2023

currently it won't open the overlay window. I'm assuming it's looking for SNAP window.. and (I believe) to do so on macOS you need to give Accessibility permissions to the app for screen reader. I see what looks like some work started (included npm-mac-permissions in types) but I haven't figured out how to launch a prompt to give screen reader permission and can't manually assign it given a node.js project.. alternatively on Mac could simply force open the overlay bypassing the state of the SNAP window, at least to start.

@borghe1
Copy link

borghe1 commented Apr 2, 2023

Ok tracker is working perfectly with the site. Overlay is tricky. I have the window finally showing WITHOUT forcing it, but it’s not being updated and won’t reposition with the window. Working on updating next.

@IngSubstance
Copy link

@borghe1 there is a way to get your work and test it locally?

@alessandrapereyra
Copy link

@borghe1 Any way of getting access to your branch or changes? I would love to test them or maybe help with it.

@ulasakdgn
Copy link

Waiting for this excitedly. Thank you very much @borghe1 for your efforts.

@androiski
Copy link

androiski commented Jul 18, 2023

Ok tracker is working perfectly with the site. Overlay is tricky. I have the window finally showing WITHOUT forcing it, but it’s not being updated and won’t reposition with the window. Working on updating next.

@borghe1
Need any help on this? I'm new to electron, but I have a Macbook with an ARM cpu

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
help wanted Extra attention is needed
Projects
None yet
Development

No branches or pull requests

7 participants