Skip to content

Commit e3cbdf3

Browse files
committed
Fix hardcoded C: drive assumption in mwebd Windows build script
1 parent b89d1af commit e3cbdf3

1 file changed

Lines changed: 1 addition & 9 deletions

File tree

tool/build_standalone_mwebd_windows.dart

Lines changed: 1 addition & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,7 @@
11
import 'dart:io';
22

33
Future<void> main() async {
4-
final projectToolDir = File(() {
5-
String path = Platform.script.path;
6-
if (Platform.isWindows) {
7-
while (!path.startsWith("C:")) {
8-
path = path.substring(1);
9-
}
10-
}
11-
return path;
12-
}()).parent;
4+
final projectToolDir = File(Platform.script.toFilePath()).parent;
135

146
// setup temp build dir
157
final tempBuildDir = Directory(

0 commit comments

Comments
 (0)