[TIMOB-18087] CLI: Add support for the Windows Store Package hook for Windows platform
GitHub Issue | n/a |
---|---|
Type | New Feature |
Priority | Medium |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2015-06-12T14:48:34.000+0000 |
Affected Version/s | n/a |
Fix Version/s | Release 4.1.0 |
Components | Tooling, Windows |
Labels | n/a |
Reporter | Chris Barber |
Assignee | Dawson Toth |
Created | 2014-11-25T10:43:55.000+0000 |
Updated | 2017-03-21T22:36:32.000+0000 |
Description
This hook is in the
cli/hooks/ws-package.js
file. This hook should copy the wp-package.js hook. It simply needs to sign the app and copy it to the output directory.
Do we need to create a signing certificate for them, as well?
Let me be a little more precise -- we talked about creating some tooling that will guide the user through creating a signing certificate, rather than just using a hard coded cert that might use our name, etc. Is this ticket for creating that tooling, too, or is that something else?
[~dtoth] This ticket should be about whatever we need to help guide the user in building a Windows Store app beyond what we do currently. From my memory the issues here are: - We need the user to create and install a certificate they will use to sign their app using a private key generated from that cert. Right now just pointing them at the Windows docs on doing that would be better than nothing, though obviously in an ideal world we'd step them through that somehow if we knew they had no cert. - We need to generate the private key from that cert and embed it in the app. It may simply be that we again point them at the docs for generating the key from the cert and then tell them to place it in their Resources directory. If we see no pfx file, that may be the trigger to point them at the docs for the cert/key generation. - We need some way for the user to specify the publisherName they used for the cert, so that we place that in the appxmanifest we generate during the build. I'm assuming a tiapp.xml property would be the right place for this? It'd be a string like "CN=Contoso Software, O=Contoso Corporation, C=US". Ideally the CLI would again help in verifying that a value exists for store builds, and possibly prompting and setting it for them if not? https://msdn.microsoft.com/en-us/library/windows/desktop/jj835832%28v=vs.85%29.aspx?f=255&MSPPError=-2147217396
Sounds good. Mind if I take a stab at it, cwilliams?
[~dtoth] Nope, please take it :)
https://github.com/appcelerator/titanium_mobile/pull/6903
https://github.com/appcelerator/titanium_mobile_windows/pull/258
Closing ticket as fixed.