Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Dev to Main: Refactor script for dynamic settings, registry and oscdimg.exe fix #12

Merged
merged 38 commits into from
Nov 17, 2024

Conversation

memstechtips
Copy link
Owner

Refactor script for dynamic settings and registry fix

  • Created wimutil-settings.json to store config for the project.
  • Added dynamic loading of settings from wimutil-settings.json.
  • Integrated branch-based configuration with fallback to default branch.
  • Removed oscdimg.exe signing date function and only check hash value.
  • Fixed GUI loading issue by setting the Internet Explorer "DisableFirstRunCustomize" registry entry at script start.
  • Added configurl for main and dev branches and comment out the one not being used. (needs more work)
  • Detect branch from configurl rather than scripturl
  • Update README with new latest version
  • Removed " " white space in launch command.

- Added dynamic loading of oscdimg settings and XAML URL from wimutil-settings.json.
- Integrated branch-based configuration with fallback to default branch.
- Implemented UTC-based signing date validation for oscdimg.exe.
- Centralized oscdimg.exe expected hash and signing date in JSON config.
- Fixed GUI loading issue by setting "DisableFirstRunCustomize" registry entry at script start.
- Implemented branch detection from URL to dynamically set the current branch.
- Enhanced configuration fetching with branch-specific logic and fallback to default branch.
- Ensured dynamic URLs for XAML and oscdimg are correctly loaded from JSON config.
- Validated required keys in the configuration file to prevent runtime errors.
- Improved error handling for missing or invalid branches and configuration entries.
- Removed reliance on local file paths, ensuring full compatibility with remote execution via irm.
- Shortened and centralized branch-specific configuration logic for better maintainability.
- Improved fallback mechanism to handle missing branch settings in the JSON file.
- Validated critical configuration keys to ensure runtime stability.
- Enhanced error handling for configuration loading and branch detection.
- Added debugging for branch detection to log InvocationName and PSCommandPath.
- Improved branch detection logic to reliably extract branch name from invocation URL.
- Enhanced fallback mechanism to default to 'main' branch when detection fails.
- Constructed configuration URL dynamically based on the detected branch.
- Improved error handling for invalid or missing branch settings.
- Enhanced branch detection logic to handle remote execution via irm.
- Added fallback to detect branch from pipeline input if InvocationName fails.
- Improved error handling and debugging for branch detection and configuration loading.
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