Titanium JIRA Archive
Titanium SDK/CLI (TIMOB)

[TIMOB-24402] Windows: Building module for specific platform/architecture

GitHub Issuen/a
TypeImprovement
PriorityMedium
StatusClosed
ResolutionFixed
Resolution Date2017-03-20T18:32:00.000+0000
Affected Version/sRelease 6.0.0
Fix Version/sRelease 6.1.0
ComponentsWindows
Labelsn/a
ReporterKota Iguchi
AssigneeKota Iguchi
Created2017-02-15T05:58:26.000+0000
Updated2017-03-24T17:41:26.000+0000

Description

When we build module, currently there's no way to limit target platform/architecture, like building "ARM only module" or "Windows 10 only module" etc. This may become a issue when developer have dependency libraries/binaries that is build against specific target. --So we might want to add new command line option to specify target platform and architecture for module build command-- Steps: 1. Create your module project
appc new -n test --id com.example.test

when prompted for the project type, select "Titanium Module"

2. Limit for "Windows 10 only" Edit **YOUR_MODULE_PROJECT/windows/timodule.xml**
  <windows>
    <manifest>
      <uses-sdk targetSdkVersion="10.0"/>
    </manifest>
  </windows>
3. Limit for"ARM only" Edit **YOUR_MODULE_PROJECT/windows/manifest** BEFORE
architectures: ARM x86
AFTER (Remove **ARM**)
architectures: x86
4. Build it
appc ti build -p windows --build-only
This should create module zip that targets Windows 10 only. You can see there is win10 folder and there's no phone and store folder. Also there should be no win10/ARM folder.

Comments

  1. Kota Iguchi 2017-02-16

    https://github.com/appcelerator/titanium_mobile_windows/pull/956
  2. Samir Mohammed 2017-03-24

    Verified fixed in 6.1.0.v20170323174407. Test and other information can be found at: https://github.com/appcelerator/titanium_mobile_windows/pull/956.

JSON Source