diff --git a/ConfigUI/Package.swift b/ConfigUI/Package.swift index 0ba5678..2ed5f60 100644 --- a/ConfigUI/Package.swift +++ b/ConfigUI/Package.swift @@ -1,4 +1,19 @@ // swift-tools-version: 5.9 + +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import PackageDescription let package = Package( diff --git a/ConfigUI/Sources/AboutView.swift b/ConfigUI/Sources/AboutView.swift index b5ba965..b4bc7e3 100644 --- a/ConfigUI/Sources/AboutView.swift +++ b/ConfigUI/Sources/AboutView.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import SwiftUI /// App-level About window showing version, description, and project links. diff --git a/ConfigUI/Sources/Config.swift b/ConfigUI/Sources/Config.swift index aecaf89..8b9a0bd 100644 --- a/ConfigUI/Sources/Config.swift +++ b/ConfigUI/Sources/Config.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import Foundation import Yams diff --git a/ConfigUI/Sources/ConfigEditorView.swift b/ConfigUI/Sources/ConfigEditorView.swift index dc9d41a..9b42b8d 100644 --- a/ConfigUI/Sources/ConfigEditorView.swift +++ b/ConfigUI/Sources/ConfigEditorView.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import SwiftUI import UniformTypeIdentifiers diff --git a/ConfigUI/Sources/ConfigUIApp.swift b/ConfigUI/Sources/ConfigUIApp.swift index a56ad41..47095b1 100644 --- a/ConfigUI/Sources/ConfigUIApp.swift +++ b/ConfigUI/Sources/ConfigUIApp.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import SwiftUI /// App delegate that owns the RunnerStore and StatusBarController. diff --git a/ConfigUI/Sources/ConfigurationsView.swift b/ConfigUI/Sources/ConfigurationsView.swift index 967293d..cbd0323 100644 --- a/ConfigUI/Sources/ConfigurationsView.swift +++ b/ConfigUI/Sources/ConfigurationsView.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import SwiftUI /// The main management window: a `NavigationSplitView` with a sidebar listing diff --git a/ConfigUI/Sources/Constants.swift b/ConfigUI/Sources/Constants.swift index 6f2974b..50fb678 100644 --- a/ConfigUI/Sources/Constants.swift +++ b/ConfigUI/Sources/Constants.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import Foundation // MARK: - Application Identity diff --git a/ConfigUI/Sources/ControlSocketClient.swift b/ConfigUI/Sources/ControlSocketClient.swift index 80b6ded..3743f6b 100644 --- a/ConfigUI/Sources/ControlSocketClient.swift +++ b/ConfigUI/Sources/ControlSocketClient.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import Foundation import Network diff --git a/ConfigUI/Sources/LaunchBanner.swift b/ConfigUI/Sources/LaunchBanner.swift index 49d99ab..a67ee57 100644 --- a/ConfigUI/Sources/LaunchBanner.swift +++ b/ConfigUI/Sources/LaunchBanner.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import AppKit import SwiftUI diff --git a/ConfigUI/Sources/LogStore.swift b/ConfigUI/Sources/LogStore.swift index 653b411..fe8357e 100644 --- a/ConfigUI/Sources/LogStore.swift +++ b/ConfigUI/Sources/LogStore.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import Foundation import os diff --git a/ConfigUI/Sources/LogViewerView.swift b/ConfigUI/Sources/LogViewerView.swift index 72fd2c6..89ee465 100644 --- a/ConfigUI/Sources/LogViewerView.swift +++ b/ConfigUI/Sources/LogViewerView.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import SwiftUI import AppKit diff --git a/ConfigUI/Sources/MetricsTimeSeriesView.swift b/ConfigUI/Sources/MetricsTimeSeriesView.swift index 39ad7bf..d5a9657 100644 --- a/ConfigUI/Sources/MetricsTimeSeriesView.swift +++ b/ConfigUI/Sources/MetricsTimeSeriesView.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import SwiftUI import Charts diff --git a/ConfigUI/Sources/MiniBarGaugeView.swift b/ConfigUI/Sources/MiniBarGaugeView.swift index 56d1525..3cee8ac 100644 --- a/ConfigUI/Sources/MiniBarGaugeView.swift +++ b/ConfigUI/Sources/MiniBarGaugeView.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import AppKit /// Pure AppKit view that draws two tiny vertical bar gauges side by side, diff --git a/ConfigUI/Sources/RunnerManager.swift b/ConfigUI/Sources/RunnerManager.swift index d2ca5e0..24198c3 100644 --- a/ConfigUI/Sources/RunnerManager.swift +++ b/ConfigUI/Sources/RunnerManager.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import Foundation /// Manages a single Go CLI binary (`graftery-cli`) subprocess for one diff --git a/ConfigUI/Sources/RunnerStore.swift b/ConfigUI/Sources/RunnerStore.swift index 8819acb..64f50dc 100644 --- a/ConfigUI/Sources/RunnerStore.swift +++ b/ConfigUI/Sources/RunnerStore.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import Foundation /// Persistent state for runner configurations. Tracks which configs exist diff --git a/ConfigUI/Sources/StatusBarController.swift b/ConfigUI/Sources/StatusBarController.swift index 54dac53..1852bc1 100644 --- a/ConfigUI/Sources/StatusBarController.swift +++ b/ConfigUI/Sources/StatusBarController.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import AppKit import SwiftUI diff --git a/ConfigUI/Sources/WizardView.swift b/ConfigUI/Sources/WizardView.swift index 3d25669..41aee1e 100644 --- a/ConfigUI/Sources/WizardView.swift +++ b/ConfigUI/Sources/WizardView.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import SwiftUI import UniformTypeIdentifiers diff --git a/ConfigUI/UITests/MenuBarTests.swift b/ConfigUI/UITests/MenuBarTests.swift index 5486e42..78c46d2 100644 --- a/ConfigUI/UITests/MenuBarTests.swift +++ b/ConfigUI/UITests/MenuBarTests.swift @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + import XCTest /// UI tests for the Graftery menu bar app. diff --git a/LICENSE b/LICENSE new file mode 100644 index 0000000..d645695 --- /dev/null +++ b/LICENSE @@ -0,0 +1,202 @@ + + Apache License + Version 2.0, January 2004 + http://www.apache.org/licenses/ + + TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION + + 1. Definitions. + + "License" shall mean the terms and conditions for use, reproduction, + and distribution as defined by Sections 1 through 9 of this document. + + "Licensor" shall mean the copyright owner or entity authorized by + the copyright owner that is granting the License. + + "Legal Entity" shall mean the union of the acting entity and all + other entities that control, are controlled by, or are under common + control with that entity. For the purposes of this definition, + "control" means (i) the power, direct or indirect, to cause the + direction or management of such entity, whether by contract or + otherwise, or (ii) ownership of fifty percent (50%) or more of the + outstanding shares, or (iii) beneficial ownership of such entity. + + "You" (or "Your") shall mean an individual or Legal Entity + exercising permissions granted by this License. + + "Source" form shall mean the preferred form for making modifications, + including but not limited to software source code, documentation + source, and configuration files. + + "Object" form shall mean any form resulting from mechanical + transformation or translation of a Source form, including but + not limited to compiled object code, generated documentation, + and conversions to other media types. + + "Work" shall mean the work of authorship, whether in Source or + Object form, made available under the License, as indicated by a + copyright notice that is included in or attached to the work + (an example is provided in the Appendix below). + + "Derivative Works" shall mean any work, whether in Source or Object + form, that is based on (or derived from) the Work and for which the + editorial revisions, annotations, elaborations, or other modifications + represent, as a whole, an original work of authorship. For the purposes + of this License, Derivative Works shall not include works that remain + separable from, or merely link (or bind by name) to the interfaces of, + the Work and Derivative Works thereof. + + "Contribution" shall mean any work of authorship, including + the original version of the Work and any modifications or additions + to that Work or Derivative Works thereof, that is intentionally + submitted to Licensor for inclusion in the Work by the copyright owner + or by an individual or Legal Entity authorized to submit on behalf of + the copyright owner. For the purposes of this definition, "submitted" + means any form of electronic, verbal, or written communication sent + to the Licensor or its representatives, including but not limited to + communication on electronic mailing lists, source code control systems, + and issue tracking systems that are managed by, or on behalf of, the + Licensor for the purpose of discussing and improving the Work, but + excluding communication that is conspicuously marked or otherwise + designated in writing by the copyright owner as "Not a Contribution." + + "Contributor" shall mean Licensor and any individual or Legal Entity + on behalf of whom a Contribution has been received by Licensor and + subsequently incorporated within the Work. + + 2. Grant of Copyright License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + copyright license to reproduce, prepare Derivative Works of, + publicly display, publicly perform, sublicense, and distribute the + Work and such Derivative Works in Source or Object form. + + 3. Grant of Patent License. Subject to the terms and conditions of + this License, each Contributor hereby grants to You a perpetual, + worldwide, non-exclusive, no-charge, royalty-free, irrevocable + (except as stated in this section) patent license to make, have made, + use, offer to sell, sell, import, and otherwise transfer the Work, + where such license applies only to those patent claims licensable + by such Contributor that are necessarily infringed by their + Contribution(s) alone or by combination of their Contribution(s) + with the Work to which such Contribution(s) was submitted. If You + institute patent litigation against any entity (including a + cross-claim or counterclaim in a lawsuit) alleging that the Work + or a Contribution incorporated within the Work constitutes direct + or contributory patent infringement, then any patent licenses + granted to You under this License for that Work shall terminate + as of the date such litigation is filed. + + 4. Redistribution. You may reproduce and distribute copies of the + Work or Derivative Works thereof in any medium, with or without + modifications, and in Source or Object form, provided that You + meet the following conditions: + + (a) You must give any other recipients of the Work or + Derivative Works a copy of this License; and + + (b) You must cause any modified files to carry prominent notices + stating that You changed the files; and + + (c) You must retain, in the Source form of any Derivative Works + that You distribute, all copyright, patent, trademark, and + attribution notices from the Source form of the Work, + excluding those notices that do not pertain to any part of + the Derivative Works; and + + (d) If the Work includes a "NOTICE" text file as part of its + distribution, then any Derivative Works that You distribute must + include a readable copy of the attribution notices contained + within such NOTICE file, excluding those notices that do not + pertain to any part of the Derivative Works, in at least one + of the following places: within a NOTICE text file distributed + as part of the Derivative Works; within the Source form or + documentation, if provided along with the Derivative Works; or, + within a display generated by the Derivative Works, if and + wherever such third-party notices normally appear. The contents + of the NOTICE file are for informational purposes only and + do not modify the License. You may add Your own attribution + notices within Derivative Works that You distribute, alongside + or as an addendum to the NOTICE text from the Work, provided + that such additional attribution notices cannot be construed + as modifying the License. + + You may add Your own copyright statement to Your modifications and + may provide additional or different license terms and conditions + for use, reproduction, or distribution of Your modifications, or + for any such Derivative Works as a whole, provided Your use, + reproduction, and distribution of the Work otherwise complies with + the conditions stated in this License. + + 5. Submission of Contributions. Unless You explicitly state otherwise, + any Contribution intentionally submitted for inclusion in the Work + by You to the Licensor shall be under the terms and conditions of + this License, without any additional terms or conditions. + Notwithstanding the above, nothing herein shall supersede or modify + the terms of any separate license agreement you may have executed + with Licensor regarding such Contributions. + + 6. Trademarks. This License does not grant permission to use the trade + names, trademarks, service marks, or product names of the Licensor, + except as required for reasonable and customary use in describing the + origin of the Work and reproducing the content of the NOTICE file. + + 7. Disclaimer of Warranty. Unless required by applicable law or + agreed to in writing, Licensor provides the Work (and each + Contributor provides its Contributions) on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or + implied, including, without limitation, any warranties or conditions + of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A + PARTICULAR PURPOSE. You are solely responsible for determining the + appropriateness of using or redistributing the Work and assume any + risks associated with Your exercise of permissions under this License. + + 8. Limitation of Liability. In no event and under no legal theory, + whether in tort (including negligence), contract, or otherwise, + unless required by applicable law (such as deliberate and grossly + negligent acts) or agreed to in writing, shall any Contributor be + liable to You for damages, including any direct, indirect, special, + incidental, or consequential damages of any character arising as a + result of this License or out of the use or inability to use the + Work (including but not limited to damages for loss of goodwill, + work stoppage, computer failure or malfunction, or any and all + other commercial damages or losses), even if such Contributor + has been advised of the possibility of such damages. + + 9. Accepting Warranty or Additional Liability. While redistributing + the Work or Derivative Works thereof, You may choose to offer, + and charge a fee for, acceptance of support, warranty, indemnity, + or other liability obligations and/or rights consistent with this + License. However, in accepting such obligations, You may act only + on Your own behalf and on Your sole responsibility, not on behalf + of any other Contributor, and only if You agree to indemnify, + defend, and hold each Contributor harmless for any liability + incurred by, or claims asserted against, such Contributor by reason + of your accepting any such warranty or additional liability. + + END OF TERMS AND CONDITIONS + + APPENDIX: How to apply the Apache License to your work. + + To apply the Apache License to your work, attach the following + boilerplate notice, with the fields enclosed by brackets "[]" + replaced with your own identifying information. (Don't include + the brackets!) The text should be enclosed in the appropriate + comment syntax for the file format. We also recommend that a + file or class name and description of purpose be included on the + same "printed page" as the copyright notice for easier + identification within third-party archives. + + Copyright [yyyy] [name of copyright owner] + + Licensed under the Apache License, Version 2.0 (the "License"); + you may not use this file except in compliance with the License. + You may obtain a copy of the License at + + http://www.apache.org/licenses/LICENSE-2.0 + + Unless required by applicable law or agreed to in writing, software + distributed under the License is distributed on an "AS IS" BASIS, + WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + See the License for the specific language governing permissions and + limitations under the License. diff --git a/README.md b/README.md index 761ee85..fac0333 100644 --- a/README.md +++ b/README.md @@ -1,81 +1,149 @@ -# Graftery +
+
+
+ Ephemeral macOS VMs for GitHub Actions — powered by Tart +
-Graftery bridges GitHub Actions with ephemeral macOS virtual machines running on Apple hardware. It uses the same scale-set protocol that [Actions Runner Controller (ARC)](https://github.com/actions/actions-runner-controller) uses inside Kubernetes, but runs directly on a Mac host. +
+
+
+
+
+
![]() |
+![]() |
+
| Step 1 — Name your configuration | +Step 3 — Authentication | +
+
+
+
+
tart not found+ Built for Apple silicon · Powered by Tart · Speaks actions/scaleset +
diff --git a/config.go b/config.go index f62c2ba..c224119 100644 --- a/config.go +++ b/config.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package main implements graftery, a GitHub Actions runner scale set // controller that provisions ephemeral Tart macOS VMs for each job. package main diff --git a/configfile.go b/configfile.go index 5a5bf59..826f726 100644 --- a/configfile.go +++ b/configfile.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/constants.go b/constants.go index 4770b99..7288e6a 100644 --- a/constants.go +++ b/constants.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import "time" diff --git a/control.go b/control.go index e6681fc..82145a7 100644 --- a/control.go +++ b/control.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/docs/screenshots/config-editor.png b/docs/screenshots/config-editor.png new file mode 100644 index 0000000..cac51c8 Binary files /dev/null and b/docs/screenshots/config-editor.png differ diff --git a/docs/screenshots/menu-bar.png b/docs/screenshots/menu-bar.png new file mode 100644 index 0000000..4ed205a Binary files /dev/null and b/docs/screenshots/menu-bar.png differ diff --git a/docs/screenshots/wizard-auth.png b/docs/screenshots/wizard-auth.png new file mode 100644 index 0000000..ffa9361 Binary files /dev/null and b/docs/screenshots/wizard-auth.png differ diff --git a/docs/screenshots/wizard-name.png b/docs/screenshots/wizard-name.png new file mode 100644 index 0000000..04eb413 Binary files /dev/null and b/docs/screenshots/wizard-name.png differ diff --git a/dryrun.go b/dryrun.go index a4eaf7e..ad4e3f7 100644 --- a/dryrun.go +++ b/dryrun.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/examples/ios-react-native/bake.d/50-install-cocoapods.sh b/examples/ios-react-native/bake.d/50-install-cocoapods.sh old mode 100755 new mode 100644 index bd40310..92cbef0 --- a/examples/ios-react-native/bake.d/50-install-cocoapods.sh +++ b/examples/ios-react-native/bake.d/50-install-cocoapods.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2026 Matt Wise +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Installs CocoaPods into the VM image. # # The Cirrus base image ships with system Ruby 2.6 which is too old for diff --git a/examples/ios-react-native/bake.d/51-install-ccache.sh b/examples/ios-react-native/bake.d/51-install-ccache.sh old mode 100755 new mode 100644 index e8ae08a..8e31f73 --- a/examples/ios-react-native/bake.d/51-install-ccache.sh +++ b/examples/ios-react-native/bake.d/51-install-ccache.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2026 Matt Wise +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Installs ccache for faster C/C++ compilation of React Native native modules. # # ccache caches compiled object files. When the same source file is compiled diff --git a/icons/README.md b/icons/README.md new file mode 100644 index 0000000..fda31b6 --- /dev/null +++ b/icons/README.md @@ -0,0 +1,32 @@ +# Graftery Icon Set + +## Concept + +Asymmetric graft metaphor: a thick rootstock (left) and thin wiggly scion +(upper-right) converge at a coral union band, generating ephemeral macOS VMs +below. + +### VM lifecycle (top to bottom) + +- **Ghost dashed box** -- destroyed / not-yet-started VM +- **Solid coral band** -- running VM (graft union point) +- **Open-bottom box** -- VM being assembled + +## Color palette + +| Role | Hex | +|------------|-----------| +| Background | `#0a1a20` | +| Rootstock | `#0e6878` | +| Scion | `#1aabb8` | +| Union band | `#c94a30` | + +## Files + +| File | Size | Purpose | +|------------------|--------|------------------------------------------| +| `icon.svg` | 1024px | Master icon (full detail, all VM states) | +| `icon-512.svg` | 512px | App icon with full detail | +| `icon-128.svg` | 128px | Dock/Finder (simplified, no ghost box) | + +`docs/icon.png` is generated from `icon.svg` for use in the project README. diff --git a/icons/icon-128.svg b/icons/icon-128.svg new file mode 100644 index 0000000..815113f --- /dev/null +++ b/icons/icon-128.svg @@ -0,0 +1,23 @@ + diff --git a/icons/icon-512.svg b/icons/icon-512.svg new file mode 100644 index 0000000..0858167 --- /dev/null +++ b/icons/icon-512.svg @@ -0,0 +1,28 @@ + diff --git a/icons/icon.png b/icons/icon.png new file mode 100644 index 0000000..bb75e5c Binary files /dev/null and b/icons/icon.png differ diff --git a/icons/icon.svg b/icons/icon.svg new file mode 100644 index 0000000..1b870b9 --- /dev/null +++ b/icons/icon.svg @@ -0,0 +1,46 @@ + diff --git a/integration_test.go b/integration_test.go index 1f8940f..14e31f2 100644 --- a/integration_test.go +++ b/integration_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/main.go b/main.go index e800284..50bc8c8 100644 --- a/main.go +++ b/main.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/metrics.go b/metrics.go index 4fd5167..26e3faf 100644 --- a/metrics.go +++ b/metrics.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/metrics_test.go b/metrics_test.go index c07250d..63affe1 100644 --- a/metrics_test.go +++ b/metrics_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/packaging/build-dmg.sh b/packaging/build-dmg.sh index d121f97..dc6194d 100755 --- a/packaging/build-dmg.sh +++ b/packaging/build-dmg.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2026 Matt Wise +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Creates a drag-and-drop DMG installer for Graftery. # # Downloads create-dmg (pinned to a specific SHA) into a local bin directory @@ -49,6 +64,7 @@ cp -R "$APP_PATH" "$STAGING_DIR/" echo "Building DMG..." "$CREATE_DMG" \ --volname "Graftery" \ + --volicon "$SCRIPT_DIR/AppIcon.icns" \ --background "$SCRIPT_DIR/dmg-background.png" \ --window-pos 200 120 \ --window-size 600 400 \ @@ -63,6 +79,31 @@ echo "Building DMG..." rm -rf "$STAGING_DIR" +# Stamp the Graftery icon onto the .dmg file itself so Finder shows it in +# Downloads / Desktop instead of the generic white-page icon. +# 1. sips -i embeds the icon into the .icns resource fork +# 2. DeRez extracts that resource as Rez source +# 3. Rez appends the resource to the DMG +# 4. SetFile -a C sets the kHasCustomIcon Finder flag +# Requires Xcode command-line tools (ships with macOS developer tools). +ICON_ICNS="$SCRIPT_DIR/AppIcon.icns" +if [ -f "$ICON_ICNS" ]; then + echo "Setting custom icon on DMG file..." + ICON_TMP="$(mktemp -d)/icon_tmp" + cp "$ICON_ICNS" "$ICON_TMP.icns" + sips -i "$ICON_TMP.icns" >/dev/null 2>&1 || true + DeRez -only icns "$ICON_TMP.icns" > "$ICON_TMP.rsrc" 2>/dev/null || true + if [ -s "$ICON_TMP.rsrc" ]; then + Rez -append "$ICON_TMP.rsrc" -o "$DMG_PATH" + SetFile -a C "$DMG_PATH" + echo "Custom icon set on DMG." + else + echo "Warning: could not extract icon resource; DMG will use default icon." + fi + rm -f "$ICON_TMP.icns" "$ICON_TMP.rsrc" + rmdir "$(dirname "$ICON_TMP")" 2>/dev/null || true +fi + echo "" echo "Created $DMG_PATH" ls -lh "$DMG_PATH" diff --git a/packaging/dmg-background.png b/packaging/dmg-background.png index 8cf1fc4..2f7ec7c 100644 Binary files a/packaging/dmg-background.png and b/packaging/dmg-background.png differ diff --git a/packaging/generate-dmg-background.py b/packaging/generate-dmg-background.py new file mode 100644 index 0000000..05303b4 --- /dev/null +++ b/packaging/generate-dmg-background.py @@ -0,0 +1,178 @@ +#!/usr/bin/env python3 + +# Copyright 2026 Matt Wise +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + +""" +Generates the DMG installer background image for Graftery. + +The background uses a light-teal radial gradient with a faint helix motif +and a coral drag-arrow between the two icon positions. Finder draws its own +icon labels, so we deliberately omit text from the image. + +Color palette derived from icons/icon.svg: + - Teal strand: #0e6878 + - Darker teal: #094858 + - Light teal accent: #1a8090 + - Coral accent: #c94a30 / #e86040 / #f07050 + +DMG window geometry (must match build-dmg.sh --window-size / --icon positions): + - Window: 600 x 400 + - Graftery.app centred at (175, 190) + - Applications centred at (425, 190) +""" + +from PIL import Image, ImageDraw, ImageFilter +import math, os + +WIDTH, HEIGHT = 600, 400 + +# --- palette --- +# Background kept light so Finder's black icon labels remain readable. +BG_DARK = (180, 215, 220) # light teal (edge of radial gradient) +BG_MID = (210, 235, 238) # very light teal (centre of radial gradient) +# Helix / accent colours taken directly from icons/icon.svg. +TEAL = (14, 104, 120) # #0e6878 rootstock strand +TEAL_DK = (9, 72, 88) # #094858 scion continuation +TEAL_LT = (26, 128, 144) # #1a8090 helix crossbar tint +CORAL = (201, 74, 48) # #c94a30 union band / arrow base +CORAL_LT = (240, 112, 80) # #f07050 arrowhead fill +CORAL_BRT = (232, 96, 64) # #e86040 arrow shaft + + +def lerp_color(c1, c2, t): + return tuple(int(a + (b - a) * t) for a, b in zip(c1, c2)) + + +def draw_gradient_bg(img): + """Radial gradient: slightly lighter in centre, dark at edges.""" + draw = ImageDraw.Draw(img) + cx, cy = WIDTH // 2, HEIGHT // 2 + max_dist = math.hypot(cx, cy) + for y in range(HEIGHT): + for x in range(WIDTH): + d = math.hypot(x - cx, y - cy) / max_dist + t = d * d # ease-out for subtlety + color = lerp_color(BG_MID, BG_DARK, t) + draw.point((x, y), fill=(*color, 255)) + + +def draw_subtle_helix(img): + """Draw faint helix curves echoing the icon DNA motif.""" + for strand_offset, color, alpha in [(0, TEAL, 45), (math.pi, TEAL_DK, 35)]: + overlay = Image.new("RGBA", (WIDTH, HEIGHT), (0, 0, 0, 0)) + od = ImageDraw.Draw(overlay) + amplitude = 70 + freq = 2.5 * math.pi / WIDTH + cy = HEIGHT // 2 + prev = None + for x in range(WIDTH): + y = int(cy + amplitude * math.sin(freq * x + strand_offset)) + if prev is not None: + od.line([prev, (x, y)], fill=(*color, alpha), width=4) + prev = (x, y) + img.paste(Image.alpha_composite( + Image.new("RGBA", img.size, (0, 0, 0, 0)), overlay), mask=overlay) + + # Faint crossbars at helix crossing points + overlay = Image.new("RGBA", (WIDTH, HEIGHT), (0, 0, 0, 0)) + od = ImageDraw.Draw(overlay) + freq = 2.5 * math.pi / WIDTH + cy = HEIGHT // 2 + for x in range(0, WIDTH, 8): + y1 = int(cy + 70 * math.sin(freq * x)) + y2 = int(cy + 70 * math.sin(freq * x + math.pi)) + # Only draw crossbars near where strands are close + if abs(y1 - y2) < 50: + od.line([(x, y1), (x, y2)], fill=(*TEAL_LT, 20), width=1) + img.paste(Image.alpha_composite( + Image.new("RGBA", img.size, (0, 0, 0, 0)), overlay), mask=overlay) + + +def draw_arrow(img): + """Draw a coral arrow with glow from app icon area to Applications area.""" + y = 190 + x_start = 238 + x_end = 362 + head_size = 20 + + # --- Glow layer (blurred coral on transparent) --- + glow = Image.new("RGBA", (WIDTH, HEIGHT), (0, 0, 0, 0)) + gd = ImageDraw.Draw(glow) + # Thick soft shaft + gd.line([(x_start - 4, y), (x_end - head_size + 4, y)], + fill=(*CORAL, 80), width=14) + # Soft arrowhead + head_pts = [ + (x_end + 4, y), + (x_end - head_size - 4, y - head_size // 2 - 6), + (x_end - head_size - 4, y + head_size // 2 + 6), + ] + gd.polygon(head_pts, fill=(*CORAL, 80)) + glow = glow.filter(ImageFilter.GaussianBlur(radius=10)) + img.paste(Image.alpha_composite( + Image.new("RGBA", img.size, (0, 0, 0, 0)), glow), mask=glow) + + # --- Crisp arrow on top --- + overlay = Image.new("RGBA", (WIDTH, HEIGHT), (0, 0, 0, 0)) + od = ImageDraw.Draw(overlay) + + # Shaft with rounded ends + od.line([(x_start, y), (x_end - head_size, y)], + fill=(*CORAL_BRT, 230), width=4) + # Round caps + od.ellipse([(x_start - 2, y - 2), (x_start + 2, y + 2)], + fill=(*CORAL_BRT, 230)) + + # Arrowhead + head_pts = [ + (x_end, y), + (x_end - head_size, y - head_size // 2 - 2), + (x_end - head_size, y + head_size // 2 + 2), + ] + od.polygon(head_pts, fill=(*CORAL_LT, 240)) + od.polygon(head_pts, outline=(*CORAL, 200)) + + img.paste(Image.alpha_composite( + Image.new("RGBA", img.size, (0, 0, 0, 0)), overlay), mask=overlay) + + +def draw_top_accent(img): + """Thin teal accent line at the very top.""" + overlay = Image.new("RGBA", (WIDTH, HEIGHT), (0, 0, 0, 0)) + od = ImageDraw.Draw(overlay) + for y in range(3): + alpha = int(40 * (1.0 - y / 3.0)) + od.line([(0, y), (WIDTH, y)], fill=(*TEAL_DK, alpha)) + img.paste(Image.alpha_composite( + Image.new("RGBA", img.size, (0, 0, 0, 0)), overlay), mask=overlay) + + +def main(): + img = Image.new("RGBA", (WIDTH, HEIGHT), (*BG_DARK, 255)) + + draw_gradient_bg(img) + draw_subtle_helix(img) + draw_top_accent(img) + draw_arrow(img) + + # Final output as RGB PNG (DMG backgrounds don't need alpha) + out = os.path.join(os.path.dirname(os.path.abspath(__file__)), + "dmg-background.png") + img.convert("RGB").save(out, "PNG") + print(f"Created {out} ({WIDTH}x{HEIGHT})") + + +if __name__ == "__main__": + main() diff --git a/packaging/generate-icons.sh b/packaging/generate-icons.sh index 0d5653e..121508b 100755 --- a/packaging/generate-icons.sh +++ b/packaging/generate-icons.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2026 Matt Wise +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Generates AppIcon.icns from a source PNG. # Usage: ./generate-icons.sh [source.png] # diff --git a/provisioner/bake.go b/provisioner/bake.go index ae8bdb0..5ce6faf 100644 --- a/provisioner/bake.go +++ b/provisioner/bake.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provisioner import ( diff --git a/provisioner/constants.go b/provisioner/constants.go index e2d0d95..69a1845 100644 --- a/provisioner/constants.go +++ b/provisioner/constants.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provisioner // --------------------------------------------------------------------------- diff --git a/provisioner/embed.go b/provisioner/embed.go index f1e3b04..a1bd9ba 100644 --- a/provisioner/embed.go +++ b/provisioner/embed.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provisioner import "embed" diff --git a/provisioner/hash.go b/provisioner/hash.go index 8cca0ce..07f8268 100644 --- a/provisioner/hash.go +++ b/provisioner/hash.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provisioner import ( diff --git a/provisioner/hash_test.go b/provisioner/hash_test.go index 119ed23..95fe200 100644 --- a/provisioner/hash_test.go +++ b/provisioner/hash_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provisioner import "testing" diff --git a/provisioner/hooks.go b/provisioner/hooks.go index f8c171a..2d72408 100644 --- a/provisioner/hooks.go +++ b/provisioner/hooks.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provisioner // Hook scripts are now handled entirely via the shared directory mount: diff --git a/provisioner/provisioner.go b/provisioner/provisioner.go index 485226d..afcb497 100644 --- a/provisioner/provisioner.go +++ b/provisioner/provisioner.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + // Package provisioner implements the "bake and cache" strategy for preparing // macOS VM images. It takes a base tart VM image, clones it, boots the clone, // runs provisioning scripts inside the guest via a shared directory mount, diff --git a/provisioner/provisioner_test.go b/provisioner/provisioner_test.go index 77a7058..ee681cb 100644 --- a/provisioner/provisioner_test.go +++ b/provisioner/provisioner_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provisioner import "testing" diff --git a/provisioner/scripts.go b/provisioner/scripts.go index 551688e..9c44ad4 100644 --- a/provisioner/scripts.go +++ b/provisioner/scripts.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provisioner import ( diff --git a/provisioner/scripts/bake.d/01-startup-script.sh b/provisioner/scripts/bake.d/01-startup-script.sh index f5e3492..57ca8ed 100644 --- a/provisioner/scripts/bake.d/01-startup-script.sh +++ b/provisioner/scripts/bake.d/01-startup-script.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2026 Matt Wise +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Installs the arc-runner startup script into the VM. # This script is invoked by the host via `tart exec` after the VM boots, # and handles reading the JIT config from the shared mount, starting diff --git a/provisioner/scripts/bake.d/02-setup-info.py b/provisioner/scripts/bake.d/02-setup-info.py index 984e03e..263d738 100644 --- a/provisioner/scripts/bake.d/02-setup-info.py +++ b/provisioner/scripts/bake.d/02-setup-info.py @@ -1,4 +1,19 @@ #!/usr/bin/env python3 + +# Copyright 2026 Matt Wise +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + """Generates ~/actions-runner/.setup_info for the GitHub Actions UI. The .setup_info file is read by the runner agent and displayed in the diff --git a/provisioner/scripts/bake.d/03-install-hooks.sh b/provisioner/scripts/bake.d/03-install-hooks.sh index 7f3b576..20920b7 100644 --- a/provisioner/scripts/bake.d/03-install-hooks.sh +++ b/provisioner/scripts/bake.d/03-install-hooks.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2026 Matt Wise +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Installs pre/post job hooks from the shared mount into the VM. # # During provisioning, the host mounts a directory containing all resolved diff --git a/provisioner/scripts/hooks/post.d/01-job-summary.sh b/provisioner/scripts/hooks/post.d/01-job-summary.sh index 0c0964b..7c99b2e 100644 --- a/provisioner/scripts/hooks/post.d/01-job-summary.sh +++ b/provisioner/scripts/hooks/post.d/01-job-summary.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2026 Matt Wise +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Post-job hook: logs job summary after the job completes. # Output uses ::group:: workflow commands for collapsible sections in the UI. echo "::group::Graftery Post-Job" diff --git a/provisioner/scripts/hooks/pre.d/01-system-info.sh b/provisioner/scripts/hooks/pre.d/01-system-info.sh index a0f7574..57f8a18 100644 --- a/provisioner/scripts/hooks/pre.d/01-system-info.sh +++ b/provisioner/scripts/hooks/pre.d/01-system-info.sh @@ -1,4 +1,19 @@ #!/bin/bash + +# Copyright 2026 Matt Wise +# +# Licensed under the Apache License, Version 2.0 (the "License"); +# you may not use this file except in compliance with the License. +# You may obtain a copy of the License at +# +# http://www.apache.org/licenses/LICENSE-2.0 +# +# Unless required by applicable law or agreed to in writing, software +# distributed under the License is distributed on an "AS IS" BASIS, +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +# See the License for the specific language governing permissions and +# limitations under the License. + # Pre-job hook: logs system information before the job starts. # Output uses ::group:: workflow commands for collapsible sections in the UI. echo "::group::Graftery Pre-Job" diff --git a/provisioner/scripts_test.go b/provisioner/scripts_test.go index f250bc1..5331241 100644 --- a/provisioner/scripts_test.go +++ b/provisioner/scripts_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provisioner import ( diff --git a/provisioner/tart.go b/provisioner/tart.go index 5d80a2c..ee89094 100644 --- a/provisioner/tart.go +++ b/provisioner/tart.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package provisioner import ( diff --git a/run.go b/run.go index f9c8eed..d10be64 100644 --- a/run.go +++ b/run.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/scaler.go b/scaler.go index 0bbb7be..f3ccd48 100644 --- a/scaler.go +++ b/scaler.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/status.go b/status.go index 1d5c5a2..4e6dee2 100644 --- a/status.go +++ b/status.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/tart.go b/tart.go index f489177..c6eb6b3 100644 --- a/tart.go +++ b/tart.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/tart_adapter.go b/tart_adapter.go index afc8e84..ff1d4f5 100644 --- a/tart_adapter.go +++ b/tart_adapter.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import ( diff --git a/tart_test.go b/tart_test.go index df08f39..15455fe 100644 --- a/tart_test.go +++ b/tart_test.go @@ -1,3 +1,17 @@ +// Copyright 2026 Matt Wise +// +// Licensed under the Apache License, Version 2.0 (the "License"); +// you may not use this file except in compliance with the License. +// You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, software +// distributed under the License is distributed on an "AS IS" BASIS, +// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. +// See the License for the specific language governing permissions and +// limitations under the License. + package main import (