diff --git a/.github/workflows/pre_release.yml b/.github/workflows/pre_release.yml index dc4a2dc1b..e4f480041 100644 --- a/.github/workflows/pre_release.yml +++ b/.github/workflows/pre_release.yml @@ -38,13 +38,13 @@ jobs: sed -i "s/= 'pl'/= 'en'/" ./src/i18n/i18n-util.ts yarn build yarn webUI - - name: Build 4M firmware + - name: Build ESP32 4M firmware run: | platformio run -e ci - - name: Build S3 firmware + - name: Build ESP32-S3 16M firmware run: | platformio run -e ci_s3 - - name: Build 16M firmware + - name: Build ESP32 16M firmware run: | platformio run -e ci_16M - name: Create GitHub Release diff --git a/.github/workflows/tagged_release.yml b/.github/workflows/tagged_release.yml index 93eb8d5af..6602a717b 100644 --- a/.github/workflows/tagged_release.yml +++ b/.github/workflows/tagged_release.yml @@ -35,12 +35,15 @@ jobs: sed -i "s/= 'pl'/= 'en'/" ./src/i18n/i18n-util.ts yarn build yarn webUI - - name: Build 4M firmware + - name: Build ESP32 4M firmware run: | platformio run -e ci - - name: Build S3 firmware + - name: Build ESP32-S3 16M firmware run: | platformio run -e ci_s3 + - name: Build ESP32 16M firmware + run: | + platformio run -e ci_16M - name: Release uses: 'marvinpinto/action-automatic-releases@latest' with: diff --git a/.github/workflows/test_release.yml b/.github/workflows/test_release.yml index 8f1be2863..39db0da86 100644 --- a/.github/workflows/test_release.yml +++ b/.github/workflows/test_release.yml @@ -10,7 +10,6 @@ jobs: pre-release: name: 'Automatic test-release build' runs-on: ubuntu-latest - steps: - uses: actions/checkout@v4 - name: Enable Corepack @@ -22,18 +21,15 @@ jobs: uses: actions/setup-node@v4 with: node-version: '20.x' - - name: Get EMS-ESP source code and version id: build_info run: | version=`grep -E '^#define EMSESP_APP_VERSION' ./src/version.h | awk -F'"' '{print $2}'` echo "VERSION=$version" >> $GITHUB_OUTPUT - - name: Install PlatformIO run: | python -m pip install --upgrade pip pip install -U platformio - - name: Build WebUI run: | cd interface @@ -42,15 +38,15 @@ jobs: sed -i "s/= 'pl'/= 'en'/" ./src/i18n/i18n-util.ts yarn build yarn webUI - - - name: Build firmware + - name: Build ESP32 4M firmware run: | platformio run -e ci - - - name: Build S3 firmware + - name: Build ESP32-S3 16M firmware run: | platformio run -e ci_s3 - + - name: Build ESP32 16M firmware + run: | + platformio run -e ci_16M - name: Create a GH Release id: 'automatic_releases' uses: 'marvinpinto/action-automatic-releases@latest' diff --git a/interface/src/framework/system/UploadDownload.tsx b/interface/src/framework/system/UploadDownload.tsx index d8e7389b0..2c84c53a0 100644 --- a/interface/src/framework/system/UploadDownload.tsx +++ b/interface/src/framework/system/UploadDownload.tsx @@ -16,6 +16,7 @@ import { } from 'components'; import { useI18nContext } from 'i18n/i18n-react'; import type { APIcall } from 'project/types'; +import type { ESPSystemStatus } from 'types'; import RestartMonitor from './RestartMonitor'; @@ -81,9 +82,16 @@ const UploadDownload: FC = () => { 'EMS-ESP-' + v.replaceAll('.', '_') + '-' + - data.esp_platform.replaceAll('-', '_') + + getPlatform().replaceAll('-', '_') + '.bin'; + const getPlatform = () => { + if (data.flash_chip_size === 16384) { + return data.esp_platform + '-16M'; + } + return data.esp_platform; + }; + const { loading: isUploading, uploading: progress, @@ -194,7 +202,7 @@ const UploadDownload: FC = () => { {LL.VERSION_ON() + ' '} - {data.emsesp_version} ({data.esp_platform}) + {data.emsesp_version} ({getPlatform()}) {latestVersion && (