release: update for flutter 3.13.0 (#203)

Signed-off-by: Hidenori Matsubayashi <[email protected]>
This commit is contained in:
Hidenori Matsubayashi
2023-08-17 00:20:27 +00:00
committed by GitHub
parent a957327203
commit 4d747457cd
11 changed files with 73 additions and 26 deletions
+3 -3
View File
@@ -64,7 +64,7 @@ abstract class ELinuxAssetBundle extends Target {
throw MissingDefineException(kBuildMode, name);
}
final BuildMode buildMode =
getBuildModeForName(environment.defines[kBuildMode]!);
BuildMode.fromCliName(environment.defines[kBuildMode]!);
final Directory outputDirectory = environment.outputDir
.childDirectory('flutter_assets')
..createSync(recursive: true);
@@ -275,7 +275,7 @@ class NativeBundle {
// libflutter_elinux_*.so in profile mode is under the debug mode's directory.
final Directory embedderDir = _getEngineArtifactsDirectory(
buildInfo!.targetArch,
buildMode.isRelease ? buildMode : BuildMode.fromName('debug'));
buildMode.isRelease ? buildMode : BuildMode.fromCliName('debug'));
final File embedder =
embedderDir.childFile(buildInfo!.targetBackendType == 'gbm'
? 'libflutter_elinux_gbm.so'
@@ -433,7 +433,7 @@ class NativeBundle {
String _getCurrentHostPlatformArchName() {
final HostPlatform hostPlatform = getCurrentHostPlatform();
return getNameForHostPlatformArch(hostPlatform);
return hostPlatform.platformName;
}
/// Converts [targetArch] to an arch name that corresponds to the `BUILD_ARCH`