Skip to content

Commit 3c0a664

Browse files
authored
Merge pull request #323 from espressif/fix/online_installer_version_mark
Fix/minor bugs in online installer
2 parents ac6d187 + e2ce6a6 commit 3c0a664

File tree

3 files changed

+18
-6
lines changed

3 files changed

+18
-6
lines changed

Build-Installer.ps1

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -541,6 +541,14 @@ if (('offline' -eq $InstallerType) -or ('espressif-ide' -eq $InstallerType)){
541541
$IsccParameters += '/DJDKARTIFACTVERSION=' + $JdkArtifactVersion
542542
$IsccParameters += '/DESPRESSIFIDE=yes'
543543
$IsccParameters += '/DOFFLINE=no'
544+
545+
# Extract version from $env:VERSION (defined in CI job in format: "online-X.Y.Z")
546+
# Not filled version results in string "online-"
547+
$RawVersion = $env:VERSION
548+
if ($RawVersion -match '^online-(.+)$') {
549+
$CleanVersion = $Matches[1]
550+
$IsccParameters += '/DVERSION=' + $CleanVersion
551+
}
544552
} else {
545553
$IsccParameters += '/DOFFLINE=no'
546554
}

src/InnoSetup/Environment.iss

Lines changed: 6 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -539,8 +539,12 @@ begin
539539
540540
Log('Installing tools:' + CmdLine);
541541
DoCmdlineInstall(CustomMessage('InstallingEspIdfTools'), '', CmdLine);
542-
CmdLine := IDFToolsPyCmd + ' install esp-clang';
543-
DoCmdlineInstall(CustomMessage('InstallingEspIdfTools'), '', CmdLine);
542+
543+
{ Only install esp-clang if the selected version does not contain 'v5.0' }
544+
if (Pos('v5.0', IDFDownloadVersion) = 0) then begin
545+
CmdLine := IDFToolsPyCmd + ' install esp-clang';
546+
DoCmdlineInstall(CustomMessage('InstallingEspIdfTools'), '', CmdLine);
547+
end;
544548
545549
PythonVirtualEnvPath := ExpandConstant('{app}\python_env\') + GetIDFPythonEnvironmentVersion() + '_env';
546550
CmdLine := PythonExecutablePath + ' -m venv "' + PythonVirtualEnvPath + '"';

src/InnoSetup/IdfToolsSetup.iss

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
#ifdef VERSION
1515
#define MyAppVersion VERSION
1616
#else
17-
#define MyAppVersion "2.3.1"
17+
#define MyAppVersion "2.3.4"
1818
#endif
1919

2020
#define MyAppPublisher "Espressif Systems (Shanghai) Co. Ltd."
@@ -319,19 +319,19 @@ Name: "{#COMPONENT_TARGET_ESP32_C3}"; Description: {cm:ComponentTargetEsp32c3};
319319

320320
#ifndef DISABLE_TARGET_ESP32_C6
321321
Name: "{#COMPONENT_TARGET_ESP32_C6}"; Description: {cm:ComponentTargetEsp32c6}; Types: full; Flags: checkablealone
322-
Name: "{#COMPONENT_TARGET_ESP32_H}"; Description: {cm:ComponentTargetEsp32h}; Types: full; Flags: checkablealone
322+
Name: "{#COMPONENT_TARGET_ESP32_H}"; Description: {cm:ComponentTargetEsp32h}; Types: full;
323323
Name: "{#COMPONENT_TARGET_ESP32_H2}"; Description: {cm:ComponentTargetEsp32h2}; Types: custom; Flags: checkablealone
324324
#endif
325325

326-
Name: "{#COMPONENT_TARGET_ESP32_S}"; Description: {cm:ComponentTargetEsp32s}; Types: full; Flags: checkablealone
326+
Name: "{#COMPONENT_TARGET_ESP32_S}"; Description: {cm:ComponentTargetEsp32s}; Types: full;
327327
Name: "{#COMPONENT_TARGET_ESP32_S2}"; Description: {cm:ComponentTargetEsp32s2}; Types: full; Flags: checkablealone
328328

329329
#ifndef DISABLE_TARGET_ESP32_S3
330330
Name: "{#COMPONENT_TARGET_ESP32_S3}"; Description: {cm:ComponentTargetEsp32s3}; Types: full; Flags: checkablealone
331331
#endif
332332

333333
#ifndef DISABLE_TARGET_ESP32_P4
334-
Name: "{#COMPONENT_TARGET_ESP32_P}"; Description: {cm:ComponentTargetEsp32p}; Types: full; Flags: checkablealone
334+
Name: "{#COMPONENT_TARGET_ESP32_P}"; Description: {cm:ComponentTargetEsp32p}; Types: full;
335335

336336
Name: "{#COMPONENT_TARGET_ESP32_P4}"; Description: {cm:ComponentTargetEsp32p4}; Types: full; Flags: checkablealone
337337
#endif

0 commit comments

Comments
 (0)