SPB Git

spb/zyquo-atlas Public License

The AI-native macOS web browser — every surface, intelligent.

Swift 75.2% JavaScript 22% Shell 2% Makefile 0.9%
1.0 KB · 32 lines swift
Raw Blame History
1//2//  main.swift3//  Zyquo Atlas4//5//  Author: Simon-Pierre Boucher6//  Mail: contact@spboucher.ai7//8//  zyquo-verify — thin launcher for the Phase 7 harness. The harness itself9//  lives inside the ZyquoAtlas binary (`--verify`) so it exercises the exact10//  production provider clients; this target execs the sibling binary.11//1213import Foundation1415let selfURL = URL(fileURLWithPath: CommandLine.arguments[0]).resolvingSymlinksInPath()16let appBinary = selfURL.deletingLastPathComponent().appendingPathComponent("ZyquoAtlas")1718guard FileManager.default.isExecutableFile(atPath: appBinary.path) else {19    FileHandle.standardError.write(Data(20        "error: ZyquoAtlas binary not found next to zyquo-verify (build with `swift build`)\n".utf821    ))22    exit(1)23}2425let process = Process()26process.executableURL = appBinary27process.arguments = ["--verify"] + CommandLine.arguments.dropFirst()28process.environment = ProcessInfo.processInfo.environment29try process.run()30process.waitUntilExit()31exit(process.terminationStatus)32