Skip to content

Commit 8d009f1

Browse files
committed
including resources
1 parent 4754b06 commit 8d009f1

File tree

4 files changed

+39
-8
lines changed

4 files changed

+39
-8
lines changed

.github/workflows/release.yml

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -30,6 +30,8 @@ jobs:
3030
run: |
3131
swift build -c release --arch arm64
3232
cp .build/release/cupertino ../cupertino-arm64
33+
# Copy resource bundle (only need one, it's the same for both archs)
34+
cp -R .build/arm64-apple-macosx/release/Cupertino_Resources.bundle ../
3335
3436
- name: Build for x86_64
3537
working-directory: Packages
@@ -105,8 +107,8 @@ jobs:
105107
# Get version from tag
106108
VERSION=${GITHUB_REF#refs/tags/}
107109
108-
# Create archive
109-
tar -czvf cupertino-${VERSION}-macos-universal.tar.gz cupertino
110+
# Create archive with binary and resource bundle
111+
tar -czvf cupertino-${VERSION}-macos-universal.tar.gz cupertino Cupertino_Resources.bundle
110112
111113
# Calculate checksum
112114
shasum -a 256 cupertino-${VERSION}-macos-universal.tar.gz > cupertino-${VERSION}-macos-universal.tar.gz.sha256

CHANGELOG.md

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,16 @@
1+
## 0.3.4
2+
3+
### Added
4+
- **One-Command Install** - Single curl command installs everything (#82)
5+
- `bash <(curl -sSL .../install.sh)` - Downloads binary and databases
6+
- Pre-built universal binary (arm64 + x86_64)
7+
- Code signed with Developer ID Application certificate
8+
- Notarized with Apple for Gatekeeper approval
9+
- GitHub Actions workflow for automated releases
10+
- Closes #79, #82
11+
12+
---
13+
114
## 0.3.0
215

316
### Added

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -505,7 +505,7 @@ For development setup, see [DEVELOPMENT.md](DEVELOPMENT.md).
505505

506506
## Project Status
507507

508-
**Version:** 0.3.0
508+
**Version:** 0.3.4
509509
**Status:** 🚧 Active Development
510510

511511
- ✅ All core functionality working

install.sh

Lines changed: 21 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -72,6 +72,7 @@ if [[ "$MACOS_VERSION" -lt 15 ]]; then
7272
fi
7373

7474
# Check for existing installation
75+
REINSTALL=false
7576
if [[ -f "$INSTALL_PATH" ]]; then
7677
EXISTING_VERSION=$("$INSTALL_PATH" --version 2>/dev/null || echo "unknown")
7778
warn "Existing installation found: $EXISTING_VERSION"
@@ -85,6 +86,7 @@ if [[ -f "$INSTALL_PATH" ]]; then
8586
else
8687
info "Reinstalling (--yes flag)..."
8788
fi
89+
REINSTALL=true
8890
fi
8991

9092
# Create temp directory
@@ -127,15 +129,20 @@ build_from_source() {
127129
info "Found: $(swift --version 2>&1 | head -1)"
128130

129131
info "Cloning repository..."
130-
git clone --depth 1 "https://github.com/${REPO}.git" "$TEMP_DIR/cupertino" 2>&1 | tail -1
132+
git clone --depth 1 "https://github.com/${REPO}.git" "$TEMP_DIR/cupertino-src" 2>&1 | tail -1
131133

132134
info "Building from source (this may take 1-2 minutes)..."
133-
cd "$TEMP_DIR/cupertino/Packages"
135+
cd "$TEMP_DIR/cupertino-src/Packages"
134136
swift build -c release 2>&1 | grep -E "(Build complete|Compiling|Linking|error:)" | tail -5
135137

136138
if [[ -f ".build/release/cupertino" ]]; then
137-
cp ".build/release/cupertino" "$TEMP_DIR/cupertino-bin"
138-
mv "$TEMP_DIR/cupertino-bin" "$TEMP_DIR/cupertino"
139+
cp ".build/release/cupertino" "$TEMP_DIR/cupertino"
140+
# Copy resource bundle
141+
if [[ -d ".build/arm64-apple-macosx/release/Cupertino_Resources.bundle" ]]; then
142+
cp -R ".build/arm64-apple-macosx/release/Cupertino_Resources.bundle" "$TEMP_DIR/"
143+
elif [[ -d ".build/x86_64-apple-macosx/release/Cupertino_Resources.bundle" ]]; then
144+
cp -R ".build/x86_64-apple-macosx/release/Cupertino_Resources.bundle" "$TEMP_DIR/"
145+
fi
139146
return 0
140147
fi
141148
return 1
@@ -158,6 +165,11 @@ sudo mkdir -p /usr/local/bin
158165
sudo ditto "$TEMP_DIR/cupertino" "$INSTALL_PATH"
159166
sudo chmod +x "$INSTALL_PATH"
160167

168+
# Install resource bundle if present
169+
if [[ -d "$TEMP_DIR/Cupertino_Resources.bundle" ]]; then
170+
sudo ditto "$TEMP_DIR/Cupertino_Resources.bundle" "/usr/local/bin/Cupertino_Resources.bundle"
171+
fi
172+
161173
# Verify installation
162174
if ! command -v cupertino &> /dev/null; then
163175
warn "/usr/local/bin may not be in your PATH"
@@ -170,7 +182,11 @@ success "Installed: cupertino $VERSION"
170182
# Download databases
171183
echo ""
172184
info "Downloading documentation databases (~230 MB)..."
173-
cupertino setup
185+
if [[ "$REINSTALL" == "true" ]]; then
186+
cupertino setup --force
187+
else
188+
cupertino setup
189+
fi
174190

175191
# Done!
176192
echo ""

0 commit comments

Comments
 (0)