mirror of
https://github.com/cappuccino/cappuccino.git
synced 2026-09-14 14:41:28 +00:00
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:
@@ -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
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user