Skip to content

Commit f45fccc

Browse files
committed
Build with icon
1 parent 34197ed commit f45fccc

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

56 files changed

+84
-2
lines changed

.env.local.example

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# Apple Notarization Credentials
2+
# Copy this file to .env.local and fill in your values
3+
4+
# Your Apple ID email
5+
APPLE_ID=your@email.com
6+
7+
# App-specific password (generate at https://appleid.apple.com → Security → App-Specific Passwords)
8+
APPLE_PASSWORD=xxxx-xxxx-xxxx-xxxx
9+
10+
# Your Team ID (10-character code, find with: security find-identity -v -p codesigning)
11+
APPLE_TEAM_ID=XXXXXXXXXX
12+
13+
# Signing identity (find with: security find-identity -v -p codesigning)
14+
# Example: "Developer ID Application: John Doe (XXXXXXXXXX)"
15+
APPLE_SIGNING_IDENTITY=Developer ID Application: Your Name (XXXXXXXXXX)

package.json

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,8 @@
88
"build": "tsc && vite build",
99
"preview": "vite preview",
1010
"tauri": "tauri",
11-
"fetch-skills": "bun run scripts/fetch-skills.ts"
11+
"fetch-skills": "bun run scripts/fetch-skills.ts",
12+
"build:mac": "./scripts/build-mac.sh"
1213
},
1314
"dependencies": {
1415
"@tauri-apps/api": "^2.0.0",

scripts/build-mac.sh

Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
#!/bin/bash
2+
set -e
3+
4+
SCRIPT_DIR="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)"
5+
PROJECT_DIR="$(dirname "$SCRIPT_DIR")"
6+
7+
# Load environment variables from .env.local
8+
ENV_FILE="$PROJECT_DIR/.env.local"
9+
10+
if [ ! -f "$ENV_FILE" ]; then
11+
echo "Error: .env.local not found!"
12+
echo "Copy .env.local.example to .env.local and fill in your credentials:"
13+
echo " cp .env.local.example .env.local"
14+
exit 1
15+
fi
16+
17+
# Export variables from .env.local
18+
set -a
19+
source "$ENV_FILE"
20+
set +a
21+
22+
# Validate required variables
23+
REQUIRED_VARS=("APPLE_ID" "APPLE_PASSWORD" "APPLE_TEAM_ID" "APPLE_SIGNING_IDENTITY")
24+
for var in "${REQUIRED_VARS[@]}"; do
25+
if [ -z "${!var}" ]; then
26+
echo "Error: $var is not set in .env.local"
27+
exit 1
28+
fi
29+
done
30+
31+
echo "Building Skill Studio for macOS..."
32+
echo " Apple ID: $APPLE_ID"
33+
echo " Team ID: $APPLE_TEAM_ID"
34+
echo " Signing Identity: $APPLE_SIGNING_IDENTITY"
35+
echo ""
36+
37+
cd "$PROJECT_DIR"
38+
39+
# Build with Tauri
40+
npm run tauri build -- --bundles dmg
41+
42+
echo ""
43+
echo "Build complete!"
44+
echo "DMG location: src-tauri/target/release/bundle/dmg/"

src-tauri/icons/128x128.png

12.7 KB

src-tauri/icons/128x128@2x.png

33.4 KB

src-tauri/icons/32x32.png

1.95 KB

src-tauri/icons/64x64.png

4.97 KB
9.96 KB
14.8 KB
16.1 KB

0 commit comments

Comments
 (0)