Comments (9)
# 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.
Can you verify if wget is downloading the file properly, Github API limits may be affecting you.
from appimage-builder.
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.
Seems same problem was here: AppImageCommunity/pkg2appimage#373
However solution is not clear to me.
from appimage-builder.
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.
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.
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.
Done, thanks for the help!
from appimage-builder.
The magic bytes issue should be solved in AppImage v3. When ever that happens.
from appimage-builder.
Related Issues (20)
- appimage-builder wants to be run as root because of `pacman -Fy` HOT 22
- deploying package with apt throws an error in version.py HOT 3
- deploying via pacman require root permissions HOT 1
- Standardize on zstd compression HOT 2
- IndexError: list index out of range
- Debug "cannot open shared object file: no such file or directory"
- When AppDir contains a space character, apt package installation fails
- appimage-builder InvalidVersion(f"Invalid version: '{version}'") HOT 7
- How to run gdk-pixbuf-query-loaders --update-cache HOT 2
- Can't select my binary during recipe generation
- E: No packages found
- Generated appimage produces a segmentation fault
- Built images are not respecting XDG spec when it comes to default XDG_DATA_DIRS issue
- FilePackageResolver dpkg-query -S | OSError: [Errno 7] Argument list too long: '/bin/sh'
- strace, dpkg-query, and incorrect library paths
- Appimage creation fails for Retroarch - Arch Linux
- Error running on github workflow HOT 5
- exited with code 127 HOT 2
- Verify release executable file
- Can't execute binaries with sudo inside AppImage - "command not found"
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from appimage-builder.