Results 1 to 4 of 4

Thread: Build both desktop and phone for universal app?

  1. #1
    Sencha User
    Join Date
    Nov 2010
    Location
    Canton, GA, USA
    Posts
    155

    Default Build both desktop and phone for universal app?

    I'm not new to ExtJS but I haven't build a universal app before so I'm tinkering with doing so using the recent 7-EA release. I used the "universalmodern" template so the resulting package.json has scripts entries for "build:desktop" and "build:phone" and the index.html has logic to set Ext.manifest to point to generatedFiles/desktop or generatedFiles/phone.

    However, when I run either of those builds, build/production/MyApp ony has the one version of the app. I expected there to be a way to build both and deploy them together.

    What am I missing? Do I have to combine them myself?
    Last edited by pauldugas; 1 Aug 2019 at 3:19 PM. Reason: typo

  2. #2
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    542

    Default

    Hello Paul,

    No there is no need to combine it by yourself, because it is already combined. Based on the desktop or phone it will switch to the corresponding build.
    You can build the universal app like any other app created on extjs or by command "sencha app build".


    For more details please see the below documentation.
    https://docs.sencha.com/extjs/6.0.0/...d_smart_phones


    Regards,
    Kumar
    Sencha Support.

  3. #3
    Sencha User
    Join Date
    Nov 2010
    Location
    Canton, GA, USA
    Posts
    155

    Default

    Got it. What are the "dev:*" and "build:*" scripts in package.json for then? I was running those, not the sencha tool.

  4. #4
    Ext Support Team
    Join Date
    Jan 2018
    Posts
    542

    Default

    Hello Paul,

    Thank you for contacting Sencha Support!

    I request you to provide some more details along with the package.json file to assist you in a better way.

    Regards,
    Kumar
    Sencha Support.

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •