Skip to content

Conversation

@stackotter
Copy link
Collaborator

@stackotter stackotter commented Jan 7, 2026

This PR cleans up all of SwiftCrossUI's existing bash scripts. It;

  • moves them to the new Scripts directory,
  • pulls them apart into smaller self contained scripts (e.g. generate_gtk3.sh),
  • adds extra code that ensures the scripts can be called from anywhere,
  • optimises Gtk binding generation by running the format script directly on the generated code (avoiding formatting the whole repo),
  • and generates the Gtk bindings from a consistent set of Gir files (hosted in https://github.com/moreSwift/gir-files)

You can now regenerate all generated code by running ./Scripts/generate.sh; no need to run ./Scripts/format_and_lint.sh after the generation script anymore. You can also regenerate only the code you changed by using ./Scripts/generate_gyb.sh, ./Scripts/generate_gtk.sh, ./Scripts/generate_gtk4.sh, and ./Scripts/generate_gtk3.sh.

@stackotter stackotter force-pushed the stackotter/fix_generation_scripts branch from 32ff38d to 5d55d48 Compare January 7, 2026 02:19
@stackotter
Copy link
Collaborator Author

Addresses #259

@stackotter stackotter merged commit 589e377 into main Jan 7, 2026
22 checks passed
@stackotter stackotter deleted the stackotter/fix_generation_scripts branch January 7, 2026 05:08
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.

2 participants