New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
[TIMOB-24943] CLI: Install command patch for Windows platform. #9198
Conversation
build/scons-install.js
Outdated
@@ -38,7 +38,7 @@ function install(versionTag, next) { | |||
|
|||
// TODO Combine with unzip method in packager.js? | |||
// TODO Support unzipping on windows | |||
exec('/usr/bin/unzip -q -o -d "' + dest + '" "' + zipfile + '"', function (err, stdout, stderr) { | |||
exec('unzip -q -o -d "' + dest + '" "' + zipfile + '"', function (err, stdout, stderr) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unzip
is not a valid command on Windows. You should use the unzip function in node-appc
. To do this, first require node-appc
:
var appc = require('node-appc');
Then unzip!
appc.zip.unzip(zipfile, dest, next);
@cb1kenobi Updated. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Seems to work as advertised. APPROVED.
- Bug was introduced on Mac and Windows as of PR tidev#9198. - Note that this works-around a bug in CLI appc.zip.unzip() function, which is to be fixed later.
@ypbnv, you should check if there is a Windows bug with the following command as well... The above does a clean, build, package, and install all at once. I've noticed the JavaScript for this command contains a copy of the old unzip code that you might want to change over to use |
@jquick-axway Checked it - 'cleanbuild' on Windows does have the same problem. Since this PR introduces an issue - should I apply the changes from it for 'cleanbuild'? |
@jquick-axway Here is a combined PR: #9259 |
JIRA: https://jira.appcelerator.org/browse/TIMOB-24943
Description:
Installing a built from sources SDK fails on Windows.
Here I am not sure if stripping the 'unizp' command would work fine on OS X.