Skip to content

Add script to automate compilation and creation of Cork app#629

Open
StrangeRanger wants to merge 6 commits into
buresdv:mainfrom
StrangeRanger:main
Open

Add script to automate compilation and creation of Cork app#629
StrangeRanger wants to merge 6 commits into
buresdv:mainfrom
StrangeRanger:main

Conversation

@StrangeRanger

@StrangeRanger StrangeRanger commented Jun 1, 2026

Copy link
Copy Markdown

Mandatory Information

AI / LLM Use

Did you use any AIs / LLMs to create any part of this pull request?

  • Yes
  • No

If Yes — How was it used? (mandatory)

I used ChatGPT to:

  • Help me understand how to compile Cork from the terminal.
  • Identify relevant flags to pair with this script.
  • Identify required commands in order to perform necessary actions.

Copilot AI review requested due to automatic review settings June 1, 2026 10:03

Copilot AI left a comment

Copy link
Copy Markdown

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull request overview

Note

Copilot was unable to run its full agentic suite in this review.

Adds a standalone Bash script to build Cork’s “Self-Compiled” Xcode scheme via xcodebuild (optionally running Tuist generation), export the built .app, and optionally install/launch it.

Changes:

  • Introduces build-self-compiled.sh with CLI flags for clean/build/export/install/launch flows.
  • Adds safety guard for cleaning the .build/self-compiled directory.
  • Configures xcodebuild archive with custom derived data / SwiftPM cache locations.

Comment thread Scripts/build-cork-app.bash
Comment on lines +25 to +26
C_ROOT_DIR="$(realpath -- "$(dirname -- "${BASH_SOURCE[0]}")/..")"
readonly C_ROOT_DIR

Copy link
Copy Markdown
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

realpath is confirmed to exist on macOS 13+. Since the current version of Cork only supports 14+, this shouldn't be a problem.

Comment thread Scripts/build-self-compiled.sh Outdated
Comment thread Scripts/build-self-compiled.sh Outdated
@StrangeRanger StrangeRanger changed the title + Add script to automate compilation and creation of Cork app Add script to automate compilation and creation of Cork app Jun 1, 2026
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