From 78f9c012c25bbeb422b44c4e3603daa322a42a1f Mon Sep 17 00:00:00 2001 From: Czarek Nakamoto Date: Wed, 8 Jan 2025 12:30:09 +0100 Subject: [PATCH] [skip slack] dynamically patch tool/ directory to not depend on printV, because I don't want to debug windows. --- .github/workflows/pr_test_build_windows.yml | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/.github/workflows/pr_test_build_windows.yml b/.github/workflows/pr_test_build_windows.yml index 521e91bc77..0b2fcc7ecd 100644 --- a/.github/workflows/pr_test_build_windows.yml +++ b/.github/workflows/pr_test_build_windows.yml @@ -139,6 +139,15 @@ jobs: Write-Host "=== Generating localization files ===" cp pubspec_base.yaml pubspec.yaml flutter pub get + + Get-ChildItem .\tool\generate_localization.dart, .\tool\download_moneroc_prebuilds.dart -Recurse | ForEach {(Get-Content $_).Replace("printV", "print") | Set-Content $_} + + $files = Get-ChildItem .\tool\generate_localization.dart, .\tool\download_moneroc_prebuilds.dart -Recurse + foreach ($file in $files) { + (Get-Content $file.PSPath) | + Foreach-Object { $_ -replace "import 'package:cw_core/utils/print_verbose.dart';", "" } | + Set-Content $file.PSPath + } dart run .\tool\generate_localization.dart dart run .\tool\download_moneroc_prebuilds.dart