-
-
Notifications
You must be signed in to change notification settings - Fork 1.8k
refactor: simplify nuspec file structure by consolidating file entries into a single pattern #9140
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
base: master
Are you sure you want to change the base?
Conversation
|
I don't think this is a necessary change. I'd prefer explicit file |
The old version used to copy all files into |
I don't see a reason for this change from the current functionality being provided - this simplification doesn't seem needed. Allowlists are always my more preferred approach when it comes to production assets, not blocklists using If we're needing to handle |
@mmaietta How about we make this template file customizable? If users need to include more files, they could specify their own template. If none is specified, the current default template would be used. |
Hmmm, that's a great proposal to handle very advanced use cases, not sure if the average dev will understand how to go that deep into nuspec. Is there a way we could just loop through a property on squirrel for customizing the accepted/to-be-copied files?
|
This PR is stale because it has been open for 30 days with no activity. Remove stale label or comment, or this will be closed in 30 days. |
@beyondkmp friendly ping on #9140 (comment) Let me know what the best next steps are, but currently, I'm not a fan of having a globstar "all" regex |
No better solution has been identified yet. The previous approach used by the old Squirrel.Windows version was to package all contents from the app directory into |
…s dynamically - Modified `createNuspecTemplateWithProjectUrl` to accept `additionalFiles` as a parameter. - Replaced the static additional files loop in the nuspec template with dynamic content based on the provided files. - Added a new method `getAdditionalFiles` to filter and prepare additional files for inclusion in the nuspec template.
b9bd889
to
50d8407
Compare
- Removed the `exeName` parameter from the `getAdditionalFiles` method call. - Updated test fixtures to include `index.html` as an extra file for Squirrel Windows packaging. - Added `packageManager` field to the test app's `package.json` for consistency.
fix #9092
The app output of electron-builder is placed in a temporary directory, so we can directly copy all files into lib\net45 without needing to perform filtering.