-
Notifications
You must be signed in to change notification settings - Fork 19
implement foxr.launch() #5
Comments
I have investigated and there is some problems:
I don't know if macOS dmg's will do the trick but Linux versions seems to work. |
Hi. macOS Regarding Windows – I found this: Not sure how much we can trust these sources though. |
Sorry, hi ! |
Ok so I tried to build the |
I didn't looked at it before, it would have helped me a lot ! |
So for now my |
I'd check where Puppeteer stores Chromium, it feels like it's in their module folder inside of Also, I'd like to initially implement this as a separate package to not make the same mistake as Puppeteer – see puppeteer vs puppeteer-core. Something like you have to install Thanks for your investigation! |
So |
That's the weak part of my idea :) My personal usage of Foxr/Puppeteer is limited to an external dockerized solution, so that How to wire it together is a good question.
|
@jgraham probably knows how to download Firefox automatically, this is done in web-platform-tests, although in Python, here: |
Thanks for the help! But I already built a module that can do this. The problem is how to "modularize" the function. |
If you choose a path to download Firefox in deterministic way, i.e. it doesn't have random parts and it gives the same result every time, you can export it and pass to Foxr: foxr.launch({
executablePath: firefoxDownloader.getPath()
}) |
The path could change with the OS (maybe not if it's relative) ? |
It's fine as long as "firefox-downloader" module will use the same path as it returns with |
I pushed my changes on the launch branch of my fork ! |
Looks good! I'm a bit off this project for the last few days, but will come back really soon. |
Alright. I'm going to implement |
Ok |
I created a (basic) module to download Firefox. https://github.com/MusiKid/firefox-downloader |
The module is more complete now. macOS support needs to be tested however. |
Nice. Shouldn't |
Effectively ! |
So where should Firefox be extracted ? |
I'm not quite sure. What's your current solution? |
I don't know |
Maybe just let the user define it ? |
https://github.com/GoogleChrome/puppeteer/blob/v1.6.2/docs/api.md#puppeteerlaunchoptions
browser.close()
The text was updated successfully, but these errors were encountered: