summaryrefslogtreecommitdiff
path: root/Build/InstallDesktopFile.hs
diff options
context:
space:
mode:
authorGravatar Joey Hess <joey@kitenet.net>2012-10-21 15:33:02 -0400
committerGravatar Joey Hess <joey@kitenet.net>2012-10-21 15:33:06 -0400
commit05bc3fa99fe475b98e5f1de55e8065c33d8390c2 (patch)
treefcf2a0b05f931d007d70e96094d97550f166ccaa /Build/InstallDesktopFile.hs
parent0027e97ca35daf206d2a7bf20e837e7deaaedf3f (diff)
OSX: Stop installing non-self-contained webapp into Desktop directory.
This was a stopgap, and we have the self-contained webapp now.
Diffstat (limited to 'Build/InstallDesktopFile.hs')
-rw-r--r--Build/InstallDesktopFile.hs26
1 files changed, 0 insertions, 26 deletions
diff --git a/Build/InstallDesktopFile.hs b/Build/InstallDesktopFile.hs
index 1bcba70fd..121205687 100644
--- a/Build/InstallDesktopFile.hs
+++ b/Build/InstallDesktopFile.hs
@@ -74,32 +74,6 @@ writeOSXDesktop command = do
, userAutoStart osxAutoStartLabel
)
- {- Install the OSX app in non-self-contained mode. -}
- let appdir = "git-annex.app"
- installOSXAppFile appdir "Contents/Info.plist" Nothing
- installOSXAppFile appdir "Contents/Resources/git-annex.icns" Nothing
- installOSXAppFile appdir "Contents/MacOS/git-annex-webapp" (Just webappscript)
- where
- webappscript = unlines
- [ "#!/bin/sh"
- , command ++ " webapp"
- ]
-
-installOSXAppFile :: FilePath -> FilePath -> Maybe String -> IO ()
-installOSXAppFile appdir appfile mcontent = do
- let src = "standalone" </> "osx" </> appdir </> appfile
- home <- myHomeDir
- dest <- ifM systemwideInstall
- ( return $ "/Applications" </> appdir </> appfile
- , return $ home </> "Desktop" </> appdir </> appfile
- )
- createDirectoryIfMissing True (parentDir dest)
- case mcontent of
- Just content -> writeFile dest content
- Nothing -> copyFile src dest
- mode <- fileMode <$> getFileStatus src
- setFileMode dest mode
-
install :: FilePath -> IO ()
install command = do
#ifdef darwin_HOST_OS