flutter.buildFlutterApplication: Fix Exec format error
This does NOT fix the cross compilation of flutter applications, it only fixes one issue which should allow for better error messages
This commit is contained in:
@@ -9,8 +9,7 @@
|
||||
glib,
|
||||
flutter,
|
||||
pkg-config,
|
||||
jq,
|
||||
yq,
|
||||
buildPackages,
|
||||
}:
|
||||
|
||||
# absolutely no mac support for now
|
||||
@@ -112,9 +111,9 @@ let
|
||||
|
||||
extraPackageConfigSetup = ''
|
||||
# https://github.com/flutter/flutter/blob/3.13.8/packages/flutter_tools/lib/src/dart/pub.dart#L755
|
||||
if [ "$('${yq}/bin/yq' '.flutter.generate // false' pubspec.yaml)" = "true" ]; then
|
||||
if [ "$('${lib.getExe buildPackages.yq}' '.flutter.generate // false' pubspec.yaml)" = "true" ]; then
|
||||
export TEMP_PACKAGES=$(mktemp)
|
||||
'${jq}/bin/jq' '.packages |= . + [{
|
||||
'${lib.getExe buildPackages.jq}' '.packages |= . + [{
|
||||
name: "flutter_gen",
|
||||
rootUri: "flutter_gen",
|
||||
languageVersion: "2.12",
|
||||
|
||||
Reference in New Issue
Block a user