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

Failing AppImage Packaging while using out-dir #206

Open
naman-crabnebula opened this issue Apr 16, 2024 · 1 comment
Open

Failing AppImage Packaging while using out-dir #206

naman-crabnebula opened this issue Apr 16, 2024 · 1 comment

Comments

@naman-crabnebula
Copy link
Contributor

So, I came across a weird bug in Packager that while building AppImage, it fails with error

DEBUG cargo_packager::package::appimage: Writing target/release/.cargo-packager/appimage/build_appimage.sh and setting its permissions to 764
 INFO cargo_packager::package::appimage: Packaging tauri-app_0.0.1_x86_64.AppImage (/home/namang/Desktop/fixing/tauri-app/src-tauri/target/release/tauri-app_0.0.1_x86_64.AppImage)
DEBUG cargo_packager::shell: Running Command `cd "target/release/.cargo-packager/appimage" && "target/release/.cargo-packager/appimage/build_appimage.sh"`
ERROR cargo_packager::cli: Error running bundle_appimage.sh script: No such file or directory (os error 2)

This happens in Arch Linux as well as Ubuntu 22.04

However, packaging again the same package has no issue

Reproduction

  1. Create a Tauri App
  2. Add Configuration in Cargo.toml
[package.metadata.packager]
name = "tauri"
product-name = "tauri"
identifier = "com.tauri.example"
version = "0.0.1"
before-each-package-command = "cargo build --release"
out-dir = "target/release"
resources = [
  "resources",
]
icons=[
  "resources/icons/icon256x256.png",
  "resources/icons/icon.ico"
]
  1. Run
cargo packager --release --verbose

See, it fails

  1. Run
    ``
    cargo packager --release --verbose
Again, and it packages the application fine.

## Additional Info

Whenever I use `out-dir` other than that, it fails straightforward for all packages ( Debian as well )

For example, using 
```toml
out-dir = "Random"

Fails, even if the directory exists

 INFO cargo_packager::package::deb: Packaging tauri-app_0.0.1_amd64.deb (/home/namang/Desktop/fixing/tauri-app/src-tauri/Random/tauri-app_0.0.1_amd64.deb)
DEBUG cargo_packager::package::deb: Generating data
DEBUG cargo_packager::package::deb: Copying binaries
ERROR cargo_packager::cli: No such file or directory (os error 2)
@denjell-crabnebula
Copy link
Contributor

I can confirm I have actually had a similar problem on macOS with Tauri sometimes... The first build fails, but the second one completes.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants