HOW TO: Build Windows Phone 8/8.1 target

muruba

Active Member
CX Code Contributor
3rd Party Module Dev
Patreon Silver
Joined
Jul 5, 2017
Unless merged into main Cerberus repo this is based on a fork changes:
https://github.com/IvelleGames/Cerberus/tree/develop


This tutorial is based on Microsoft Visual Studio Community 2015.

Download and install it from Microsoft web site.

In your Cerberus folder, open the file bin/config.winnt.txt and change the following variables:

MSBUILD_PATH="C:\Program Files (x86)\MSBuild\14.0\Bin\MSBuild.exe"
Build the project in Ted/Jungle IDE/Mollusk for Win RT Phone target.

1. Open the generates solution in Visual Studio: ./xxx.buildv2017-10-24/winrt_winphone8/CerberusGame.sln

  • Be careful changing game properties! If the game fails to start/compile after the changes, re-build and make changes one by one.
2. Update game properties:

upload_2017-11-6_21-27-57.png


upload_2017-11-6_21-31-37.png


The values of ProductID, Author, Publisher and PublisherID are only relevant for local testing and are overridden when submitting your app to the Windows Phone store...

https://stackoverflow.com/questions/15791591/are-package-product-ids-mandatory-in-wmappmanifest-xml
3. Change XAP file name:

upload_2017-11-6_21-58-10.png


4. Replace icon images:

\winrt_winphone8\Assets\ApplicationIcon.png (100x100)
\winrt_winphone8\Assets\Tiles\FlipCycleTileLarge.png (691x336)
\winrt_winphone8\Assets\Tiles\FlipCycleTileMedium.png (336x336)
\winrt_winphone8\Assets\Tiles\FlipCycleTileSmall.png (159x159)

\winrt_winphone8\Assets\Tiles\IconicTileMediumLarge.png (134x202)
\winrt_winphone8\Assets\Tiles\IconicTileSmall.png (71x110)




Build Release XAP for the ARM architecture (\winrt_winphone8\Bin\ARM\Release) and submit to Windows store or click on "device" button to run on the phone.


upload_2017-11-6_21-19-24.png


To be continued
 
Last edited:

Martin

Administrator
Staff member
Joined
Jun 19, 2017
Location
Germany
Awesome, thanks for that. This will be in the next release of Cerberus. :)

Out of curiosity, those apps will likely work with Windows 10 mobile as well, right?
 

muruba

Active Member
CX Code Contributor
3rd Party Module Dev
Patreon Silver
Joined
Jul 5, 2017
Interestingly enough Windows Store marks the built package as Windows phone 10 ready as well which is nice. I can't test at the moment, still waiting for my Win 10 phone from remote China lands!

upload_2017-11-6_21-43-28.png
 

magic

Active Member
3rd Party Tool Dev
Joined
Mar 5, 2018
I install the Microsoft Visual Studio Community 2015.
and change bin/config.winnt.txt to include proper MSBUILD_PATH

But on compile bouncyaliens example code for testing, I got this error..


"D:/Cerberus_20180302/bin/transcc_winnt" -target=Windows_RT_Game_(Phone) -config=Debug -run "D:/Cerberus_20180302/examples/mojo/mak/bouncyaliens/bouncyaliens.cxs"
TRANS cerberus compiler V2018-03-02
Parsing...
Semanting...
Translating...
Building...
TRANS FAILED: Error updating target project - can't find block begin tag 'CONTENT'. You may need to delete target .build directory.
Done.

Could someone please help. I try to target Window Phone
 
Top Bottom