OSX build fixes

This commit is contained in:
Joey Hess 2025-02-17 14:05:19 -04:00
parent 1fb69fe01c
commit 03827783bc
No known key found for this signature in database
GPG key ID: DB12DB0FF05F8F38

View file

@ -168,13 +168,13 @@ upgradeToDistribution newdir cleanup distributionfile = do
olddir <- oldVersionLocation
withTmpDirIn (parentDir newdir) (literalOsPath "git-annex.upgrade") $ \tmpdir -> do
void $ boolSystem "hdiutil"
[ Param "attach", File distributionfile
[ Param "attach", File (fromOsPath distributionfile)
, Param "-mountpoint", File (fromOsPath tmpdir)
]
void $ boolSystem "cp"
[ Param "-R"
, File $ fromOsPath $ tmpdir </> toOsPath installBase </> literalOsPath "Contents"
, File $ newdir
, File (fromOsPath newdir)
]
void $ boolSystem "hdiutil"
[ Param "eject"