Git Product home page Git Product logo

Comments (9)

akontsevich avatar akontsevich commented on May 31, 2024 1
# chmod +x /opt/appimagetool
# cd /opt/;
# /opt/appimagetool --appimage-extract
bash: /opt/appimagetool: No such file or directory
# ls
appimagetool

which is weird.

from appimage-builder.

azubieta avatar azubieta commented on May 31, 2024

Can you verify if wget is downloading the file properly, Github API limits may be affecting you.

from appimage-builder.

akontsevich avatar akontsevich commented on May 31, 2024

Can you verify if wget is downloading the file properly, Github API limits may be affecting you.

How? According to messages in console - downloaded fine:

2050K .......... ....                                       100% 69.0M=3.2s

2020-10-20 16:37:14 (655 KB/s) - '/opt/appimagetool' saved [2113576/2113576]

/bin/sh: 1: /opt/appimagetool: not found

from appimage-builder.

akontsevich avatar akontsevich commented on May 31, 2024

Seems same problem was here: AppImageCommunity/pkg2appimage#373
However solution is not clear to me.

from appimage-builder.

azubieta avatar azubieta commented on May 31, 2024

That's used to run the AppImage without extracting it. In the script you're running the AppImage is extracted before attempting to use it. This is done precisely to work around the docker issue. I've tried your script locally and it works as expected.

However solution is not clear to me.

They are removing the AppImage magic bytes, those are set (by desing) in a wrong position and some interpreters fail to understand it.

from appimage-builder.

akontsevich avatar akontsevich commented on May 31, 2024

Yeah, this hack helped: AppImageCommunity/pkg2appimage#373 (comment) - add it to Your doc here: install-in-a-docker-container, @azubieta :

RUN wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage -O /opt/appimagetool \
    && chmod +x /opt/appimagetool \
    && cd /opt/; sed -i 's|AI\x02|\x00\x00\x00|' appimagetool; /opt/appimagetool --appimage-extract \ 
    && mv /opt/squashfs-root /opt/appimagetool.AppDir \
    && ln -s /opt/appimagetool.AppDir/AppRun /usr/local/bin/appimagetool \
    && pip3 install appimage-builder

from appimage-builder.

akontsevich avatar akontsevich commented on May 31, 2024

I've tried your script locally and it works as expected.

It also works fine on our CI in docker, however suddenly stopped to work on my local machine: I can''t extract or run appimagetool directly - whatever. This magic sed helped locally.

from appimage-builder.

azubieta avatar azubieta commented on May 31, 2024

Done, thanks for the help!

from appimage-builder.

azubieta avatar azubieta commented on May 31, 2024

The magic bytes issue should be solved in AppImage v3. When ever that happens.

from appimage-builder.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.