You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Is your feature request related to a problem? Please describe.
When adding additional files to maker.options.json, an absolute file path is required for the files to be copied, but this is not transferrable between different computers or CI.
Describe the solution you'd like
I should be able to use a relative path, such as apps/electron/worker and this should be transformed into an absolute path during the packaging process when builder-effective-config.yaml is generated.
Describe alternatives you've considered
I have found two workarounds:
use full filepaths (not transferrable between computers)
Modify the filepath in a custom beforePack script and add in the path
// assume this is in the options// "from": "${CWD}/dist/apps/electron/worker",exports.default=asyncfunction(context){context.targets.forEach((target)=>{target?.packager?.info?._configuration?.files?.forEach((file)=>{if(file.from){file.from=file.from.replace('${CWD}',process.cwd());}});});};
Additional context
If I am missing anything, please let me know - I have tried all sorts of different relative file paths and none have been successful so far.
The text was updated successfully, but these errors were encountered:
Is your feature request related to a problem? Please describe.
When adding additional files to
maker.options.json
, an absolute file path is required for the files to be copied, but this is not transferrable between different computers or CI.Describe the solution you'd like
I should be able to use a relative path, such as
apps/electron/worker
and this should be transformed into an absolute path during the packaging process whenbuilder-effective-config.yaml
is generated.Describe alternatives you've considered
I have found two workarounds:
Additional context
If I am missing anything, please let me know - I have tried all sorts of different relative file paths and none have been successful so far.
The text was updated successfully, but these errors were encountered: