You are not logged in.

#1 2021-04-30 03:57:25

malacology
Member
Registered: 2021-04-24
Posts: 152

[Solved] AppImage PKGBUILD: This doesn't look like a squashfs image

When I use my PKGBUILD, I meet this problem. I can use ./raxmlGUI-2.0.3.AppImage --appimage-mount and ./raxmlGUI-2.0.3.AppImage --appimage-extract and the output is normal to easy to run. But when I try PKGBUILD and find ${pkgdir}/opt/raxmlgui/raxmlgui.AppImage with this problem. It's so strange, it should be same to the orginial file. Then I try to just move the orginial appimage file, I meet the same problem. The appimage download link is  https://github.com/AntonelliLab/raxmlGU … 3.AppImage
The reported error

░▒▓ /opt/appimages ▓▒░ ./raxmlGUI.AppImage                                                        ░▒▓ ✔  17:20:30 ▓▒░
This doesn't look like a squashfs image.

Cannot mount AppImage, please check your FUSE setup.
You might still be able to extract the contents of this AppImage 
if you run it with the --appimage-extract option. 
See https://github.com/AppImage/AppImageKit/wiki/FUSE 
for more information
open dir error: No such file or directory

and my PKGBUILD is

# Maintainer: Malacology <guoyizhang at malacology dot com>
# Contributor: Malacology <guoyizhang at malacology dot com>
pkgname=raxmlgui
pkgver=2.0.3
pkgrel=1
pkgdesc="A new user-friendly program integrating RAxML-NG and ModelTest-NG for cutting-edge phylogenetic analysis"
arch=('x86_64')
url="https://antonellilab.github.io/raxmlGUI"
license=('AGPL3')
source=("https://github.com/AntonelliLab/raxmlGUI/releases/download/v2.0.3/raxmlGUI-2.0.3.AppImage")
sha256sums=('SKIP')

prepare() {
  cd "${srcdir}"
  chmod +x raxmlGUI-${pkgver}.AppImage
  ./raxmlGUI-${pkgver}.AppImage --appimage-extract
}

package() {
    # Install AppImage
    install -Dm755 ~/.cache/yay/raxmlgui/raxmlGUI-${pkgver}.AppImage "${pkgdir}/opt/${pkgname}/raxmlgui.AppImage"

    # Symlink executable
    mkdir -p "${pkgdir}/usr/bin"
    ln -s "/opt/${pkgname}/raxmlgui.AppImage" "${pkgdir}/usr/bin/raxmlgui"

    install -Dm644 ~/.cache/yay/raxmlgui/raxmlgui.desktop "${pkgdir}/usr/share/applications/raxmlGUI.desktop"
}

Last edited by malacology (2021-05-06 15:03:08)


Don't speak to silly man. Keep Minimalism.

Offline

#2 2021-04-30 19:23:20

Lone_Wolf
Member
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,868

Re: [Solved] AppImage PKGBUILD: This doesn't look like a squashfs image

The source for this is available[1] and downloadable as a tarball [2] .
It looks like it uses electron , https://wiki.archlinux.org/index.php/El … guidelines should be helpful .

Incase you do want to stick to the AppImage : makepkg should be able to extract that type of archive .

source=("https://github.com/AntonelliLab/raxmlGUI/releases/download/v2.0.3/raxmlGUI-2.0.3.AppImage")
sha256sums=('SKIP')

Please don't use skip for something that should be static.


[1]https://github.com/AntonelliLab/raxmlGUI/
[2] https://github.com/AntonelliLab/raxmlGUI/releases


Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#3 2021-05-02 19:33:37

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [Solved] AppImage PKGBUILD: This doesn't look like a squashfs image

AppImage self-extracting binaries cannot be stripped, since the actual payload is in the part that 'strip' thinks is useless and discards. You MUST use options+=('!strip')

On the other hand, why would you use an appimage rather than installing it correctly? The point of appimage is to not depend on a package manager...


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#4 2021-05-05 07:11:32

malacology
Member
Registered: 2021-04-24
Posts: 152

Re: [Solved] AppImage PKGBUILD: This doesn't look like a squashfs image

eschwartz wrote:

