From 8b523739d916e744be85164f0f3cb12032934dbf Mon Sep 17 00:00:00 2001 From: Julian Date: Mon, 27 May 2024 15:18:28 -0600 Subject: [PATCH] call correct dart exe on windows --- scripts/app_config/shared/asset_generators.sh | 17 +++++++++++++---- 1 file changed, 13 insertions(+), 4 deletions(-) diff --git a/scripts/app_config/shared/asset_generators.sh b/scripts/app_config/shared/asset_generators.sh index a0150866a..50d035a65 100755 --- a/scripts/app_config/shared/asset_generators.sh +++ b/scripts/app_config/shared/asset_generators.sh @@ -11,8 +11,17 @@ APP_BUILD_PLATFORM=$1 # run icon and image generators pushd "${APP_PROJECT_ROOT_DIR}" -flutter pub get -#native splash screen not used -#dart run flutter_native_splash:create -dart run flutter_launcher_icons -f "${APP_PROJECT_ROOT_DIR}/scripts/app_config/platforms/${APP_BUILD_PLATFORM}/flutter_launcher_icons.yaml" +YAML_FILE="${APP_PROJECT_ROOT_DIR}/scripts/app_config/platforms/${APP_BUILD_PLATFORM}/flutter_launcher_icons.yaml" +if [[ "${APP_BUILD_PLATFORM}" = 'windows' ]]; then + cmd.exe /c flutter pub get + WIN_PATH_VERSION=$(wslpath -w ${YAML_FILE}) + cmd.exe /c dart run flutter_launcher_icons -f "${WIN_PATH_VERSION}" + #native splash screen not used + #cmd.exe /c dart run flutter_native_splash:create +else + flutter pub get + dart run flutter_launcher_icons -f "${YAML_FILE}" + #native splash screen not used + #dart run flutter_native_splash:create +fi popd \ No newline at end of file