feat(build): add --dist to redirect output to dist/ instead of plugins/
When --dist is passed (forwarded by build_plugin.py to the per-version script), built nsis7z.dll files are copied to <repo>/dist/<config> instead of <repo>/plugins/<config>. Lets CI collect a clean dist/ tree without touching the committed plugins/ dir. Windows (2601_vs2026) and Linux build paths both supported. Co-Authored-By: Claude Opus 4.7 <noreply@anthropic.com>
This commit is contained in:
@@ -630,6 +630,9 @@ Examples:
|
||||
help='Disable additional build optimizations')
|
||||
parser.add_argument('--vs-version', choices=['auto', '2026', '2022'], default='auto',
|
||||
help='Visual Studio version to use (default: auto)')
|
||||
parser.add_argument('--dist', action='store_true',
|
||||
help='Copy built DLLs to <repo>/dist/<config> instead '
|
||||
'of <repo>/plugins/<config>')
|
||||
|
||||
args = parser.parse_args()
|
||||
|
||||
@@ -642,6 +645,9 @@ Examples:
|
||||
|
||||
# Get project paths
|
||||
project_dir, project_file, plugins_dir = get_project_paths(platform_toolset)
|
||||
# --dist: redirect the output root from <repo>/plugins to <repo>/dist.
|
||||
if args.dist:
|
||||
plugins_dir = plugins_dir.parent / 'dist'
|
||||
|
||||
if args.list_project:
|
||||
if not project_file.exists():
|
||||
|
||||
Reference in New Issue
Block a user