Skip to content

Commit 78f9c01

Browse files
committed
[skip slack] dynamically patch tool/ directory to not depend on printV, because I don't want to debug windows.
1 parent e9de5d3 commit 78f9c01

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

.github/workflows/pr_test_build_windows.yml

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -139,6 +139,15 @@ jobs:
139139
Write-Host "=== Generating localization files ==="
140140
cp pubspec_base.yaml pubspec.yaml
141141
flutter pub get
142+
143+
Get-ChildItem .\tool\generate_localization.dart, .\tool\download_moneroc_prebuilds.dart -Recurse | ForEach {(Get-Content $_).Replace("printV", "print") | Set-Content $_}
144+
145+
$files = Get-ChildItem .\tool\generate_localization.dart, .\tool\download_moneroc_prebuilds.dart -Recurse
146+
foreach ($file in $files) {
147+
(Get-Content $file.PSPath) |
148+
Foreach-Object { $_ -replace "import 'package:cw_core/utils/print_verbose.dart';", "" } |
149+
Set-Content $file.PSPath
150+
}
142151
dart run .\tool\generate_localization.dart
143152
dart run .\tool\download_moneroc_prebuilds.dart
144153

0 commit comments

Comments
 (0)