Skip to content

Commit

Permalink
#486 Add support for static arguments
Browse files Browse the repository at this point in the history
  • Loading branch information
brentvollebregt committed Jun 1, 2024
1 parent df159b0 commit b86fd14
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 2 deletions.
5 changes: 4 additions & 1 deletion auto_py_to_exe/web/js/configuration.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,10 @@ const getCurrentConfiguration = async () => {
continue;
}

if ([OPTION_INPUT_VALUE_FILE, OPTION_INPUT_VALUE_DIRECTORY].some((v) => option.allowedInputValues.includes(v))) {
if (
[OPTION_INPUT_VALUE_FILE, OPTION_INPUT_VALUE_DIRECTORY].some((v) => option.allowedInputValues.includes(v)) ||
option.dest === 'filenames'
) {
c.value = await convertPathToAbsolute(c.value);
}
if (
Expand Down
10 changes: 9 additions & 1 deletion auto_py_to_exe/web/js/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,15 @@ const options_ignored = ['help'];
const options_static = ['filenames', 'onefile', 'console', 'icon_file', 'datas'];
const options_overridden = ['specpath', 'distpath', 'workpath', 'noconfirm'];

const options_inputTypeFile = ['runtime_hooks', 'version_file', 'manifest', 'resources', 'splash', 'entitlements_file'];
const options_inputTypeFile = [
'runtime_hooks',
'version_file',
'manifest',
'resources',
'splash',
'entitlements_file',
'icon_file',
];
const options_inputTypeDirectory = ['upx_dir', 'pathex', 'hookspath'];
const options_inputTypeDoubleFileDest = ['datas', 'binaries'];
const options_inputTypeDoubleDirectoryDest = ['datas'];
Expand Down

0 comments on commit b86fd14

Please sign in to comment.