How to set the publisher id for windows 10 app?

  • 1
  • Question
  • Updated 4 years ago
when building an app on build.phonegapp.com using phonegap cli-6.1.0 version and a windows 10 signing certificate added to the signing keys section in account settings i receive a build failure displaying the certificate details in the logs. I believe it is because the publisher id and certificate subject does not match. Is there a way you can set the publisher id on phonegap build or the config.xml like you can on visual studio cordova app build.json file
Photo of Nathanael Dennis

Nathanael Dennis

  • 8 Posts
  • 0 Reply Likes

Posted 4 years ago

  • 1
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Nathanael
Since this is your second post, please answer the following question:
- is this your first hybrid app?
- are you using Desktop App?
- are you using CLI, Build, or SDK? Please do not assume the answer, please read the link.

Thanks
Jesse
Photo of Petra V.

Petra V., Champion

  • 7794 Posts
  • 1391 Reply Likes
Photo of Nathanael Dennis

Nathanael Dennis

  • 8 Posts
  • 0 Reply Likes
To answer q1 no, no, and i am using the build.phonegap.com to build the app from a zip file. To answer q2 i have already gone on that link and added the configs that are their but there is not one for publisher id which is my problem because when i build without a key its sets the publisher to "Apache Cordova Team" which prevents me from signing the app seperately. When i build with the signing key it fails with the logs showing the certificate details. ps when building windows phone 8.1 apps on older phonegapp versions i didnt have a problem.
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Nathanael,
run-on sentences are difficult to read. Sentence are structured the same way you write code.

EXAMPLE: i have already gone on that link and added the configs that are their but there is not one for publisher id which is my problem because when i build without a key its sets the publisher to "Apache Cordova Team" which prevents me from signing the app seperately.

AS CODE: ( ! build == (-> link && config && config( publisher_id === "Apache Cordova Team"))) == (! build == config(publisher_id === "me"))

On your issue, the new windows (UAP) configuration when using cli-6.1.0 requires a different signing method. This is spelled out in the blog post. Did you follow the blog post?

Jesse
Photo of Nathanael Dennis

Nathanael Dennis

  • 8 Posts
  • 0 Reply Likes
Thanks for your reply
On the blog:

-have i added the certificate to build.phonegap.com yes
-have i added phonegap version cli- 6.1.0 yes
-have i specified the windows phone version i am targeting yes
-have i specified the architecture yes
-have i added the author and name yes

-As i have stated before i have been able to do what i want to do with visual studio. -It is not the same on build.phonegap.com as there is no build.json" file to set the publisher id as this comes out incorrectly

-i have tried using the signing key with no luck as explained already
-i have tried building without the key to sign using the signTool.exe no luck as the publisher id does not match what is on the certificate subject

So in conclusion i have everything already stated, i am able to sign in visual studio, previous versions on phonegap for windows phone 8.1 producing an "xap" file there was no problem.

So with all this information, what have i missed?
Photo of JesseMonroy650 (Volunteer)

JesseMonroy650 (Volunteer), Champion

  • 3325 Posts
  • 122 Reply Likes
@Nathanael,
Thanks for the clarifications. As I do not build for Windows UAP, I cannot offer you any more help. My suggestion is to try the other forum:

https://forums.adobe.com/community/phonegap/build

If I recall right, the blog posts asks that any windows issue be posted to that forum. Feel free to point them to this thread. If you don't make any head way, let me know - I'll do what I can.

FWIW: most of the PGB team is at a European Conference today.

Jesse