Closed stylesuxx closed 3 years ago
Right it used to be like that, but because they switched to yarn the old scripts didn't work on mac so I "fixed" it 😓
Ah, OK - so we have a deadlock here? If we change it to optional, you can't build it, and if we leave it, I can't build it :-D For me it does not really matter, but in this situation I suggest simply adding a section to the readme explaining the situation for Linux.
I think it's possible to make it optional, it's just the way it was done on blheli-configurator master did some npm install only on mac that didn't work with yarn. At least it would be better to remove it as a dependency and just install manually on mac.
Actually, there is an open ~issue~ pr about gulp-appdmg not working on newer versions of mac so doesn't even make sense to try making it optional anyway. I'm fine with removing it and have mac users figure out how to build for themselves 😅
Btw the dmg thing is not needed run/debug the app.
Oh just realized it might not be possible to cross-compile to mac on other platforms? In that case it's a little more problematic, but I can still build the releases for now.
I know it is not needed for debug - that's why I suggested to put it in the optionals - otherwise installation of the dependencies will fail on Linux.
And you are right, it is needed to build the bin for mac - and from what I understand it will only work on Mac anyway. So if you keep building the releases everything is fine and dandy - from what I understand you need to build on a Mac anyway to be able to build all bins...
So the conclusion is: We remove gulp-appdmg
as a dependency and add a section to the Readme to install it if developing or building on mac.
This should be an optional dependency, otherwise deps can not be installed on linux for development. I have a modified package json and will prepare a PR.