Skip to content

Commit cf5bab0

Browse files
committed
fix: add Xcode Cloud ci_post_clone.sh to build Safari extension assets
Xcode Cloud clones the repo without distros/ (gitignored). This script installs Node.js via Homebrew, runs npm install + npm run build, and populates distros/safari/ before the Xcode build step.
1 parent a2effc4 commit cf5bab0

1 file changed

Lines changed: 25 additions & 0 deletions

File tree

ci_scripts/ci_post_clone.sh

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
#!/bin/sh
2+
3+
# Xcode Cloud post-clone script
4+
# Installs Node.js and builds the Safari extension assets into distros/safari/
5+
6+
set -e
7+
8+
echo "=== NostrKey CI: Installing Node.js ==="
9+
10+
# Xcode Cloud provides Homebrew
11+
brew install node
12+
13+
echo "=== NostrKey CI: node $(node --version), npm $(npm --version) ==="
14+
15+
echo "=== NostrKey CI: Installing dependencies ==="
16+
cd "$CI_PRIMARY_REPOSITORY_PATH"
17+
npm install
18+
19+
echo "=== NostrKey CI: Building Safari extension ==="
20+
npm run build
21+
22+
echo "=== NostrKey CI: Verifying build output ==="
23+
ls -la distros/safari/
24+
25+
echo "=== NostrKey CI: Build complete ==="

0 commit comments

Comments
 (0)