probonopd / go-appimage

Go implementation of AppImage tools
MIT License
818 stars 71 forks source link

appimagetool.AppImage: Syntax error: word unexpected #239

Open GaZaTu opened 1 year ago

GaZaTu commented 1 year ago

When using the armhf version of appimagetool in my armv7 run-on-arch-action (github actions) i get the following error: /usr/bin/appimagetool.AppImage: 1: /usr/bin/appimagetool.AppImage: Syntax error: word unexpected (expecting ")"). Any idea why that could be happening?

ps: i did not get the same error on my x86_64 dev machine (i did get other errors tho xd)

log:

Install the project...
-- Install configuration: "Release"
-- Installing: /project/build/_AppDir/usr/bin/emoji-picker
-- Installing: /project/build/_AppDir/usr/share/applications/x11-emoji-picker.desktop
-- Installing: /project/build/_AppDir/usr/share/icons/hicolor/72x72/apps/x11-emoji-picker.png
/usr/bin/appimagetool.AppImage: 1: /usr/bin/appimagetool.AppImage: Syntax error: word unexpected (expecting ")")
CMakeFiles/appimage_appimagetool.dir/build.make:57: recipe for target 'CMakeFiles/appimage_appimagetool' failed
make[3]: *** [CMakeFiles/appimage_appimagetool] Error 2
CMakeFiles/Makefile2:136: recipe for target 'CMakeFiles/appimage_appimagetool.dir/all' failed
make[2]: *** [CMakeFiles/appimage_appimagetool.dir/all] Error 2
CMakeFiles/Makefile2:143: recipe for target 'CMakeFiles/appimage_appimagetool.dir/rule' failed
make[1]: *** [CMakeFiles/appimage_appimagetool.dir/rule] Error 2
Makefile:212: recipe for target 'appimage_appimagetool' failed
make: *** [appimage_appimagetool] Error 2
Error: The process '/home/runner/work/_actions/uraimo/run-on-arch-action/v2/src/run-on-arch.sh' failed with exit code 2

cmake:

add_custom_target(appimage_appimagetool
  COMMAND mkdir -p ${CMAKE_BINARY_DIR}/_AppDir
  COMMAND cp ${PROJECT_SOURCE_DIR}/res/${PROJECT_NAME_FULL}.png ${CMAKE_BINARY_DIR}/_AppDir/${PROJECT_NAME_FULL}.png
  COMMAND make install DESTDIR=${CMAKE_BINARY_DIR}/_AppDir
  COMMAND appimagetool.AppImage -s deploy ${CMAKE_BINARY_DIR}/_AppDir/usr/share/applications/${PROJECT_NAME_FULL}.desktop
  COMMAND appimagetool.AppImage ${CMAKE_BINARY_DIR}/_AppDir
)

in case its relevant, i'm trying to package a Qt5 c++ app.