Skip to content

Commit 47285bf

Browse files
committed
Improve AppStore build and release process
Enhance validation and archiving workflow for Mac App Store submissions: - Update Justfile to validate against correct build directory - Improve error messages for missing versions or builds - Clarify README feature descriptions - Update release documentation with precise build commands - Separate build directories more explicitly for DMG and pkg
1 parent 035c3bc commit 47285bf

3 files changed

Lines changed: 11 additions & 8 deletions

File tree

Justfile

Lines changed: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -113,11 +113,13 @@ upload-appstore version="":
113113
validate-appstore version="":
114114
#!/usr/bin/env bash
115115
set -e
116-
ver="${1:-}"
116+
ver="{{version}}"
117117
[[ -z "$ver" && -f "{{build_dir}}/.current_version_appstore" ]] && ver=$(cat "{{build_dir}}/.current_version_appstore")
118-
[[ -z "$ver" ]] && { echo "No version specified"; exit 1; }
119-
pkg=$(find "{{build_dir}}/$ver/export" -name "*.pkg" -type f 2>/dev/null | head -1)
120-
[[ -z "$pkg" ]] && { echo "No .pkg found for $ver"; exit 1; }
118+
[[ -z "$ver" ]] && { echo "Error: No version specified"; exit 1; }
119+
ver_dir="{{build_dir}}/${ver}-appstore"
120+
[[ ! -d "$ver_dir" ]] && { echo "Error: App Store build not found at $ver_dir"; echo "Run 'just archive-appstore $ver' first."; exit 1; }
121+
pkg=$(find "$ver_dir/export" -name "*.pkg" -type f 2>/dev/null | head -1)
122+
[[ -z "$pkg" ]] && { echo "Error: No .pkg found in $ver_dir/export"; exit 1; }
121123
echo "Validating: $pkg"
122124
xcrun altool --validate-app -f "$pkg" --type macos --apple-id "$APPLE_ID" --password "$APPLE_APP_PASSWORD"
123125

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,7 @@ After downloading, unzip and move the app to your Applications folder. On first
1616

1717
## Features
1818

19-
- **Toolbar Badge**Color-coded cache status (HIT/MISS) visible at a glance
19+
- **Toolbar Badge**Cache status (HIT/MISS) visible at a glance
2020
- **Detailed Popup** — View all cache-related HTTP headers
2121
- **Edge Location Mapping** — Translates CDN POP codes (e.g., `FRA56`) to city names (e.g., `Frankfurt, DE`)
2222
- **Multi-CDN Support** — Works with Cloudflare, CloudFront, Fastly, Akamai, Bunny CDN, Varnish, and more
@@ -146,7 +146,7 @@ Justfile # Build commands
146146
2. **Header Capture**`webRequest.onHeadersReceived` captures response headers for the main document only
147147
3. **CDN Detection** — Headers are analyzed to identify the CDN provider
148148
4. **Status Parsing** — Cache status is extracted from CDN-specific headers
149-
5. **Badge Update** — Toolbar badge is updated with color-coded status
149+
5. **Badge Update** — Toolbar badge is updated with status text
150150
6. **Popup Display** — Clicking the icon shows detailed header information
151151

152152
## License

RELEASE.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -148,14 +148,15 @@ You can build both versions for the same release:
148148
```bash
149149
# Direct distribution (for GitHub)
150150
just release v0.0.6
151+
just dmg v0.0.6
151152

152153
# App Store (for Mac App Store)
153154
just release-appstore v0.0.6
154155
```
155156

156157
They don't conflict — outputs go to separate directories:
157-
- `build/v0.0.6/` — Developer ID build
158-
- `build/v0.0.6-appstore/` — App Store build
158+
- `build/v0.0.6/` — Developer ID build (`.zip` and `.dmg`)
159+
- `build/v0.0.6-appstore/` — App Store build (`.pkg`)
159160

160161
---
161162

0 commit comments

Comments
 (0)