Frage

I have a web app that I'm trying to package up into a standalone app using Brackets-Shell. I followed the instructions here to setup Brackets and Brackets-Shell on my Mac OSX system:

https://github.com/adobe/brackets-shell/wiki/Building-brackets-shell

And seemed to be able to generate the Brackets.app file by running 'grunt full-build -v' from within the Brackets-Shell folder.

I then followed the instructions here to modify the Gruntfile.js file in the Brackets-Shell folder to use the source from my web app:

http://clintberry.com/2013/html5-desktop-apps-with-brackets-shell/

But, now when I run the 'grunt full-build -v' command I get the following error message:

>Build branch master
> 
> Running "build-num" task
> /Users/dave/Desktop/Bracket_Shell/dev-tools/my-app
> git log --format=%h
> fatal: bad default revision 'HEAD'
> fatal: bad default revision 'HEAD'
>Warning: Task "build-num" failed. Use --force to continue.

I'm not sure how to get past this error (I'm definitely a newbie at using grunt). Any suggestions or help is appreciated.

Thanks.

War es hilfreich?

Lösung

  1. Is /Users/dave/Desktop/Bracket_Shell/dev-tools/my-app the correct location of your web app?
  2. Are you using Git for source control? Mind this part of the instructions:

    Use Git for your HTML app – To use the build scripts provided by brackets, you need to be using Git with your source code. If you aren’t using git for your project, cd into your project folder and type `git init`

    Note that the instructions aren't 100% complete – if you aren't using git already, you'll need to create at least one commit after doing git init (otherwise the git log call in the build script will still fail). You can just pick any small file in your "my-app" folder and do git add <file> and then git commit -m "Create repo".

Lizenziert unter: CC-BY-SA mit Zuschreibung
Nicht verbunden mit StackOverflow
scroll top