[TIMOB-23193] Windows: Change target specific build options into target agnostic build options
GitHub Issue | n/a |
Type | Improvement |
Priority | High |
Status | Closed |
Resolution | Fixed |
Resolution Date | 2016-09-15T17:38:40.000+0000 |
Affected Version/s | Release 5.3.0 |
Fix Version/s | Release 6.1.0 |
Components | Windows |
Labels | qe-5.3.0 |
Reporter | Ewan Harris |
Assignee | Kota Iguchi |
Created | 2016-04-12T04:26:27.000+0000 |
Updated | 2017-05-19T22:08:46.000+0000 |
Description
Description
Currently in the CLI we have a couple of options that are target specific in their naming, namely *\--wp-sdk* and *\--ws-cert*, these options should become target agnostic in their naming as the usage has changed with the introduction of support for Windows 10 and they are no longer specific to a certain target, for example --wp-sdk can be used to change the SDK for a ws-local build, and a cert can be passed into a phone build
Comments
JSON Source
So what about introducing * *win-cert* for replacement of *ws-cert* * *win-sdk* for replacement of *wp-sdk* I found another confusing options from the [Command-Line Interface Reference](http://docs.appcelerator.com/platform/latest/#!/guide/Appcelerator_Command-Line_Interface_Reference): * *wp8-publisher-guid* * *wp-product-guid* I'm not sure if *wp8-publisher-guid* is actually used but we might want to change them into *win-publisher-id* and *win-product-guid*.
That renaming sounds good to me (y). For backwards compatibility with Studio would it be best to keep the existing options around but hidden from -h and then removing them in another release? Maybe hide/deprecate in the version you decide and then remove in 7.0.0? If I remember right I think the hiding of options can be done in config.js. Also, I'll file a ticket now for Studio to adopt these once done As for those two confusing options, I believe they are intended specifically for moving a phone 8 app phone to 8.1, this is probably a holdover from mobile web. I guess maybe we could follow the same process as the above if they're deemed unneeded?
Yes, for backwards compatibility I would think we want to deprecate
wp-\*
andws-\*
options in6.1.0
and remove it in next major version7.0.0
. * ws-cert → win-cert * wp-sdk → win-sdk * wp-product-guid → win-product-guid Forwp8-publisher-guid
, I'm not yet sure if we really use it in non-mobieweb build. If it is Windows Phone 8.0 specific option, I think we can deprecate and remove it as of7.0.0
because we are not supporting Windows Phone 8.0 anymore. Or more proactively, we might want think about deprecating/removing support for Windows Phone 8.1 in7.0.0
? > [~cng]ok confirmed
wp8-publisher-guid
does not exist. There'swp-publisher-guid
instead. This will be renamed towin-publisher-guid
.Ah no, renaming
wp-publisher-guid
towin-publisher-guid
seems more confusing because we already havewin-publisher-id
which is used to specify Windows Publisher ID. I think we want to keepwp-publisher-guid
for now and remove it in the version where we remove Windows Phone 8.1 support.https://github.com/appcelerator/titanium_mobile_windows/pull/868
We forgot to add
fixVersion
...this should go to6.1.0
. *Test Case*Verified improvements, tested with commands from [~kota] mentioned above. *Test steps* * Created a titanium project * Ran the following command
appc run -p windows --target dist-winstore -l trace --win-cert generated.cer
* Followed the prompts * Application was built to thedist
folder without any issues * Then ran the following commandappc run -p windows --build-only --target wp-device -l trace --win-sdk 10.0
* Application was built successfully * Then ran the following commandappc run -p windows --build-only --target wp-device -l trace --win-sdk 10.0.10586.0
* Application built successfully * Then ran the following comappc run -p windows --build-only --target wp-device -l trace --win-product-guid f0473be1-c557-4f98-a103-4ba9f453b5b0
* Application was built without any issues *Environment* APPC CLI: 6.2.0 Windows Mobile 10 device Lumia 640 (10.0.14393) Operating System: Name = Microsoft Windows 10 Pro Version = 10.0.14393 Architecture = 32bit CPUs = 4 Memory = 17034395648 Node.js: Node.js Version = 6.10.1[~kota], does this sound like a good summary for this ticket for the 6.1.0 release note? * Deprecated the commands for wp-* and ws-* * The following replaces the deprecated commands: ** ws-cert > win-cert ** wp-sdk > win-sdk ** wp-product-guid > win-product-guid
[~bimmel] Yes, that sounds good (y)