Closed obsidiandesign closed 11 years ago
I chatted the @obsidiandesign on IRC and was able to recreate the issue.
Projects from a Zip source: work fine.
Projects from a Git source: do not include subdirectories in the www/
directory.
I looked into the issue a little bit more:
Looking into it now -- was only able to reproduce with your repository, not the original phonegap-start repo or any others. Seems to be a pre-build problem -- Build isn't even finding / parsing the config.xml before sending off for building.
OK problem is that Build is using www/DrupalGap/pages as your root folder.
Currently, if Build doesn't find an index.html file in the root of your repo, it recursively looks for an index.html file in your directory structure, and when found, uses the location of the index.html as the root folder. The order it returns the found instances seems to be arbitrary.
This should be changed to use the index.html file found at the lowest directory depth. Maybe even prioritize www/, i.e. order like this:
In the meantime, you can get around this by either:
a) moving everything in www/ into the root directory, or b) deleting your DrupalGap folder (looks like you might've copied them all to your www/ directory)
Awesome, thanks @wildabeast
I definitely would not have tracked down that cause by myself!
I agree, the way that PG/Build scans for index.html
should be changed to prioritize the lowest depth.
@wildabeast Thanks for the info - it would definitely be helpful to have the behavior of scanning for index.html changed or outlined as a warning in the documentation. This definitely helps!
Created a new issue https://github.com/phonegap/build/issues/95
I'm in the process of modifying a basic app using the phone-gap start code. However, when I build the app using build.phonegap.com, any additional .js files or subdirectories of /www/ are ignored when build.phonegap.com pulls the repository from github.
GitHub Repository: https://github.com/obsidiandesign/phonegap-start (forked from phonegap-start) build.phonegap.com link: http://build.phonegap.com/apps/320572/builds
Steps to reproduce:
If, however, I create my own .zip file from all of the code and upload it as a private application, the files are properly saved into the .apk's assets/www folder.
Thanks!