Builder v2: local project browser + multi-team ASC keys
Rewrites the builder console to browse local Xcode projects instead of accepting source uploads or git URLs. Replaces the devices page with a profiles page that manages ad-hoc provisioning profiles and lists registered bundle IDs per team. Adds multi-account support: ASC API keys are now stored in an asc_keys table keyed by team_id (team_name, key_id, issuer_id, p8_filename). At build time, the worker reads DEVELOPMENT_TEAM from the Xcode project and auto-picks the matching key for fastlane sigh + JWT signing. Legacy single-key settings auto-migrate on first boot. Fixes storefront IPA parser to handle binary plists produced by Xcode. Drops the enrollment bridge, device management routes, and direct ASC API client -- fastlane sigh handles profile lifecycle now. Co-Authored-By: Claude Opus 4.7 (1M context) <noreply@anthropic.com>
This commit is contained in:
@@ -1,9 +1,10 @@
|
||||
<!-- Include pattern note: this file is not served directly; each page hand-inlines the nav for simplicity. -->
|
||||
<header>
|
||||
<div class="header-left"><h1>🔨 Builder</h1></div>
|
||||
<div class="header-left"><h1>Builder</h1></div>
|
||||
<nav>
|
||||
<a href="/">Builds</a>
|
||||
<a href="/devices">Devices</a>
|
||||
<a href="/build">New Build</a>
|
||||
<a href="/profiles">Profiles</a>
|
||||
<a href="/settings">Settings</a>
|
||||
<a href="/logout" class="logout">Logout</a>
|
||||
</nav>
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="header-left"><h1>🔨 Builder</h1></div>
|
||||
<div class="header-left"><h1>Builder</h1></div>
|
||||
<nav>
|
||||
<a href="/">Builds</a>
|
||||
<a href="/build" class="active">New Build</a>
|
||||
<a href="/devices">Devices</a>
|
||||
<a href="/profiles">Profiles</a>
|
||||
<a href="/settings">Settings</a>
|
||||
<a href="/logout" class="logout">Logout</a>
|
||||
</nav>
|
||||
@@ -22,40 +22,26 @@
|
||||
<h1 class="page-title">New Build</h1>
|
||||
|
||||
<div class="section">
|
||||
<h2>From source archive</h2>
|
||||
<h2>Select Xcode Project</h2>
|
||||
<div class="card">
|
||||
<form id="upload-form" enctype="multipart/form-data">
|
||||
<label>Archive (.zip or .tar.gz)</label>
|
||||
<input type="file" name="source" id="source-input" accept=".zip,.tar.gz,.tgz" required>
|
||||
<label>Scheme (optional)</label>
|
||||
<input type="text" name="scheme" placeholder="leave blank to use the first scheme">
|
||||
<div class="btn-row">
|
||||
<button type="submit">Queue Build</button>
|
||||
</div>
|
||||
</form>
|
||||
<div id="path-bar" class="path-bar"></div>
|
||||
<div id="file-list" class="file-list">
|
||||
<p style="color:var(--text-muted)">Loading...</p>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>From git URL</h2>
|
||||
<div id="project-config" class="section" style="display:none">
|
||||
<h2>Build Configuration</h2>
|
||||
<div class="card">
|
||||
<form id="git-form">
|
||||
<label>Repository URL</label>
|
||||
<input type="text" name="url" placeholder="git@gitea.treytartt.com:user/repo.git or https://…">
|
||||
<div class="field-group">
|
||||
<div>
|
||||
<label>Branch (optional)</label>
|
||||
<input type="text" name="branch" placeholder="main">
|
||||
</div>
|
||||
<div>
|
||||
<label>Scheme (optional)</label>
|
||||
<input type="text" name="scheme" placeholder="first scheme">
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-row">
|
||||
<button type="submit">Queue Build</button>
|
||||
</div>
|
||||
</form>
|
||||
<p id="selected-project" class="mono" style="font-size:13px;color:var(--text-muted);margin-bottom:12px"></p>
|
||||
<label>Scheme</label>
|
||||
<select id="scheme-select" disabled>
|
||||
<option>Select a project first</option>
|
||||
</select>
|
||||
<div class="btn-row">
|
||||
<button id="build-btn" type="button" disabled>Build</button>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
|
||||
@@ -8,11 +8,11 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="header-left"><h1>🔨 Builder</h1></div>
|
||||
<div class="header-left"><h1>Builder</h1></div>
|
||||
<nav>
|
||||
<a href="/" class="active">Builds</a>
|
||||
<a href="/build">New Build</a>
|
||||
<a href="/devices">Devices</a>
|
||||
<a href="/profiles">Profiles</a>
|
||||
<a href="/settings">Settings</a>
|
||||
<a href="/logout" class="logout">Logout</a>
|
||||
</nav>
|
||||
|
||||
@@ -1,56 +0,0 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Devices - Builder</title>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="header-left"><h1>🔨 Builder</h1></div>
|
||||
<nav>
|
||||
<a href="/">Builds</a>
|
||||
<a href="/devices" class="active">Devices</a>
|
||||
<a href="/settings">Settings</a>
|
||||
<a href="/logout" class="logout">Logout</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<h1 class="page-title">Devices</h1>
|
||||
|
||||
<div class="section">
|
||||
<h2>Register a device</h2>
|
||||
<div class="card">
|
||||
<form id="add-form">
|
||||
<div class="field-group">
|
||||
<div>
|
||||
<label>UDID</label>
|
||||
<input type="text" name="udid" placeholder="40-char hex or 25-char UUID format" required autocomplete="off">
|
||||
</div>
|
||||
<div>
|
||||
<label>Name</label>
|
||||
<input type="text" name="name" placeholder="Trey's iPhone" autocomplete="off">
|
||||
</div>
|
||||
</div>
|
||||
<div class="btn-row">
|
||||
<button type="submit">Add Device</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>Registered devices</h2>
|
||||
<div id="devices-container">
|
||||
<div class="card"><p style="color:var(--text-muted)">Loading…</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="toast" class="toast"></div>
|
||||
</main>
|
||||
|
||||
<script src="/js/devices.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -8,10 +8,11 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="header-left"><h1>🔨 Builder</h1></div>
|
||||
<div class="header-left"><h1>Builder</h1></div>
|
||||
<nav>
|
||||
<a href="/" class="active">Builds</a>
|
||||
<a href="/devices">Devices</a>
|
||||
<a href="/build">New Build</a>
|
||||
<a href="/profiles">Profiles</a>
|
||||
<a href="/settings">Settings</a>
|
||||
<a href="/logout" class="logout">Logout</a>
|
||||
</nav>
|
||||
|
||||
43
builder/views/profiles.html
Normal file
43
builder/views/profiles.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<!DOCTYPE html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>Profiles - Builder</title>
|
||||
<link rel="stylesheet" href="/css/style.css">
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="header-left"><h1>Builder</h1></div>
|
||||
<nav>
|
||||
<a href="/">Builds</a>
|
||||
<a href="/build">New Build</a>
|
||||
<a href="/profiles" class="active">Profiles</a>
|
||||
<a href="/settings">Settings</a>
|
||||
<a href="/logout" class="logout">Logout</a>
|
||||
</nav>
|
||||
</header>
|
||||
|
||||
<main>
|
||||
<h1 class="page-title">Provisioning Profiles</h1>
|
||||
|
||||
<div class="section">
|
||||
<h2>App Store Connect Bundle IDs</h2>
|
||||
<div id="bundle-ids-container">
|
||||
<div class="card"><p style="color:var(--text-muted)">Loading bundle IDs from Apple...</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>Installed Ad-Hoc Profiles</h2>
|
||||
<div id="profiles-container">
|
||||
<div class="card"><p style="color:var(--text-muted)">Loading...</p></div>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div id="toast" class="toast"></div>
|
||||
</main>
|
||||
|
||||
<script src="/js/profiles.js"></script>
|
||||
</body>
|
||||
</html>
|
||||
@@ -8,10 +8,11 @@
|
||||
</head>
|
||||
<body>
|
||||
<header>
|
||||
<div class="header-left"><h1>🔨 Builder</h1></div>
|
||||
<div class="header-left"><h1>Builder</h1></div>
|
||||
<nav>
|
||||
<a href="/">Builds</a>
|
||||
<a href="/devices">Devices</a>
|
||||
<a href="/build">New Build</a>
|
||||
<a href="/profiles">Profiles</a>
|
||||
<a href="/settings" class="active">Settings</a>
|
||||
<a href="/logout" class="logout">Logout</a>
|
||||
</nav>
|
||||
@@ -21,41 +22,58 @@
|
||||
<h1 class="page-title">Settings</h1>
|
||||
|
||||
<div class="section">
|
||||
<h2>App Store Connect API</h2>
|
||||
<h2>Developer Accounts</h2>
|
||||
<p style="font-size:13px;color:var(--text-muted);margin-bottom:12px">
|
||||
One App Store Connect API key per Apple Developer team. Used by fastlane to generate ad-hoc provisioning profiles.
|
||||
The build worker auto-picks the key whose <code>team_id</code> matches the Xcode project's <code>DEVELOPMENT_TEAM</code>.
|
||||
</p>
|
||||
<div class="card">
|
||||
<form id="asc-form">
|
||||
<div id="asc-keys-table"></div>
|
||||
</div>
|
||||
|
||||
<h3 style="margin-top:20px">Add Developer Account</h3>
|
||||
<div class="card">
|
||||
<form id="add-key-form">
|
||||
<div class="field-group">
|
||||
<div>
|
||||
<label>Team Name (label)</label>
|
||||
<input type="text" name="team_name" placeholder="88Oak Apps" autocomplete="off" required>
|
||||
</div>
|
||||
<div>
|
||||
<label>Team ID</label>
|
||||
<input type="text" name="team_id" placeholder="ABCDE12345" autocomplete="off" required>
|
||||
</div>
|
||||
</div>
|
||||
<div class="field-group">
|
||||
<div>
|
||||
<label>Key ID</label>
|
||||
<input type="text" name="asc_key_id" placeholder="ABC123DEF4" autocomplete="off">
|
||||
<input type="text" name="key_id" placeholder="ABC123DEF4" autocomplete="off" required>
|
||||
</div>
|
||||
<div>
|
||||
<label>Issuer ID</label>
|
||||
<input type="text" name="asc_issuer_id" placeholder="00000000-0000-0000-0000-000000000000" autocomplete="off">
|
||||
<input type="text" name="issuer_id" placeholder="00000000-0000-0000-0000-000000000000" autocomplete="off" required>
|
||||
</div>
|
||||
</div>
|
||||
<label>Private Key (.p8 file)</label>
|
||||
<input type="file" id="p8-input" accept=".p8">
|
||||
<p id="p8-status" style="font-size:12px;color:var(--text-muted);margin-bottom:12px"></p>
|
||||
<div class="btn-row">
|
||||
<button type="submit">Save</button>
|
||||
<button type="button" id="test-asc" class="btn-secondary">Test Connection</button>
|
||||
<button type="submit">Save Account</button>
|
||||
</div>
|
||||
<p style="font-size:12px;color:var(--text-muted);margin-top:8px">After saving, use the Upload .p8 button in the table above.</p>
|
||||
</form>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<div class="section">
|
||||
<h2>unraid App Store</h2>
|
||||
<h2>Storefront</h2>
|
||||
<p style="font-size:13px;color:var(--text-muted);margin-bottom:12px">Where built IPAs get uploaded for OTA distribution.</p>
|
||||
<div class="card">
|
||||
<form id="unraid-form">
|
||||
<form id="storefront-form">
|
||||
<label>Base URL</label>
|
||||
<input type="url" name="unraid_url" placeholder="https://appstore.treytartt.com">
|
||||
<label>API Token</label>
|
||||
<input type="password" name="unraid_token" placeholder="API token from unraid .env">
|
||||
<input type="password" name="unraid_token" placeholder="API token from storefront .env">
|
||||
<div class="btn-row">
|
||||
<button type="submit">Save</button>
|
||||
<button type="button" id="test-unraid" class="btn-secondary">Test Connection</button>
|
||||
<button type="button" id="test-storefront" class="btn-secondary">Test Connection</button>
|
||||
</div>
|
||||
</form>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user