{"record":{"id":"4bce2bbb87007c5d","repo":"GopeedLab/gopeed","slug":"no-app-found-in-dmg-mountpoint-s","errorCode":null,"errorMessage":"no .app found in dmg, mountPoint: %s","messagePattern":"no \\.app found in dmg, mountPoint: (.+?)","errorType":"console","errorClass":null,"httpStatus":null,"severity":"error","filePath":"cmd/updater/updater_darwin.go","lineNumber":52,"sourceCode":"\t\t\t\tmountPoint = strings.TrimSpace(line[idx:])\n\t\t\t\tbreak\n\t\t\t}\n\t\t}\n\t}\n\n\tif mountPoint == \"\" {\n\t\treturn fmt.Errorf(\"failed to get mount point from hdiutil output: %s\", string(output))\n\t}\n\n\t// Detach the mounted DMG\n\tdefer exec.Command(\"hdiutil\", \"detach\", mountPoint, \"-quiet\").Run()\n\n\tmatches, err := filepath.Glob(filepath.Join(mountPoint, \"*.app\"))\n\tif err != nil {\n\t\treturn err\n\t}\n\tif len(matches) == 0 {\n\t\treturn fmt.Errorf(\"no .app found in dmg, mountPoint: %s\", mountPoint)\n\t}\n\n\tkillSignalChan <- nil\n\n\t// Copy the new app to the destination\n\t// cp -Rf /Volumes/GoPeed/GoPeed.app /Applications\n\tif err := exec.Command(\"cp\", \"-Rf\", matches[0], appPath).Run(); err != nil {\n\t\treturn err\n\t}\n\n\treturn nil\n}\n\n// Get parent directory safely, handling trailing separators\nfunc getParentDir(path string) string {\n\t// Remove trailing separators if they exist\n\tpath = strings.TrimRight(path, string(filepath.Separator))\n\t// Now get the parent directory","sourceCodeStart":34,"sourceCodeEnd":70,"githubUrl":"https://github.com/GopeedLab/gopeed/blob/7b7327ffb30816273a74b142cccc0bc10c5a4c67/cmd/updater/updater_darwin.go#L34-L70","documentation":"Error \"no .app found in dmg, mountPoint: %s\" thrown in GopeedLab/gopeed.","triggerScenarios":"Thrown at cmd/updater/updater_darwin.go:52 when the library encounters an invalid state.","commonSituations":"See trigger scenarios.","solutions":[],"exampleFix":null,"handlingStrategy":null,"validationCode":null,"typeGuard":null,"tryCatchPattern":null,"preventionTips":[],"tags":[],"backgroundTag":null,"analyzedSha":"7b7327ffb30816273a74b142cccc0bc10c5a4c67","analyzedAt":"2026-08-16T02:51:03.250Z","schemaVersion":2},"datasetVersion":"2026-08-16T03:17:38.424Z"}