Share Source Code
The sheet where you publish a project's source on a page with its own link, set a PIN, update the shared copy, and stop sharing.
Share Source Code is the sheet where you put a project’s source on a web page with its own link. People who open the link can download the source or import it as a new project in their own Team. The sheet shows where the share stands, the link and its buttons, the page’s title and description, an optional PIN, when the shared copy was made, and Delete Share.
A project has one share. Anyone in the Team can open this sheet and publish, change or delete that share. What people see when they open the link is described in Share or export a project’s source.
Open it
- Open the project’s profile: tap the project’s icon and name at the top of its chat.
- Tap the share button (Share) at the top of the profile.
- Tap Share Project.
The profile closes and the sheet opens. When you close the sheet, the profile comes back.
- Click the project’s icon and name at the top of its chat. The profile opens as the Profile tab beside the chat.
- Click the share button (Share) at the top of the profile.
- Choose Share Project.
On iPad, the profile opens as the Profile tab beside the chat, as on the Mac.
What’s on it
The sheet is titled Share Source Code. While it loads the share, a spinner stands where the form goes.
From top to bottom:
| Item | What it shows or does | When it shows |
|---|---|---|
| Icon and title | The project’s icon and the share’s title (before there’s a share, the project’s name). | Always |
| Status | A dot and a word: Not Shared, Preparing, Public, Updating or Failed. See Status. | Always |
| “Shares this project’s source code, not an app.” | A reminder of what a share is. | Before the project has a share |
| Copy Link | Copies the link. It reads Copied after. | While the link works (Public or Updating) |
| Share… | Opens the system share sheet with the link. | While the link works |
| Open Page | Opens the share’s page in your browser. | While the link works |
| Link | The link itself, without https://. You can select it. |
When the share has a link |
| Title | The name the page shows. Starts as the project’s name. | Always |
| Description | Optional text for the page, up to six lines shown. | Always |
| Require PIN | A switch. Off by default. Turning it on fills PIN with four random digits. | Always |
| PIN | Four digits, shown in the clear. Placeholder “4 digits”. Only digits can be typed. Under it: “People with the link need this PIN to import or download the source code.” | While Require PIN is on |
| Source Code | When the shared copy was made, for example “Updated 2 days ago”, with an Update button. Update is dimmed while the sheet is working, or when there’s nothing new to pack. While a new copy is packed, the row reads “Updating your share…” instead; if packing failed, it shows the failure and Try Again. | Once the share exists and isn’t being prepared |
| Delete Share | Stops sharing. See Stop sharing. Dimmed while the sheet is working. | Once the share exists |
| Publish | Creates the share. Dimmed while Require PIN is on and the PIN isn’t four digits. Shows a spinner while it runs. On the Mac, Return presses Publish, in Description too. | Before the project has a share |
| Save | Saves a changed title, description or PIN. Dimmed while the title is empty or the PIN isn’t four digits. Shows a spinner while it runs. On the Mac, Return presses Save, in Description too. | Once something has changed |
| Cancel | Closes the sheet without saving changes. Dimmed while the sheet is publishing, saving or deleting. | While Publish or Save shows |
| Done | Closes the sheet. On the Mac, Return presses Done. | When there’s nothing to publish or save |
Status
| Status | What it means |
|---|---|
| Not Shared | The project has no share. |
| Preparing | The source is being packed for the first time: “Preparing your share…” with a progress bar (a spinner until the progress is known). The link and its buttons don’t show yet; Title, Description and PIN can still be changed. |
| Public | The link works. |
| Updating | A new copy is being packed: “Updating your share…”. The link keeps serving the previous copy until the new one is ready. |
| Failed | The first copy didn’t finish: “The source code couldn’t be exported. Try again.” with Try Again, which packs it again. See Messages. |
Publish a share
Step by step: Share or export a project’s source.
The PIN isn’t part of the link: send it to people yourself. You can read it here again at any time.
Change the title, description or PIN
Edit Title, Description or PIN, or turn Require PIN off, then tap Save. Turning Require PIN off and saving removes the PIN.
Update the shared copy
The share is a copy of the source at one moment. To share the project as it is now, tap Update on the Source Code row. The status turns to Updating; the link stays the same.
Stop sharing
Step by step: Share or export a project’s source.
The link stops working at once. A new share gets a new link. Moving the project to another Team also ends its share.
Messages
| Message | What it means | What to do |
|---|---|---|
| Delete Share?: “The public link will stop working. You can create a new share later.” | Asked before Delete Share. | Tap Delete Share, or Cancel. |
| “The source code couldn’t be exported. Try again.” | Packing the source failed, the first time or on Update. | Tap Try Again under the message. |
| “A PIN is 4 digits.” | The PIN wasn’t four digits. | Type four digits and tap Publish or Save again. |
| “This project’s Environment is offline. Open AirBuild on the Mac that hosts it and try again.” | The project is in a local Team whose Mac isn’t running AirBuild. | Open AirBuild on that Mac, then tap Try Again. |
| “This project’s Environment is still starting. Try again in a moment.” | The Team’s environment is waking up. | Wait, then tap Try Again. |
| “This project’s Environment needs an update before it can share.” | The Mac running the Team has an older AirBuild. | Update AirBuild on that Mac. |
| “This project is busy with another task. Wait for it to finish and try again.” | Something else is running on the project, such as another export. | Wait, then tap Try Again. |
Other failures show the reason in plain words with Try Again. If the sheet can’t load the share at all, it shows the reason and Try Again in place of the form.