File tree Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Expand file tree Collapse file tree 1 file changed +11
-12
lines changed Original file line number Diff line number Diff line change @@ -37,20 +37,19 @@ ${DART_CACHE_BINDIR}/dartaotruntime \
37
37
package:${APP_PACKAGE_NAME} /main.dart
38
38
39
39
# Build AOT image.
40
- echo " Building AOT image... "
41
- ${FLUTTER_CACHE_ENGINEDIR} /linux-${ARCH} -release/gen_snapshot \
42
- --deterministic \
43
- --snapshot_kind=app-aot-elf \
44
- --elf=.dart_tool/flutter_build/flutter-embedded-linux/app.so \
45
- --strip \
46
- .dart_tool/flutter_build/flutter-embedded-linux/app.dill
47
-
48
- cp .dart_tool/flutter_build/flutter-embedded-linux/app.so ${BUNDLE_DIR} /lib/libapp.so
49
- ls -al ${BUNDLE_DIR} /lib/libapp.so
40
+ if [ " X${FLUTTER_SWIFT_BUILD_CONFIG} " == " Xrelease" ]; then
41
+ echo " Building AOT image..."
42
+ ${FLUTTER_CACHE_ENGINEDIR} /linux-${ARCH} -release/gen_snapshot \
43
+ --deterministic \
44
+ --snapshot_kind=app-aot-elf \
45
+ --elf=.dart_tool/flutter_build/flutter-embedded-linux/app.so \
46
+ --strip \
47
+ .dart_tool/flutter_build/flutter-embedded-linux/app.dill
50
48
51
- # remove these artefacts to ensure we don't accidentally start in JIT mode
49
+ cp .dart_tool/flutter_build/flutter-embedded-linux/app.so ${BUNDLE_DIR} /lib/libapp.so
50
+ ls -al ${BUNDLE_DIR} /lib/libapp.so
52
51
53
- if [ " X ${FLUTTER_SWIFT_BUILD_CONFIG} " == " Xrelease " ] ; then
52
+ # remove these artefacts to ensure we don't accidentally start in JIT mode
54
53
echo " Removing JIT artifacts..."
55
54
rm -rf ${BUNDLE_DIR} /data/flutter_assets/kernel_blob.bin
56
55
rm -rf ${BUNDLE_DIR} /data/flutter_assets/isolate_snapshot_data
You can’t perform that action at this time.
0 commit comments