DragonBuild / dragon

pip install dragon | A Powerful buildsystem and toolkit currently targeting darwin (iOS/macOS) machines
MIT License
220 stars 23 forks source link

icmd null and preferences issue on Ubuntu (WSL) #56

Closed L1ghtmann closed 3 years ago

L1ghtmann commented 3 years ago

Going to try and provide as much useful info as possible here, so apologies in advance for the lengthy posting.

I setup DragonBuild recently and tried to compile a couple of my existing projects (Vinyl & Quorra) with both their existing Makefiles and then with DragonMakefiles and noticed two things:

1) The after-install command always returns null: Running '' No command provided.

When trying to log sys.argv[2] in device.py's main(), I got the error "IndexError: list index out of range," which would explain why [2:] comes up empty. I did try looking around some more, but couldn't figure out why [2] doesn't exist (I'm not well versed in python).

2) Preferences do not compile properly: After compiling both projects with their existing Makefile's, I couldn't get either to show up in settings. After compiling both projects with DragonMakefiles, they showed up in settings, but opening either of them presented a blank page or "There was an error loading the preference bundle for TweakName: The bundle "TweakPrefs.Bundle" couldn't be loaded because it is damaged or missing necessary resources."

Just to make sure I wasn't missing something, I also cloned Signe from your GitHub and compiled it, but had a similar experience: both the after-install command and preference issues were present. And, just to be triple sure, I also asked a friend to try compiling Signe on WSL with DragonBuild and they had an identical experience.

0x41c commented 3 years ago

I referenced this in my PR's and hope that this clears up the icmd and package_name. I also hope I can figure out how to fix preference compiling. If I do I will make another pr and reference this issue in that PR once again.