Skip to content
This repository has been archived by the owner on Apr 3, 2020. It is now read-only.

Windows: delete useless code of installing extensions #117

Open
wants to merge 1 commit into
base: master
Choose a base branch
from

Conversation

DonnaWuDongxia
Copy link
Contributor

No description provided.

@DonnaWuDongxia
Copy link
Contributor Author

@rakuco please help to review.

@r0b5t4
Copy link

r0b5t4 commented Mar 23, 2016

@DonnaWuDongxia I had a different idea about this. pass the -k to the windows backend, and then keep the files. Will make a patch.

@r0b5t4
Copy link

r0b5t4 commented Mar 23, 2016

Please look at #118

@DonnaWuDongxia
Copy link
Contributor Author

@r0b5t4 updated, please help to review! Sorry for referring @rakuco by mistake.

@DonnaWuDongxia DonnaWuDongxia changed the title Windows: keep wxs file with keep option and delete usless code Windows: delete usless code Mar 24, 2016
@DonnaWuDongxia DonnaWuDongxia changed the title Windows: delete usless code Windows: delete useless code Mar 24, 2016
@DonnaWuDongxia DonnaWuDongxia changed the title Windows: delete useless code Windows: delete useless code of installing extensions Mar 24, 2016
@DonnaWuDongxia
Copy link
Contributor Author

@r0b5t4 Please help to review, the useless code need to be deleted, otherwise there will be a bug. Thanks!

@r0b5t4
Copy link

r0b5t4 commented Mar 24, 2016

@DonnaWuDongxia I think we should maybe print a warning if the extension folder is under the app folder, because that means the extensions will be included twice in the MSI. Once unused in the app, once copied to the extensions folder.

}.bind(this));

// Skip in-folder extensions copying to avoid duplication.
// Because the needed extension files has already be installed by previous step.
installFiles(app_path, app_files_folder, this._manifest.extensions);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@r0b5t4 We have skipped the in-folder extensions when install the web staff into the installer. So there will be no dup.

@DonnaWuDongxia
Copy link
Contributor Author

@r0b5t4 We have skipped the in-folder extension folder in line 268 when installing the web staff into the installer. So there will be no dup.

@r0b5t4
Copy link

r0b5t4 commented May 12, 2016

@DonnaWuDongxia sorry for the delay. We have the CI working now again, and the JIRA migration is done as well. So let's try to finish this.

I think after the call to installExtensionDlls() we should still check if the extension dir is a subdir of the web app, and if it is, print a warning that the files will be duplicated. Thanks.

@DonnaWuDongxia
Copy link
Contributor Author

DonnaWuDongxia commented May 26, 2016

@r0b5t4 With below line:
installFiles(app_path, app_files_folder, this._manifest.extensions);
We passed this._manifest.extensions as the "skip_array" argument to installFiles, so whether or not they are in-folder extensions, they will not be included into the WXS file.

Do you mean we don't use the "skip_array", but show warning log for in-folder extensions?
But we already have the method in hand.

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

Successfully merging this pull request may close these issues.

2 participants