-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathpackage.sh
More file actions
executable file
·32 lines (24 loc) · 777 Bytes
/
package.sh
File metadata and controls
executable file
·32 lines (24 loc) · 777 Bytes
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
#!/bin/bash
# Package script for VisualCodex
echo "Packaging VisualCodex for distribution..."
# Check if the application has been built
if [ ! -d "./dist" ]; then
echo "Error: Build directory not found. Please run './build.sh' first."
exit 1
fi
# Install electron-builder if not already installed
if ! npm list -g electron-builder > /dev/null 2>&1; then
echo "Installing electron-builder..."
npm install -g electron-builder
fi
# Create release directory if it doesn't exist
mkdir -p release
# Package for all platforms
echo "Packaging for Windows, macOS, and Linux..."
npm run package
if [ $? -ne 0 ]; then
echo "Packaging failed."
exit 1
fi
echo "Packaging completed successfully!"
echo "The packaged applications can be found in the 'release' directory."