AppImage / AppImage/AppImageKit

appimagetool mis-recognizes some pngs as i386 binaries

未关闭
#1,042 0 条评论 0 个 reaction 已指派 0 人 在 GitHub 查看
主要语言
没有语言数据
星标
9.4k
派生
588
PR 合并指标
PR 指标待抓取

描述

`appimagetool` mis-recognizes some pngs as i386 binaries.

To reproduce, run on a deb-based system:

```
wget "https://raw.githubusercontent.com/AppImage/pkg2appimage/master/pkg2appimage"
bash -ex pkg2appimage Bitwig-Studio

(...)
/home/me/Bitwig-Studio/Bitwig-Studio.AppDir/usr/lib/x86_64-linux-gnu/libavdevice.so.53.2.0 used for determining architecture x86_64
/home/me/Bitwig-Studio/Bitwig-Studio.AppDir/usr/lib/x86_64-linux-gnu/libavcodec.so.54.35.0 used for determining architecture x86_64
/home/me/Bitwig-Studio/Bitwig-Studio.AppDir/usr/lib/x86_64-linux-gnu/libasyncns.so.0.3.1 used for determining architecture x86_64
/home/me/Bitwig-Studio/Bitwig-Studio.AppDir/usr/bin/resources/ControllerScripts/akai/MPK49.png used for determining architecture i386
/home/me/Bitwig-Studio/Bitwig-Studio.AppDir/usr/bin/resources/ControllerScripts/reloop/KeyFadr.png used for determining architecture i386
/home/me/Bitwig-Studio/Bitwig-Studio.AppDir/usr/bin/resources/ControllerScripts/reloop/KeyPad.png used for determining architecture i386
/home/me/Bitwig-Studio/Bitwig-Studio.AppDir/usr/bin/resources/ControllerScripts/nativeinstruments/Komplete Kontrol/KompleteKontrolS.png used for determining architecture i386
/home/me/Bitwig-Studio/Bitwig-Studio.AppDir/usr/bin/resources/ControllerScripts/nativeinstruments/Komplete Kontrol/KompleteKontrolS49.png used for determining architecture i386
/home/me/Bitwig-Studio/Bitwig-Studio.AppDir/usr/bin/resources/ControllerScripts/nativeinstruments/Komplete Kontrol/KompleteKontrolS61.png used for determining architecture i386
/home/me/Bitwig-Studio/Bitwig-Studio.AppDir/usr/bin/resources/ControllerScripts/nativeinstruments/Komplete Kontrol/KompleteKontrolS25.png used for determining architecture i386
(...)
More than one architectures were found of the AppDir source directory "./Bitwig-Studio.AppDir/"
A valid architecture with the ARCH environmental variable should be provided
e.g. ARCH=x86_64 appimagetool ...
```

__Workaround:__ Use the [experimental Go-based `appimagetool` replacement](https://github.com/probonopd/go-appimage/blob/master/src/appimagetool/README.md) after having run the above; to complete the job:

```
wget -c https://github.com/$(wget -q https://github.com/probonopd/go-appimage/releases -O - | grep "appimagetool-.*-x86_64.AppImage" | head -n 1 | cut -d '"' -f 2)
chmod +x appimagetool-*.AppImage
VERSION=3.1.3 ./appimagetool-*.AppImage ./Bitwig-Studio/Bitwig-Studio.AppDir/
```

Likely I will not fix this in the "old" `appimagetool` but rather begin to move pkg2appimage over to the [new Go-based `appimagetool`](https://github.com/probonopd/go-appimage/blob/master/src/appimagetool/README.md).

![Bitwig-Studio](https://user-images.githubusercontent.com/2480569/79507316-0a1d6580-8027-11ea-9304-46a76f15dabf.png)

贡献指南

这个仓库没有索引到贡献指南

评估

这个 Issue 还没有评估数据。

把新 issue 发到你的邮箱

精选适合新手参与的 GitHub issue 摘要。