Skip to content

Commit 17dbe5d

Browse files
[[ Bug 14422 ]] Having an empty "min_os_version" in the deploy param array does not change the binray min architecture
1 parent d27a1f9 commit 17dbe5d

File tree

2 files changed

+7
-9
lines changed

2 files changed

+7
-9
lines changed

engine/src/deploy.cpp

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -127,12 +127,6 @@ static Exec_stat MCDeployPushMinOSVersion(MCDeployParameters& p_params, MCDeploy
127127
t_major = t_minor = t_inc = 0;
128128
sscanf(p_vers_string, "%d.%d.%d", &t_major, &t_minor, &t_inc);
129129

130-
131-
// SN-2015-02-12L: [[ Bug 14422 ]] We do not push anything if the minimum
132-
// version less than 7.0
133-
if (t_major < 7)
134-
return ES_NORMAL;
135-
136130
if (!MCMemoryResizeArray(p_params . min_os_version_count + 1, p_params . min_os_versions, p_params . min_os_version_count))
137131
return ES_ERROR;
138132

@@ -596,6 +590,7 @@ Exec_stat MCIdeDeploy::exec(MCExecPoint& ep)
596590
// it encodes the version against the 'Unknown' architecture which is interpreted
597591
// by the deploy command to mean all architectures. Otherwise, the keys in the
598592
// array are assumed to be architecture names and each is pushed on the array.
593+
// If the 'min_os_version' is empty, then no change is brought to the binaries.
599594
// If multiple entries are present, then the 'unknown' mapping is used for any
600595
// architecture not explicitly specified. The current architecture strings that are
601596
// known are:
@@ -632,7 +627,7 @@ Exec_stat MCIdeDeploy::exec(MCExecPoint& ep)
632627
t_stat = MCDeployPushMinOSVersion(t_params, t_arch, ep3 . getcstring());
633628
}
634629
}
635-
else
630+
else if (!ep2.isempty())
636631
t_stat = MCDeployPushMinOSVersion(t_params, kMCDeployArchitecture_Unknown, ep2 . getcstring());
637632
}
638633
}

ide-support/revsaveasiosstandalone.livecodescript

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -473,8 +473,11 @@ private command revSaveAsMobileStandaloneMain pStack, pAppBundle, pTarget
473473
-- Output file to create
474474
put pAppBundle & slash & tName into tDeploy["output"]
475475

476-
put revGetMinimumOSByArch(tSettings["ios,minimum os"]) into tDeploy["min_os_version"]
477-
476+
-- SN-2015-02-12: [[ Bug 14422 ]] Only set a minimum version to the binaries
477+
-- if the minimum version >= 7.0
478+
if tSettings["ios,minimum version"] >= 7.0 then
479+
put revGetMinimumOSByArch(tSettings["ios,minimum os"]) into tDeploy["min_os_version"]
480+
end if
478481
-- Splash to use (if non-commercial)
479482
if line 3 of the revLicenseInfo is among the words of "Educational Personal" then
480483
-- MM-2011-09-28: Descend through possible spash settings until a splash is found.

0 commit comments

Comments
 (0)