gitbutlerapp/gitbutler · error
No .app bundle found in extracted archive
Error message
No .app bundle found in extracted archive
What it means
extract_tarball scans the extracted archive for a directory whose extension is ".app"; if none is found, it returns "No .app bundle found in extracted archive". The macOS installer requires every downloaded tarball to contain exactly one .app bundle to install.
Solutions
- Inspect the archive contents (tar -tzf <file>) to confirm whether a .app bundle exists and where
- Verify the release asset URL points to the macOS tarball, not another platform's artifact
- Re-download to rule out a truncated download (validate_tarball should have caught checksum issues)
- Use an installer version whose platform asset mapping matches the release
Defensive patterns
Strategy: validation
Validate before calling
// inspect archive before extraction tar -tzf gitbutler.tar.gz | grep -q '\.app/' || echo "no .app bundle: wrong or broken asset"
Try / catch
// rust
if let Err(e) = download_and_install_app(&config, platform_info, &release, channel) {
if e.to_string().contains("No .app bundle found") {
eprintln!("asset is not a macOS app bundle; check the release");
}
} Prevention
- Confirm the macOS platform asset is the GitButler.app tarball
- List archive contents before installing custom/mirrored artifacts
- Keep installer and release versions in sync
When it happens
Trigger: download_and_install_app downloads and extracts a tarball whose contents contain no directory with a .app extension.
Common situations: A wrong asset was published under the macOS platform URL (e.g. a Linux tarball or zip), a renamed/restructured bundle (GitButler.app -> gitbutler/ subfolder), or a corrupted/partial extraction.
Related errors
- A 'but' binary already exists at
- Could not remove quarantine attribute
- Failed to create symlink
- Failed to extract filename from download URL
- Failed to get app bundle name
AI-assisted analysis of gitbutlerapp/gitbutler@58e5313667 (2026-09-18).
Data as JSON: /api/errors/4a3ae13565c5bb28.
Report an issue: GitHub.
Appendix: source
Thrown at crates/but-installer/src/install_macos.rs:333
let file = File::open(tarball)?;
let decoder = GzDecoder::new(file);
let mut archive = Archive::new(decoder);
archive
.unpack(dest_dir)
.context("Failed to extract archive")?;
// Find the extracted .app bundle
let mut app_dir = None;
for entry in fs::read_dir(dest_dir)? {
let entry = entry?;
let path = entry.path();
if path.is_dir() && path.extension().and_then(|s| s.to_str()) == Some("app") {
app_dir = Some(path);
break;
}
}
app_dir.ok_or_else(|| anyhow!("No .app bundle found in extracted archive"))
}
pub(crate) fn verify_app_structure(app_dir: &Path) -> Result<()> {
let binaries_dir = app_dir.join("Contents/MacOS");
if !binaries_dir.is_dir() {
bail!(
"Extracted app bundle does not contain expected directory structure (Contents/MacOS)"
);
}
let required_binaries = ["gitbutler-git-askpass", "gitbutler-tauri"];
for binary in &required_binaries {
let binary_path = binaries_dir.join(binary);
if !binary_path.exists() {
bail!("Missing required binary: {binary}");
}
}View on GitHub (pinned to 58e5313667)