Build libraries for Android, Apple & Linux platforms on bootstrap recipe

Fix filepath used on Linux & Windows script
This commit is contained in:
Erdem Yerebasmaz
2024-05-08 13:04:53 +03:00
parent 37e97ebbec
commit ad00b32bb5
2 changed files with 2 additions and 1 deletions

View File

@@ -13,6 +13,7 @@ bootstrap frb='true':
just init
just gen
just build
melos build
just link
just check

View File

@@ -45,7 +45,7 @@ Future<void> mainImpl(List<String> args) async {
await run('rustup target add $triple');
await run('${target.compiler} --target $triple $profileArg', args: compilerOpts);
await run('mkdir -p $flutterIdentifier');
await run('cp ../target/$triple/$profile/${target.libName} $flutterIdentifier/');
await run('cp ../../../target/$triple/$profile/${target.libName} $flutterIdentifier/');
}
final hasLinux = targets.any((target) => !target.isWindows);