GopeedLab/gopeed · error

no .app found in dmg, mountPoint: %s

Error message

no .app found in dmg, mountPoint: %s

What it means

Error "no .app found in dmg, mountPoint: %s" thrown in GopeedLab/gopeed.

Source

Thrown at cmd/updater/updater_darwin.go:52

				mountPoint = strings.TrimSpace(line[idx:])
				break
			}
		}
	}

	if mountPoint == "" {
		return fmt.Errorf("failed to get mount point from hdiutil output: %s", string(output))
	}

	// Detach the mounted DMG
	defer exec.Command("hdiutil", "detach", mountPoint, "-quiet").Run()

	matches, err := filepath.Glob(filepath.Join(mountPoint, "*.app"))
	if err != nil {
		return err
	}
	if len(matches) == 0 {
		return fmt.Errorf("no .app found in dmg, mountPoint: %s", mountPoint)
	}

	killSignalChan <- nil

	// Copy the new app to the destination
	// cp -Rf /Volumes/GoPeed/GoPeed.app /Applications
	if err := exec.Command("cp", "-Rf", matches[0], appPath).Run(); err != nil {
		return err
	}

	return nil
}

// Get parent directory safely, handling trailing separators
func getParentDir(path string) string {
	// Remove trailing separators if they exist
	path = strings.TrimRight(path, string(filepath.Separator))
	// Now get the parent directory

View on GitHub (pinned to 7b7327ffb3)

When it happens

Trigger: Thrown at cmd/updater/updater_darwin.go:52 when the library encounters an invalid state.

Common situations: See trigger scenarios.


AI-assisted analysis of GopeedLab/gopeed@7b7327ffb3 (2026-08-16). Data as JSON: /api/errors/4bce2bbb87007c5d. Report an issue: GitHub.