appimage-builder icon indicating copy to clipboard operation
appimage-builder copied to clipboard

error near unexpected token `newline', appimage-builder line 8

Open slspencer opened this issue 2 years ago • 3 comments

We've been using appimage-build for some time, and are quite happy with it. But today we're getting the following error, using today's 1.1.0 release:

Run #sudo wget -q https://github.com/AppImageCrafters/appimage-builder/releases/latest -O /usr/local/bin/appimage-builder
  #sudo wget -q https://github.com/AppImageCrafters/appimage-builder/releases/latest -O /usr/local/bin/appimage-builder
  sudo wget -q https://github.com/AppImageCrafters/appimage-builder/releases/latest -O /usr/local/bin/appimage-builder
  sudo chmod +x /usr/local/bin/appimage-builder
  appimage-builder --recipe dist/appimage-builder-recipe.yml --log DEBUG --generate --skip-test
  shell: /usr/bin/bash -e {0}
  env:
    QT_SELECT: 5
    QT_VERSION: 5.15.[2](https://github.com/FashionFreedom/Seamly2D/runs/7275694027?check_suite_focus=true#step:5:2)
    UPLOAD_URL: https://uploads.github.com/repos/FashionFreedom/Seamly2D/releases/7166[3](https://github.com/FashionFreedom/Seamly2D/runs/7275694027?check_suite_focus=true#step:5:3)20[5](https://github.com/FashionFreedom/Seamly2D/runs/7275694027?check_suite_focus=true#step:5:5)/assets{?name,label}
  
/usr/local/bin/appimage-builder: line [8](https://github.com/FashionFreedom/Seamly2D/runs/7275694027?check_suite_focus=true#step:5:8): syntax error near unexpected token `newline'
/usr/local/bin/appimage-builder: line 8: `<!DOCTYPE html>'
Error: Process completed with exit code 2.

slspencer avatar Jul 11 '22 03:07 slspencer

I not sure if https://github.com/AppImageCrafters/appimage-builder/releases/latest should take you to the binary.

I guess that your download link is wrong, please use https://github.com/AppImageCrafters/appimage-builder/releases/download/v1.1.0/appimage-builder-1.1.0-x86_64.AppImage

azubieta avatar Jul 11 '22 03:07 azubieta

Thanks, you're correct. But we're again seeing the "can't find AppDir message" that prompted us to update to today's build. Trying to find out why this started happening.

GenerateMethodError(appimagebuilder.modules.generate.command_generate.GenerateMethodError: 
Unable to find an AppDir, this is required to create a recipe.

slspencer avatar Jul 11 '22 06:07 slspencer

This error is occurs when you try to create a recipe using appimage-builder --generate and there is no AppDir for it to use. Generating the recipe is only required once, so if you already have working recipe you don't need to use the --generate.

azubieta avatar Jul 11 '22 15:07 azubieta