tauri-apps / tauri

Build smaller, faster, and more secure desktop and mobile applications with a web frontend.
https://tauri.app
Apache License 2.0
84.12k stars 2.53k forks source link

[bug] rpm bundling is stuck on Ubuntu 22.04 #11478

Open izderadicka opened 5 days ago

izderadicka commented 5 days ago

Describe the bug

rpm bundling stucks

running cargo tauri build

Build is OK, deb bundling takes like 10-15 secs, but rpm bundling then runs forever (I stopped it after 10 minutes or so) - in processes I see cargo tauri build running and taking 100% of one CPU/core.

Reproduction

This happens for rqbit project on Ubuntu 22.04, node and npm installed via nvm, tauri dependencies installed as per docs

Expected behavior

No response

Full tauri info output

$ cargo tauri info

[✔] Environment
    - OS: Ubuntu 22.4.0 x86_64 (X64)
    ✔ webkit2gtk-4.1: 2.44.3
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.81.0 (eeb90cda1 2024-09-04)
    ✔ cargo: 1.81.0 (2dbb1af80 2024-08-20)
    ✔ rustup: 1.27.1 (54dd3d00f 2024-04-24)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (environment override by RUSTUP_TOOLCHAIN)
    - node: 20.18.0
    - yarn: 1.22.11
    - npm: 10.8.2

[-] Packages
    - tauri 🦀: 2.0.0
    - tauri-build 🦀: 2.0.0
    - wry 🦀: 0.44.1
    - tao 🦀: 0.30.2
    - tauri-cli 🦀: 2.0.3
    - @tauri-apps/api : 2.0.1 (outdated, latest: 2.0.3)
    - @tauri-apps/cli : 2.0.3 (outdated, latest: 2.0.4)

[-] Plugins
    - tauri-plugin-shell 🦀: 2.0.0
    - @tauri-apps/plugin-shell : 2.0.0 (outdated, latest: 2.0.1)

[-] App
    - build-type: bundle
    - CSP: unset
    - frontendDist: ../dist
    - devUrl: http://localhost:1420/
    - framework: React
    - bundler: Vite

Stack trace

No response

Additional context

No response

livwvil commented 4 days ago

I feced with the same issue. Ubuntu 22.04 Build also stucks inside docker container

FROM rust:bookworm

ENV NODE_VERSION 18
ENV PNPM_VERSION 9.5.0
ENV DEBIAN_FRONTEND noninteractive

WORKDIR /home

RUN set -uex; \
    apt-get update; \
    apt-get install -y ca-certificates \
      gnupg \
      libwebkit2gtk-4.1-dev \
      build-essential \
      curl \
      wget \
      file \
      libxdo-dev \
      libssl-dev \
      libayatana-appindicator3-dev \
      librsvg2-dev; \
    mkdir -p /etc/apt/keyrings; \
    curl -fsSL https://deb.nodesource.com/gpgkey/nodesource-repo.gpg.key \
     | gpg --dearmor -o /etc/apt/keyrings/nodesource.gpg; \
    echo "deb [signed-by=/etc/apt/keyrings/nodesource.gpg] https://deb.nodesource.com/node_${NODE_VERSION}.x nodistro main" \
     > /etc/apt/sources.list.d/nodesource.list; \
    apt-get -qy update; \
    apt-get -qy install nodejs; \
    rm -rf /tmp/* /var/tmp/*;

RUN npm i -g pnpm@${PNPM_VERSION}

RUN cargo install tauri-cli

Part of my tauri.conf.json

    "targets": ["deb", "rpm", "msi", "app"],
    "windows": {
      "webviewInstallMode": {
        "type": "offlineInstaller"
      },
      "wix": {
        "language": "ru-RU"
      }
    },
    "linux": {
      "deb": {
        "depends": []
      },
      "rpm": {
        "depends": []
      }
    }

I use resources and sidecars