Project: titanium
Issue TIMOB-23171: Cannot package Alloy app for dist-winstore 
*Details:* Cannot package Alloy app for dist-winstore. This is a *regression* from SDK 5.2.2.GA. *Steps to reproduce:* # Create a default Alloy project with {{appc new}} # Package the Alloy project for "dist-winstore": {{appc run --log-level trace --platform windows --target dist-winstore --ws-cert C:\Users\qe\Documents\generated.pfx --pfx-password tester --output-dir C:\Users\qe\Desktop}} *Actual:* You will not be able to package the Alloy app for dist-winstore: {code} 2016-04-07T23:58:58.100Z | ERROR | An uncaught exception was thrown! Path must be a string. Received undefined 2016-04-07T23:58:58.104Z | ERROR | Path must be a string. Received undefined 2016-04-07T23:58:58.104Z | TRACE | TypeError: Path must be a string. Received undefined at assertPath (path.js:8:11) at win32.join (path.js:221:5) at Object.exports.resolvePath (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\node-appc\lib\fs.js:52:20) at WindowsBuilder. (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\windows\cli\commands\_build\config\wsCert.js:84:23) at Context. (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\context.js:684:31) at Array.forEach (native) at Context.setArg (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\context.js:663:35) at Context. (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\context.js:762:9) at Context.parse (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\context.js:819:7) at Context.loadPlatform (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\context.js:409:34) --------------------------------------------- at Object.run (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\node-appc\lib\subprocess.js:59:8) at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\env.js:90:22 at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\node-appc\lib\subprocess.js:129:3 at ChildProcess.exithandler (child_process.js:194:7) at emitTwo (events.js:87:13) at ChildProcess.emit (events.js:172:7) at maybeClose (internal/child_process.js:818:16) at Socket. (internal/child_process.js:319:11) --------------------------------------------- at Object.exports.execFile (child_process.js:273:9) at exports.exec (child_process.js:101:18) at Object.getRealName (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\node-appc\lib\subprocess.js:128:2) at powershell (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\env.js:85:21) at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:713:13 at iterate (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:262:13) at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:274:29 at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:44:16 at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:718:17 --------------------------------------------- at Object.run (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\node-appc\lib\subprocess.js:59:8) at osInfo (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\env.js:71:21) at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:713:13 at iterate (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:262:13) at async.forEachOfSeries.async.eachOfSeries (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:281:9) at _parallel (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:712:9) at Object.async.series (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:734:9) at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\env.js:69:9 at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\utilities.js:49:3 --------------------------------------------- at magik (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\utilities.js:34:10) at Object.detect (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\env.js:41:9) at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\index.js:69:8 at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:181:20 at Object.async.forEachOf.async.eachOf (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:233:13) at Object.async.forEach.async.each (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\async\lib\async.js:209:22) at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\index.js:68:9 at C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\utilities.js:49:3 --------------------------------------------- at magik (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\lib\utilities.js:34:10) at Object.detect (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\node_modules\windowslib\index.js:57:9) at MobileWebBuilder. (C:\ProgramData\Titanium\mobilesdk\win32\5.3.0.v20160407140024\mobileweb\cli\hooks\windows.js:104:14) at C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\lib\hook.js:235:13 at C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\node_modules\async\lib\async.js:689:13 at iterate (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\node_modules\async\lib\async.js:265:13) at async.forEachOfSeries.async.eachOfSeries (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\node_modules\async\lib\async.js:284:9) at _parallel (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\node_modules\async\lib\async.js:688:9) at Object.async.series (C:\Users\qe\.appcelerator\install\5.3.0-12\package\node_modules\titanium\node_modules\async\lib\async.js:710:9) {code} *Expected:* Should be able to package for the "dist-winstore".
Story points: 5