Fixed: Jakefile for XcodeCapp did not install symlink correctly.

FILE.exists was being used to test for the existence of the symlink in /Applications, but that doesn't work.

The correct way is to use ln -sfh. Note that the -h was missing before, which prevents an existing target symlink from being followed, which is why the symlink would end up inside XcodeCapp.app.
This commit is contained in:
Aparajita Fishman
2013-04-25 23:22:37 -04:00
parent fc8ca14743
commit 2d8d68dc5e
+1 -4
View File
@@ -22,10 +22,7 @@ task ("build", function()
cp_r(FILE.join("build", "Release", "XcodeCapp.app"), supportPath);
FILE.chmod(FILE.join(supportPath, "Contents", "MacOS", "XcodeCapp"), 0755);
if (FILE.exists(installPath))
FILE.remove(installPath);
OS.system(["ln", "-s", supportPath, installPath]);
OS.system(["/bin/ln", "-sfh", supportPath, installPath]);
}
else
{