Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Deploy.js is not right #8

Closed
MrDChristop opened this issue May 30, 2019 · 5 comments
Closed

Deploy.js is not right #8

MrDChristop opened this issue May 30, 2019 · 5 comments

Comments

@MrDChristop
Copy link

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
Copy link
Author

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
Copy link
Author

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<username>\AppData\Roaming\Adobe<CEPVersion>\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
Copy link
Owner

@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
Copy link
Contributor

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
Copy link
Owner

@Merkur39 thank you very much !!!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants