AppScreenshot
AppScreenshot copied to clipboard
sh build.sh YOUR_APP_NAME
What does it mean?
When command prompt by this command sh build.sh YOUR_APP_NAME
I got error.
Capturing /build/YOUR_APP_NAME/android-5.png build.sh: line 13: ./phantomjs-1.9.2/bin/phantomjs: cannot execute binary file: Exec format error
node app.js
command nothing happened...
Hi,
- After
node app.js
, node will be waiting for connections. Just leave it alone. - Then try this command
sh build.sh Sample
After
node app.js
, node will be waiting for connections. Just leave it alone.
I waited minimum 5-10 minute, still nothing happened.
You don't have to wait, just leave it alone and run sh build.sh Sample
command.
README.md
updated, check it out: https://github.com/yisheng/AppScreenshot#sample
After node app.js
I leave the cmd window, and visited the screenshot preview link -
http://localhost:3000/?app=Sample&device=3.5&index=1 and its work.
After that I open new cmd window and run sh build.sh Sample
But I got error...
But, thanks to you, its a very nice and useful project... Hope I'll add some Android device frame...
It's because the PhantomJS binary is the Mac version.
Sorry I didn't test it on Windows yet, I'll fix it today.
@lovebdsobuj Are you using cygwin
to run sh
files?
No, i used git bash
...
It works...
I have installed latest
phantomjs
for windows. I copiedphantomjs
directory intoAppScreenshot
folder. Next I editbuild.sh
file line 12./phantomjs-1.9.2/bin/phantomjs ./phantomjs-1.9.2/examples/rasterize.js
to./phantomjs/bin/phantomjs ./phantomjs/examples/rasterize.js
and run the command line node app.js
and sh build.sh Sample
and finally it works, chrome.
N.B. No need to copy phantomjs installed directory just need to add location where installed latest phantomjs
in build.sh
.
Yes, you got it!