HendrixString / adobe-cep-react-create

Create Adobe-CEP extension with React, Material-UI, Native Node modules, Webpack, Babel and ExtendScript
Apache License 2.0
125 stars 27 forks source link

Deploy.js is not right #8

Closed MrDChristop closed 4 years ago

MrDChristop commented 5 years ago

Hi the below does not make sense in deployDevMode execSync('defaults write com.adobe.CSXS.15 PlayerDebugMode 1', {stdio:[0,1,2]}) execSync('defaults write com.adobe.CSXS.14 PlayerDebugMode 1', {stdio:[0,1,2]}) execSync('defaults write com.adobe.CSXS.13 PlayerDebugMode 1', {stdio:[0,1,2]}) execSync('defaults write com.adobe.CSXS.12 PlayerDebugMode 1', {stdio:[0,1,2]}) execSync('defaults write com.adobe.CSXS.11 PlayerDebugMode 1', {stdio:[0,1,2]}) execSync('defaults write com.adobe.CSXS.10 PlayerDebugMode 1', {stdio:[0,1,2]}) execSync('defaults write com.adobe.CSXS.9 PlayerDebugMode 1', {stdio:[0,1,2]}) execSync('defaults write com.adobe.CSXS.8 PlayerDebugMode 1', {stdio:[0,1,2]}) execSync('defaults write com.adobe.CSXS.7 PlayerDebugMode 1', {stdio:[0,1,2]}) execSync('defaults write com.adobe.CSXS.6 PlayerDebugMode 1', {stdio:[0,1,2]}) execSync('defaults write com.adobe.CSXS.5 PlayerDebugMode 1', {stdio:[0,1,2]}) execSync('defaults write com.adobe.CSXS.4 PlayerDebugMode 1', {stdio:[0,1,2]})

The CSXS goes as much as 9 (CC2019 has CEP 9). And it does not seem to work on windows. Failing permissions. Do you test on Windows? image

MrDChristop commented 5 years ago

I see that the current command is only for MA. Yeah Mac rulz but i need it for windows. Until this is fixed i propose you skip this step for windows

MrDChristop commented 5 years ago

I did create a patch for that. I created a windows batch command which queries the registry in windows and if the CSXS entry exists meaning the product is installed the debug flag is set.

The solution to the install path is that you can install the extension per user without priviledge problems. C:\Users\\AppData\Roaming\Adobe\\extensions\

function resolveExtensionFolder() {
    if (isWindows) {
        //return 'C:\\Program Files (x86)\\Common Files\\Adobe\\CEP\\extensions';
        return os.userInfo().homedir+"\\AppData\\Roaming\\Adobe\\CEP\\extensions\\";
    } else {
        return path.join(os.homedir(), 'Library/Application Support/Adobe/CEP/extensions')
    }
}
HendrixString commented 5 years ago

@MrDChristop hi, I dont have Windows, so I didn't had a chance. Please, create a patch and a pull request with your fixes so others can benefit as well :)

Merkur39 commented 4 years ago

Hi, I have the same problem on Windows too Capture

I have fixed the following issues:

Error: EPERM: operation not permitted, symlink ...

Because some directories doesn't exist

Error: Command failed: defaults write com.adobe.CSXS.15 PlayerDebugMode 1

This command does not exist on Windows

I will create a PR soon :)

HendrixString commented 4 years ago

@Merkur39 thank you very much !!!