Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[bug] Raspbery pi - error running appimage.sh #5472

Closed
Mair opened this issue Oct 24, 2022 · 6 comments
Closed

[bug] Raspbery pi - error running appimage.sh #5472

Mair opened this issue Oct 24, 2022 · 6 comments
Labels
platform: Linux scope: cli.rs The tauri-cli rust crate status: needs triage This issue needs to triage, applied to new issues status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes type: bug

Comments

@Mair
Copy link

Mair commented Oct 24, 2022

Describe the bug

when running cargo tauri build --verbose on a raspberry pi. I get the following error

Error [tauri_cli] failed to bundle project: error running appimage.sh: error running appimage.sh: 
`failed to run /home/pi/spike/tauri-pcap-spike/src-tauri/target/release/bundle/appimage/build_appimage.sh`

looking into the error I noticed that build_appimage.sh is trying to run this command

( cd "/home/pi/.cache/tauri" && ( wget -q -4 -N 
https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-${ARCH} || wget -q -4 -N 
https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-${ARCH} ) )

however, when the script tries to run it for my arch type it equates to
https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-armv7 and
https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-armv7
These are dead links that produce 404's.

Reproduction

  1. grab a raspberry pi
  2. follow the quick start guide

Expected behavior

.deb file should be successfully created

Platform and versions

Environment
  › OS: Raspberry Pi OS 11 X32
  › Node.js: 14.20.1
  › npm: 6.14.17
  › pnpm: Not installed!
  › yarn: 1.22.19
  › rustup: 1.25.1
  › rustc: 1.64.0
  › cargo: 1.64.0
  › Rust toolchain: stable-armv7-unknown-linux-gnueabihf 

Packages
  › @tauri-apps/cli [NPM]: 1.1.1
  › @tauri-apps/api [NPM]: 1.1.0
  › tauri [RUST]: 1.1.1,
  › tauri-build [RUST]: 1.1.1,
  › tao [RUST]: 0.14.0,
  › wry [RUST]: 0.21.1,

App
  › build-type: bundle
  › CSP: unset
  › distDir: ../dist
  › devPath: http://localhost:5173/
  › framework: React

App directory structure
  ├─ public
  ├─ .vscode
  ├─ tauri-pcap-spike.AppDir
  ├─ dist
  ├─ src-tauri
  ├─ node_modules
  └─ src

Stack trace

...
...
 Bundling [tauri_bundler::bundle::linux::appimage] tauri-pcap-spike_0.1.0_arm.AppImage (/home/pi/spike/tauri-pcap-spike/src-tauri/target/release/bundle/appimage/tauri-pcap-spike_0.1.0_arm.AppImage)
     Running [tauri_bundler::bundle::common] Command `/home/pi/spike/tauri-pcap-spike/src-tauri/target/release/bundle/appimage/build_appimage.sh `
+ export ARCH=armv7
+ ARCH=armv7
+ APPIMAGE_BUNDLE_XDG_OPEN=0
+ APPIMAGE_BUNDLE_GSTREAMER=0
+ TRAY_LIBRARY_PATH=0
+ '[' armv7 == i686 ']'
+ linuxdeploy_arch=armv7
+ mkdir -p tauri-pcap-spike.AppDir
+ cp -r ../appimage_deb/data/usr tauri-pcap-spike.AppDir
+ cd tauri-pcap-spike.AppDir
+ mkdir -p usr/bin
+ mkdir -p usr/lib
+ [[ 0 != \0 ]]
+ [[ 0 != \0 ]]
++ dirname '{}'
+ find /usr/lib /usr/libexec -name WebKitNetworkProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
++ dirname '{}'
+ find /usr/lib /usr/libexec -name WebKitWebProcess -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
++ dirname '{}'
+ find /usr/lib /usr/libexec -name libwebkit2gtkinjectedbundle.so -exec mkdir -p . ';' -exec cp --parents '{}' . ';'
+ cd /home/pi/.cache/tauri
+ wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-armv7
+ wget -q -4 -N https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-armv7
       Error [tauri_cli] failed to bundle project: error running appimage.sh: error running appimage.sh: `failed to run /home/pi/spike/tauri-pcap-spike/src-tauri/target/release/bundle/appimage/build_appimage.sh`

Additional context

armv7 32 bit

@Mair Mair added status: needs triage This issue needs to triage, applied to new issues type: bug labels Oct 24, 2022
@amrbashir amrbashir added scope: cli.rs The tauri-cli rust crate platform: Linux labels Oct 24, 2022
@amrbashir
Copy link
Member

This should be an easy fix for the appimage links, we just need to change armv7 to armhf but linuxdeploy only has i386 and x86_64, cc @FabianLars

@FabianLars
Copy link
Member

Basically an extension of #4174 which means we're still waiting for linuxdeploy/linuxdeploy#175. So i guess we have to look into it ourselves after all

@amrbashir amrbashir added the status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes label Oct 24, 2022
@JimVanEeden
Copy link

I'm running into the exact same issue now. Any suggestions for a workaround?

@michibertel
Copy link

If you only want a .deb file, it already works.
For an appimage, I have no suggestions.
https://discord.com/channels/616186924390023171/1051862193030840330/1051862193030840330

@Mair
Copy link
Author

Mair commented Jan 5, 2023

@michibertel good to know 👍

@FabianLars
Copy link
Member

#4174 (comment)

Building and running appimages on arm now works.
Cross compiling from x86_64 to arm however does not and is tracked here linuxdeploy/linuxdeploy#258. For now you'll have to build on arm devices or inside something like a qemu vm (qemu can emulate different architectures).

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux scope: cli.rs The tauri-cli rust crate status: needs triage This issue needs to triage, applied to new issues status: upstream This issue is blocked by upstream dependencies and we need to wait or contribute upstream fixes type: bug
Projects
Status: 📬Proposal
Development

No branches or pull requests

5 participants