Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-19009] Windows: Populate default ti.windows.publishername property value

GitHub Issuen/a
TypeImprovement
PriorityCritical
StatusClosed
ResolutionFixed
Resolution Date2015-06-23T14:48:35.000+0000
Affected Version/sn/a
Fix Version/sRelease 4.1.0
ComponentsTooling, Windows
Labelsn/a
ReporterChristopher Williams
AssigneeChristopher Williams
Created2015-06-12T14:22:10.000+0000
Updated2015-06-24T18:10:08.000+0000

Description

It looks like we now require a new property to populate the user's appx.manifest and to use for certs on store apps. Since it is required now, we should try and at least generate a sensible default value for the user in their tiapp.xml during project creation - or warn the user and use a generated one when we build? It's a bad experience to just fail first build, spit out some error about needing to set the value and then hope the user follows it. We could do a "create.post.app" hook in the CLI to edit the tiapp.xml and push a value in there. We could fall back to generating one if there is no value and give a warning to the user but continue?
<property name="ti.windows.publishername" type="string">CN=Dawson Toth</property>

Comments

  1. Christopher Williams 2015-06-15

    From [~dtoth]: We could also infer a sane value based on the <publisher />, if they haven't provided that windows property.
       'CN=' + builder.tiapp.publisher
       
    We'd need to ensure we sanitized that value, since I know commas in it break the cert code. Not sure if there are other special characters we'd need to escape.
  2. Christopher Williams 2015-06-23

    https://github.com/appcelerator/titanium_mobile_windows/pull/309
  3. Lokesh Choudhary 2015-06-24

    Verified the implementation. App builds successfully with out specifying the
    <property name="ti.windows.publishername" type="string">CN=QE</property>
    peoperty in the tiapp.xml Environment: Appc Studio: 4.1.0.201506221807 Ti SDK: 4.1.0.v20150624102755 Ti CLI: 4.0.1 Alloy: 1.6.2 Windows: 8.1 Enterprise 64-bit APPC NPM: 4.1.0-1 APPC CLI: 4.1.0-3 Device: Nokia Lumia 928 - Windows Phone 8.1

JSON Source