AppImage self-extracting binaries cannot be stripped, since the actual payload is in the part that 'strip' thinks is useless and discards. You MUST use options+=('!strip')

On the other hand, why would you use an appimage rather than installing it correctly? The point of appimage is to not depend on a package manager...

Thanks, but there are still many appimage AUR


Don't speak to silly man. Keep Minimalism.

Offline

#5 2021-05-05 07:26:20

malacology
Member
Registered: 2021-04-24
Posts: 152

Re: [Solved] AppImage PKGBUILD: This doesn't look like a squashfs image

I try to build PKGBUILD without extract but still fail for the same reason

prepare() {
  cd "${srcdir}"
  chmod +x raxmlGUI-${pkgver}.AppImage

}

package() {

    mkdir "${pkgdir}/opt"
    mkdir "${pkgdir}/opt/appimages"
    mkdir "${pkgdir}/usr"
    mkdir "${pkgdir}/usr/share"
    mkdir "${pkgdir}/usr/share/applications"
    cd ${pkgdir}/opt/appimages
    wget https://github.com/AntonelliLab/raxmlGUI/releases/download/v${pkgver}/raxmlGUI-${pkgver}.AppImage
    install -Dm644 ~/.cache/yay/raxmlgui/raxmlgui.desktop "${pkgdir}/usr/share/applications/raxmlGUI.desktop"
}

Last edited by malacology (2021-05-05 07:26:48)


Don't speak to silly man. Keep Minimalism.

Offline

#6 2021-05-05 20:32:59

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [Solved] AppImage PKGBUILD: This doesn't look like a squashfs image

Nothing you just said makes any sense.


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#7 2021-05-05 21:41:52

loqs
Member
Registered: 2014-03-06
Posts: 17,196

Re: [Solved] AppImage PKGBUILD: This doesn't look like a squashfs image

As it has not been mentioned so far:

    install -Dm644 ~/.cache/yay/raxmlgui/raxmlgui.desktop "${pkgdir}/usr/share/applications/raxmlGUI.desktop"

Do not install to or from ~.  What it expands to if anything is undefined,  what will be there and what access you have is also undefined.
Add additional files you need to the PKGBUILD.

Offline

#8 2021-05-06 03:32:04

malacology
Member
Registered: 2021-04-24
Posts: 152

Re: [Solved] AppImage PKGBUILD: This doesn't look like a squashfs image

Okay, thanks for everyone, but unfortunately, your help doesn't work, it's time to delete the AUR

Last edited by malacology (2021-05-06 03:32:31)


Don't speak to silly man. Keep Minimalism.

Offline

#9 2021-05-06 11:44:31

eschwartz
Fellow
Registered: 2014-08-08
Posts: 4,097

Re: [Solved] AppImage PKGBUILD: This doesn't look like a squashfs image

malacology wrote:

Okay, thanks for everyone, but unfortunately, your help doesn't work,

You completely ignored my first message, which would have worked fine to resolve the stated issue.

We are here to help, but help is a two-way street and requires you to engage with the help and learn from it. We are NOT here to drive to your house, turn on your computer, and fix + build your packages for you.

malacology wrote:

it's time to delete the AUR

No.

(Is this some sort of attempt at a bizarre joke?)


Managing AUR repos The Right Way -- aurpublish (now a standalone tool)

Offline

#10 2021-05-06 15:02:07

malacology
Member
Registered: 2021-04-24
Posts: 152

Re: [Solved] AppImage PKGBUILD: This doesn't look like a squashfs image

eschwartz wrote:
malacology wrote:

Okay, thanks for everyone, but unfortunately, your help doesn't work,

You completely ignored my first message, which would have worked fine to resolve the stated issue.

We are here to help, but help is a two-way street and requires you to engage with the help and learn from it. We are NOT here to drive to your house, turn on your computer, and fix + build your packages for you.

malacology wrote:

it's time to delete the AUR

No.

(Is this some sort of attempt at a bizarre joke?)

Now I use the most stupid method to solve it. I use --appimage-extract and then move all files to

/usr/share/raxmlgui

, it works then.
Thanks for your push.


Don't speak to silly man. Keep Minimalism.

Offline

Board footer

Powered by FluxBB