Skip to content

Conversation

@annd22
Copy link

@annd22 annd22 commented Jun 5, 2025

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"

annd22 added 2 commits June 5, 2025 09:07
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"
@annd22
Copy link
Author

annd22 commented Jun 5, 2025

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
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant