-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprod.sh
More file actions
58 lines (51 loc) · 1.76 KB
/
prod.sh
File metadata and controls
58 lines (51 loc) · 1.76 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
#!/bin/bash
# Production build script for Code Summarizer
# This script builds the application for distribution
echo "========================================="
echo " Code Summarizer - Production Build"
echo "========================================="
echo ""
# Check if dependencies are installed
if [ ! -d "node_modules" ]; then
echo "Installing dependencies..."
npm install
else
echo "✓ Dependencies already installed"
fi
echo ""
echo "Building Code Summarizer for production..."
echo "This may take a few minutes..."
echo ""
npm run tauri build
if [ $? -eq 0 ]; then
echo ""
echo "========================================="
echo " Build completed successfully!"
echo "========================================="
echo ""
echo "Your application has been built and can be found in:"
echo " src-tauri/target/release/"
echo ""
# Detect OS and show appropriate binary location
if [[ "$OSTYPE" == "darwin"* ]]; then
echo "macOS app bundle:"
echo " src-tauri/target/release/bundle/macos/"
elif [[ "$OSTYPE" == "msys" || "$OSTYPE" == "cygwin" || "$OSTYPE" == "win32" ]]; then
echo "Windows executable:"
echo " src-tauri/target/release/code-summarizer.exe"
echo "Windows installer (MSI):"
echo " src-tauri/target/release/bundle/msi/"
elif [[ "$OSTYPE" == "linux-gnu"* ]]; then
echo "Linux executable:"
echo " src-tauri/target/release/code-summarizer"
echo "AppImage (if built):"
echo " src-tauri/target/release/bundle/appimage/"
fi
else
echo ""
echo "========================================="
echo " Build failed!"
echo "========================================="
echo "Please check the error messages above."
exit 1
fi