-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Raúl
committed
Jul 7, 2015
0 parents
commit 4f5d717
Showing
5 changed files
with
251 additions
and
0 deletions.
There are no files selected for viewing
Binary file not shown.
Binary file added
BIN
+308 Bytes
Yosemite AICS4 Fix.mpkg/Contents/Resources/English.lproj/Localizable.strings
Binary file not shown.
18 changes: 18 additions & 0 deletions
18
Yosemite AICS4 Fix.mpkg/Contents/Resources/English.lproj/license.rtf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,18 @@ | ||
{\rtf1\ansi\ansicpg1252\cocoartf1348\cocoasubrtf170 | ||
{\fonttbl\f0\fswiss\fcharset0 Helvetica;} | ||
{\colortbl;\red255\green255\blue255;} | ||
\paperw11900\paperh16840\margl1440\margr1440\vieww10800\viewh8400\viewkind0 | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural | ||
|
||
\f0\fs24 \cf0 Package created by Ra\'fal \'c1lvarez.\ | ||
\ | ||
The author is not affiliated by any means with Adobe Systems inc. or any of its subsidiaries. \ | ||
\ | ||
libmap_fd:\ | ||
\ | ||
(https://github.com/bfleischer/map_fd)\ | ||
\ | ||
Created by Benjamin Fleischer on 10.01.15.\ | ||
Copyright (c) 2015 Benjamin Fleischer. All rights reserved, used here by permission of the author.\ | ||
\ | ||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. USE IT AT YOUR OWN RISK.} |
22 changes: 22 additions & 0 deletions
22
Yosemite AICS4 Fix.mpkg/Contents/Resources/English.lproj/welcome.rtfd/TXT.rtf
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,22 @@ | ||
{\rtf1\ansi\ansicpg1252\cocoartf1348\cocoasubrtf170 | ||
{\fonttbl\f0\fswiss\fcharset0 Helvetica;} | ||
{\colortbl;\red255\green255\blue255;} | ||
\paperw11900\paperh16840\margl1440\margr1440\vieww22340\viewh12100\viewkind0 | ||
\pard\tx566\tx1133\tx1700\tx2267\tx2834\tx3401\tx3968\tx4535\tx5102\tx5669\tx6236\tx6803\pardirnatural | ||
|
||
\f0\fs24 \cf0 This installer fixes the problem loading the photoshopimport.aip and photoshopexport.aip plugins in In Illustrator CS4 running on OS X Yosemite.\ | ||
\ | ||
The launch log output in Console should throw these errors:\ | ||
\ | ||
Adobe Illustrator[521]: Error loading /Applications/Adobe Illustrator CS4/Plug-ins.localized/Photoshop Formats.localized/PhotoshopExport.aip/Contents/MacOS/PhotoshopExport: dlopen(/Applications/Adobe Illustrator CS4/Plug-ins.localized/Photoshop Formats.localized/PhotoshopExport.aip/Contents/MacOS/PhotoshopExport, 262): Symbol not found: _map_fd\ | ||
Referenced from: /Applications/Adobe Illustrator CS4/Adobe Illustrator.app/Contents/MacOS/../Frameworks/AdobePSL.framework/Versions/A/AdobePSL\ | ||
Expected in: /usr/lib/libSystem.B.dylib\ | ||
\ | ||
\ | ||
Adobe Illustrator[521]: Error loading /Applications/Adobe Illustrator CS4/Plug-ins.localized/Photoshop Formats.localized/PhotoshopImport.aip/Contents/MacOS/PhotoshopImport: dlopen(/Applications/Adobe Illustrator CS4/Plug-ins.localized/Photoshop Formats.localized/PhotoshopImport.aip/Contents/MacOS/PhotoshopImport, 262): Symbol not found: _map_fd\ | ||
Referenced from: /Applications/Adobe Illustrator CS4/Adobe Illustrator.app/Contents/MacOS/../Frameworks/AdobePSL.framework/Versions/A/AdobePSL\ | ||
Expected in: /usr/lib/libSystem.B.dylib\ | ||
\ | ||
This fix addresses the issue by injecting libmap_fd into the executable image at runtime.\ | ||
\ | ||
libmap_fd is developed by Benjamin Fleischer (https://github.com/bfleischer/map_fd) and provides a custom implementation of the map_fd syscall based on POSIX mmap that is compatible with Yosemite.} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,211 @@ | ||
<?xml version="1.0" encoding="UTF-8" standalone="no"?> | ||
<installer-script authoringTool="Packages" authoringToolVersion="1.1.2" authoringToolBuild="2B104" minSpecVersion="1.0"> | ||
<options rootVolumeOnly="true" customize="never"/> | ||
<installation-check script="installation_check()"/> | ||
<volume-check script="volume_check()"/> | ||
<!--+==========================+ | ||
| Presentation | | ||
+==========================+--> | ||
<title>DISTRIBUTION_TITLE</title> | ||
<welcome file="welcome.rtfd"/> | ||
<license file="license.rtf"/> | ||
<!--+==========================+ | ||
| Installer | | ||
+==========================+--> | ||
<choices-outline> | ||
<line choice="installer_choice_1"/> | ||
</choices-outline> | ||
<choice id="installer_choice_1" title="Yosemite AICS4 Fix" description=""> | ||
<pkg-ref id="pkg.YosemiteAICS4Fix"/> | ||
</choice> | ||
<!--+==========================+ | ||
| Package References | | ||
+==========================+--> | ||
<pkg-ref id="pkg.YosemiteAICS4Fix" version="1.0" auth="Root" installKBytes="8">file:./Contents/Packages/Yosemite%20AICS4%20Fix.pkg</pkg-ref> | ||
<!--+==========================+ | ||
| JavaScript Scripts | | ||
+==========================+--> | ||
<script> | ||
|
||
const __IC_FLAT_DISTRIBUTION__=false; | ||
const IC_DISK_TYPE_DESTINATION=0; | ||
const IC_DISK_TYPE_STARTUP_DISK=1; | ||
const IC_OS_DISTRIBUTION_TYPE_ANY=0; | ||
const IC_OS_DISTRIBUTION_TYPE_CLIENT=1; | ||
const IC_OS_DISTRIBUTION_TYPE_SERVER=2; | ||
|
||
const IC_CONDITION_EXIST=0; | ||
const IC_CONDITION_DOES_NOT_EXIST=1; | ||
const IC_SELECTOR_ANY=0; | ||
const IC_SELECTOR_ALL=1; | ||
|
||
function IC_CheckOS(inDiskType,inMustBeInstalled,inMinimumVersion,inDistributionType) | ||
{ | ||
var tOSVersion=undefined; | ||
|
||
/* Check Minimum Version */ | ||
|
||
if (inDiskType==IC_DISK_TYPE_DESTINATION) | ||
{ | ||
if (my.target.systemVersion!=undefined) | ||
{ | ||
tOSVersion=my.target.systemVersion.ProductVersion; | ||
} | ||
|
||
/* Check if no OS is installed on the potential target */ | ||
|
||
if (tOSVersion==undefined) | ||
{ | ||
return (inMustBeInstalled==false); | ||
} | ||
} | ||
else | ||
{ | ||
tOSVersion=system.version.ProductVersion; | ||
} | ||
|
||
if (system.compareVersions(tOSVersion,inMinimumVersion)==-1) | ||
{ | ||
return false; | ||
} | ||
|
||
/* Check Distribution Type */ | ||
|
||
if (inDistributionType!=IC_OS_DISTRIBUTION_TYPE_ANY) | ||
{ | ||
var tIsServer; | ||
|
||
if (system.compareVersions(tOSVersion,'10.8.0')==-1) | ||
{ | ||
if (inDiskType==IC_DISK_TYPE_DESTINATION) | ||
{ | ||
tIsServer=system.files.fileExistsAtPath(my.target.mountpoint+'/System/Library/CoreServices/ServerVersion.plist'); | ||
} | ||
else | ||
{ | ||
tIsServer=system.files.fileExistsAtPath('/System/Library/CoreServices/ServerVersion.plist'); | ||
} | ||
} | ||
else | ||
{ | ||
if (inDiskType==IC_DISK_TYPE_DESTINATION) | ||
{ | ||
tIsServer=system.files.fileExistsAtPath(my.target.mountpoint+'/Applications/Server.app'); | ||
} | ||
else | ||
{ | ||
tIsServer=system.files.fileExistsAtPath('/Applications/Server.app'); | ||
} | ||
} | ||
|
||
if (inDistributionType==IC_OS_DISTRIBUTION_TYPE_CLIENT && tIsServer==true) | ||
{ | ||
return false; | ||
} | ||
|
||
if (inDistributionType==IC_OS_DISTRIBUTION_TYPE_SERVER && tIsServer==false) | ||
{ | ||
return false; | ||
} | ||
} | ||
|
||
return true; | ||
} | ||
|
||
function IC_CheckFiles(inSelector,inCondition,inDiskType,inFiles) | ||
{ | ||
var tCount; | ||
|
||
tCount=inFiles.length; | ||
|
||
if (tCount>0) | ||
{ | ||
var tIndex; | ||
var tExists; | ||
var tPath; | ||
var atLeastOneTrue=false; | ||
|
||
for(tIndex=0;tIndex<tCount;tIndex++) | ||
{ | ||
tPath=inFiles[tIndex]; | ||
|
||
if (inDiskType==IC_DISK_TYPE_DESTINATION) | ||
{ | ||
tPath=my.target.mountpoint+tPath; | ||
} | ||
|
||
if (system.files.fileExistsAtPath(tPath)==true) | ||
{ | ||
if (inCondition==IC_CONDITION_EXIST) | ||
{ | ||
atLeastOneTrue=true; | ||
|
||
if (inSelector==IC_SELECTOR_ANY) | ||
{ | ||
return true; | ||
} | ||
} | ||
else if (inCondition==IC_CONDITION_DOES_NOT_EXIST && inSelector==IC_SELECTOR_ALL) | ||
{ | ||
return false; | ||
} | ||
} | ||
else | ||
{ | ||
if (inCondition==IC_CONDITION_EXIST && inSelector==IC_SELECTOR_ALL) | ||
{ | ||
return false; | ||
} | ||
else if (inCondition==IC_CONDITION_DOES_NOT_EXIST) | ||
{ | ||
atLeastOneTrue=true; | ||
|
||
if (inSelector==IC_SELECTOR_ANY) | ||
{ | ||
return true; | ||
} | ||
} | ||
} | ||
} | ||
|
||
return atLeastOneTrue; | ||
} | ||
|
||
return true; | ||
} | ||
|
||
function installation_check() | ||
{ | ||
var tResult; | ||
|
||
tResult=IC_CheckOS(IC_DISK_TYPE_STARTUP_DISK,true,'10.5',IC_OS_DISTRIBUTION_TYPE_ANY); | ||
|
||
if (tResult==false) | ||
{ | ||
my.result.title = system.localizedStandardStringWithFormat('InstallationCheckError', system.localizedString('DISTRIBUTION_TITLE')); | ||
my.result.message = ' '; | ||
my.result.type = 'Fatal'; | ||
} | ||
|
||
return tResult; | ||
} | ||
|
||
function volume_check() | ||
{ | ||
var tResult; | ||
|
||
var tFilesToCheck0=new Array('/Applications/Adobe Illustrator CS4/Adobe Illustrator.app'); | ||
|
||
tResult=IC_CheckFiles(IC_SELECTOR_ANY,IC_CONDITION_EXIST,IC_DISK_TYPE_DESTINATION,tFilesToCheck0); | ||
|
||
if (tResult==false) | ||
{ | ||
my.result.message = system.localizedString('REQUIREMENT_FAILED_MESSAGE_VOLUME_CHECK_1'); | ||
my.result.type = 'Fatal'; | ||
} | ||
|
||
return tResult; | ||
} | ||
|
||
</script> | ||
</installer-script> |