feat(windows): add post-package command option for Windows packaging#274
Open
annd22 wants to merge 4 commits intofastforgedev:mainfrom
Open
feat(windows): add post-package command option for Windows packaging#274annd22 wants to merge 4 commits intofastforgedev:mainfrom
annd22 wants to merge 4 commits intofastforgedev:mainfrom
Conversation
Add --post-package-windows-cmd option to execute custom commands between build and package steps for Windows platform. This enables custom file operations (like code signing) on the built executable before packaging. Changes: - Add new CLI option --post-package-windows-cmd in command_package.dart - Implement command execution logic in unified_distributor.dart - Add proper error handling and logging for custom command execution Example usage: fastforge package --platform windows --targets exe --post-package-windows-cmd="call ./sign-file.bat"
…t-package Windows commands
Author
|
This pull request is for: #272 |
- Fix path escaping to prevent double backslashes in Windows paths - Add proper handling of paths with spaces in post-package commands - Improve batch file execution with enabledelayedexpansion
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Add
--post-package-windows-cmdoption to execute custom commands betweenbuild and package steps for Windows platform. This enables custom file
operations (like code signing) on the built executable before packaging.
Changes:
--post-package-windows-cmdincommand_package.dartunified_distributor.dartExample usage:
fastforge package --platform windows --targets exe --post-package-windows-cmd="call ./sign-file.bat"