node-on-mobile doesn't work on windows but shows success message
warpdesign opened this issue · 8 comments
When running the command on Windows:
node-on-android node-android my-app.apk -b E:\Dev\AndroidSDK
It says:
Done! apk file is stored in:
E:\Docs\Dev\node-android\app.apk
But the file does not exist.
Oh yea, the cli is mac/linux only. A pr that makes it work on Windows would be super helpful tho
Interestingly using git-bash
it throws errors, then claims a resounding success.
cp: cannot create directory 'C:\Users\mallen\AppData\Local\Temp\node-on-android-1501715259618\base\assets\node': No such file or directory
mv: cannot stat 'C:\Users\mallen\node-on-android\cli\app.apk.aligned': No such file or directory
Done! apk file is stored in:
C:\Users\mallen\node-on-android\cli\app.apk
First error is solved by mkdir -p
before calling cp
@warpdesign @mafintosh @maxogden Any update I am getting the same error.
@mafintosh I think I can make quick work of that. My inclination would be to use shelljs is that OK?
Edit: Assuming I get the APK building here shortly. My machine has an ancient version of the android-sdk on it and I need to upgrade it before I can build anything.
Can this vital piece of information get added to the home page immediately? I've wasted hours getting things set up on windows, and then trying to debug the process, before finding this issue and leaning that it's completely useless trying to build on windows.
Oh yeah, sorry about that. I never did get a working android-sdk on my machine, so I never got around to making the script portable.