Skip to content

[bug] linuxdeploy-i686.AppImage not exists on https://github.com/linuxdeploy/linuxdeploy/releases #4260

@liudonghua123

Description

@liudonghua123

Describe the bug

I tried to build and bundle a tauri app on linux use i686-unknown-linux-gnu target. But I find that the generated src-tauri\target\i686-unknown-linux-gnu\release\bundle\appimage\build_appimage.sh as belows. The script tried to download https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-i686.AppImage which is 404, and maybe the correct one is https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-i386.AppImage.

Maybe the correct location for this issue is on https://github.com/linuxdeploy/linuxdeploy.

#!/usr/bin/env bash
# Copyright 2019-2021 Tauri Programme within The Commons Conservancy
# SPDX-License-Identifier: Apache-2.0
# SPDX-License-Identifier: MIT

set -euxo pipefail

export ARCH=i686

mkdir -p "hoppscotch-app.AppDir"
cp -r ../appimage_deb/data/usr "hoppscotch-app.AppDir"

cd "hoppscotch-app.AppDir"

# Copy WebKit files.
find /usr/lib* -name WebKitNetworkProcess -exec mkdir -p "$(dirname '{}')" \; -exec cp --parents '{}' "." \; || true
find /usr/lib* -name WebKitWebProcess -exec mkdir -p "$(dirname '{}')" \; -exec cp --parents '{}' "." \; || true
find /usr/lib* -name libwebkit2gtkinjectedbundle.so -exec mkdir -p "$(dirname '{}')" \; -exec cp --parents '{}' "." \; || true

wget -q -4 -O AppRun https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-${ARCH} || wget -q -4 -O AppRun https://github.com/AppImage/AppImageKit/releases/download/12/AppRun-${ARCH}
chmod +x AppRun

cp "usr/share/icons/hicolor/512x512@2x/apps/hoppscotch-app.png" .DirIcon
ln -s "usr/share/icons/hicolor/512x512@2x/apps/hoppscotch-app.png" "hoppscotch-app.png"

ln -s "usr/share/applications/hoppscotch-app.desktop" "hoppscotch-app.desktop"

cd ..

wget -q -4 -O linuxdeploy-plugin-gtk.sh "https://raw.githubusercontent.com/tauri-apps/linuxdeploy-plugin-gtk/master/linuxdeploy-plugin-gtk.sh"
wget -q -4 -O linuxdeploy-${ARCH}.AppImage https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-${ARCH}.AppImage

chmod +x linuxdeploy-plugin-gtk.sh
chmod +x linuxdeploy-${ARCH}.AppImage

OUTPUT="hoppscotch-app_2.1.0_i386.AppImage" ./linuxdeploy-${ARCH}.AppImage --appimage-extract-and-run --appdir "hoppscotch-app.AppDir" --plugin gtk --output appimage

Reproduction

  1. install the tauri prerequisites, maybe like the followings, if you are on 32-bit ubuntu, the :i386 packages are not required.
    sudo apt update
    sudo add-apt-repository universe
    sudo dpkg --add-architecture i386 
    sudo apt update
    sudo apt upgrade
    # install both 32-bit and 64-bit prerequisites of tauri
    # libayatana-appindicator3-dev is the successor of libappindicator3-dev and 64-bit only
    # https://tauri.studio/v1/guides/getting-started/prerequisites/
    sudo apt install -y \
      libwebkit2gtk-4.0-dev \
      libwebkit2gtk-4.0-dev:i386 \
      build-essential \
      curl \
      wget \
      libssl-dev \
      libssl-dev:i386 \
      libgtk-3-dev \
      libgtk-3-dev:i386 \
      patchelf \
      librsvg2-dev \
      librsvg2-dev:i386 \
      libayatana-appindicator3-dev \
      gcc-multilib \
      g++-multilib
  2. execute the following commands, if you are on 32-bit ubuntu, the PKG_CONFIG_ is not needed.
    export PKG_CONFIG_PATH=/usr/lib/x86_64-linux-gnu/pkgconfig/:$PKG_CONFIG_PATH
    export PKG_CONFIG_SYSROOT_DIR=/
    yarn tauri build -t i686-unknown-linux-gnu -v
    

Expected behavior

No response

Platform and versions

liudonghua@DESKTOP-DELL:/mnt/d/code/rust/hoppscotch-app$ npm run tauri info

> tauri
> tauri "info"


Environment
  › OS: Ubuntu 22.04 X64
  › Node.js: 18.2.0
  › npm: 8.9.0
  › pnpm: 7.1.7
  › yarn: 1.22.18
  › rustup: 1.24.3
  › rustc: 1.61.0
  › cargo: 1.61.0
  › Rust toolchain: stable-x86_64-unknown-linux-gnu

Packages
  › @tauri-apps/cli [NPM]: 1.0.0-rc.13
  › @tauri-apps/api [NPM]: 1.0.0-rc.6
  › tauri [RUST]: 1.0.0-rc.14,
  › tauri-build [RUST]: 1.0.0-rc.12,
  › tao [RUST]: 0.9.1,
  › wry [RUST]: 0.17.0,

App
  › build-type: bundle
  › CSP: default-src blob: data: filesystem: ws: wss: http: https: tauri: 'unsafe-eval' 'unsafe-inline' 'self' img-src: 'self'
  › distDir: dist
  › devPath: dist

App directory structure
  ├─ .git
  ├─ .github
  ├─ dist
  ├─ hoppscotch
  ├─ node_modules
  └─ src-tauri
npm notice
npm notice New minor version of npm available! 8.9.0 -> 8.12.0
npm notice Changelog: https://github.com/npm/cli/releases/tag/v8.12.0
npm notice Run npm install -g npm@8.12.0 to update!
npm notice
liudonghua@DESKTOP-DELL:/mnt/d/code/rust/hoppscotch-app$

Stack trace

No response

Additional context

No response

Metadata

Metadata

Assignees

No one assigned

    Labels

    platform: Linuxpriority: 1 highHigh priority bugs/missing features or non-crashing regressionsscope: bundlerThe bundler used in our cli to make installerstype: bug

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions