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] Tauri builds but the app can't be installed #9558

Open
ColineLedez opened this issue Apr 24, 2024 · 5 comments
Open

[bug] Tauri builds but the app can't be installed #9558

ColineLedez opened this issue Apr 24, 2024 · 5 comments
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug

Comments

@ColineLedez
Copy link

Describe the bug

After doing a npm run tauri build, I try to install the .deb file and it doesn't work.
I've tried to build with the create-tauri-app project, without modifying anything except the identifier, and I've got the same error when trying to install the .deb file :

dpkg-deb: error: file '/home/cledez@celad2.celad.com/Documents/tuto/test_tauri/src-tauri/target/release/bundle/deb/test-tauri_0.0.0_amd64.deb' is corrupt - bad archive header magic
dpkg: error processing archive /home/cledez@celad2.celad.com/Documents/tuto/test_tauri/src-tauri/target/release/bundle/deb/test-tauri_0.0.0_amd64.deb (--install):
 dpkg-deb --control subprocess returned error exit status 2
Errors were encountered while processing:
 /home/cledez@celad2.celad.com/Documents/tuto/test_tauri/src-tauri/target/release/bundle/deb/test-tauri_0.0.0_amd64.deb

For my project, executing the AppImage reads "files not found", but with the create-tauri-app example, the AppImage is working.

Reproduction

sh <(curl https://create.tauri.app/sh)

✔ Project name · test_tauri
✔ Choose which language to use for your frontend · TypeScript / JavaScript - (pnpm, yarn, npm, bun)
✔ Choose your package manager · npm
✔ Choose your UI template · Angular - (https://angular.dev/)

npm install
npm run tauri build

Expected behavior

After npm run tauri build, the .deb file would be installed with sudo dpkg -i <path>.

Full tauri info output

[✔] Environment
    - OS: Ubuntu 22.04 X64
    ✔ webkit2gtk-4.0: 2.44.0
    ✔ rsvg2: 2.52.5
    ✔ rustc: 1.77.2 (25ef9e3d8 2024-04-09)
    ✔ cargo: 1.77.2 (e52e36006 2024-03-26)
    ✔ rustup: 1.27.0 (bbb9276d2 2024-03-08)
    ✔ Rust toolchain: stable-x86_64-unknown-linux-gnu (default)
    - node: 20.12.0
    - npm: 10.5.2

[-] Packages
    - tauri [RUST]: 1.6.2
    - tauri-build [RUST]: 1.5.1
    - wry [RUST]: 0.24.8
    - tao [RUST]: 0.16.9
    - tauri-cli [RUST]: 1.5.12
    - @tauri-apps/api [NPM]: 1.5.4
    - @tauri-apps/cli [NPM]: 1.5.11

[-] App
    - build-type: bundle
    - CSP: unset
    - distDir: ../dist/test_tauri/browser
    - devPath: http://localhost:1420/
    - framework: Angular
    - bundler: Webpack

Stack trace

No response

Additional context

No response

@ColineLedez ColineLedez added status: needs triage This issue needs to triage, applied to new issues type: bug labels Apr 24, 2024
@amrbashir
Copy link
Member

I can't seem to reproduce, can you share the problematic .deb file and the repro used to create it?

@ColineLedez
Copy link
Author

ColineLedez commented Apr 24, 2024

Here is the zipped .deb file:

test-tauri_0.0.0_amd64.zip

It is the create-tauri-app project and I have only modified the "identifier" in the tauri.conf.json file

@amrbashir
Copy link
Member

amrbashir commented Apr 24, 2024

I can see that your deb is corrupted indeed but I can't reproduce using a new project at all.

If you have another device, could you try compiling on it?

@whys-sf
Copy link

whys-sf commented Apr 25, 2024

yes , i have the same problem. but i build the project in macos. is the apple security stop me give the app to others?

@ColineLedez
Copy link
Author

A possible cause could be a too high uid

id -u $whoami returns 309230504, and we have found a similar issue concerning cargo : alacritty/alacritty#1513

Maybe it could be fixed here :

let mut builder = ar::Builder::new(common::create_file(dest)?);

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
platform: Linux status: needs triage This issue needs to triage, applied to new issues type: bug
Projects
None yet
Development

No branches or pull requests

4 participants