build error for arm64 when selected change app icon #47

Closed
opened 2025-03-27 23:16:15 +08:00 by sonnyyin · 2 comments
sonnyyin commented 2025-03-27 23:16:15 +08:00 (Migrated from github.com)

I changed the code in generator-linux.yml when build with arm64:

Image

Image

but there is a error when I changed the app icon,if i set icon image in web,the Action build failed. if i don't change ico,the Action build succeed. like this:
(failed if I chang icon in web)
Image

Image

i think this is a bug in arm64 compile,the problem maybe at here:

Image

Can you take a time for fix it?

I changed the code in generator-linux.yml when build with arm64: ![Image](https://github.com/user-attachments/assets/9849ab24-9c35-4ded-bfac-ceade16b30b2) ![Image](https://github.com/user-attachments/assets/86275465-1ee6-4ca7-b763-3188a47ddb0f) but there is a error when I changed the app icon,if i set icon image in web,the Action build failed. if i don't change ico,the Action build succeed. like this: (failed if I chang icon in web) ![Image](https://github.com/user-attachments/assets/10380eab-3311-4f42-b08e-95c1a712cc39) ![Image](https://github.com/user-attachments/assets/bd6bbcc1-439c-4e54-8bbd-0ae6fe3280c2) i think this is a bug in arm64 compile,the problem maybe at here: ![Image](https://github.com/user-attachments/assets/3f9fade7-1fb7-4631-ba81-bb1838f892da) Can you take a time for fix it?
bryangerlach commented 2025-03-28 01:41:27 +08:00 (Migrated from github.com)

You are right about where the error is. It looks like flutter is installed differently for arm64. Try changing these 3 lines:

pushd ./flutter
flutter pub get
dart run flutter_launcher_icons

to this:

if [[ "${{ matrix.job.arch }}" == "aarch64" ]]; then
  pushd /.flutter-elinux
  bin/flutter-elinux pub get
  bin/dart run flutter_launcher_icons
else
  pushd ./flutter
  flutter pub get
  dart run flutter_launcher_icons
fi

I'm not sure if that will work, so send me the error if it doesn't work.

You are right about where the error is. It looks like flutter is installed differently for arm64. Try changing these 3 lines: ``` pushd ./flutter flutter pub get dart run flutter_launcher_icons ``` to this: ``` if [[ "${{ matrix.job.arch }}" == "aarch64" ]]; then pushd /.flutter-elinux bin/flutter-elinux pub get bin/dart run flutter_launcher_icons else pushd ./flutter flutter pub get dart run flutter_launcher_icons fi ``` I'm not sure if that will work, so send me the error if it doesn't work.
sonnyyin commented 2025-03-28 17:08:13 +08:00 (Migrated from github.com)

The cause of the problem has been identified, which is due to the path issue of the embedded version of Flutter. The bin path of the embedded Flutter has not been added to the PATH environment variable, resulting in the inability to locate flutter.
The log file has already indicated a path issue, but I overlooked it at the time.

Image

add:
export PATH="/opt/flutter-elinux/flutter/bin:$PATH"
pushd ./flutter
flutter pub get
dart run flutter_launcher_icons

that‘s ok for arm64 compile.

Thanks!

The cause of the problem has been identified, which is due to the path issue of the embedded version of Flutter. The bin path of the embedded Flutter has not been added to the PATH environment variable, resulting in the inability to locate flutter. The log file has already indicated a path issue, but I overlooked it at the time. ![Image](https://github.com/user-attachments/assets/435de0bb-32e1-407a-bd0d-85f749308967) add: export PATH="/opt/flutter-elinux/flutter/bin:$PATH" pushd ./flutter flutter pub get dart run flutter_launcher_icons that‘s ok for arm64 compile. Thanks!
Sign in to join this conversation.
No Label
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: 3344/rdgen#47