35 lines
766 B
Bash
Executable File
35 lines
766 B
Bash
Executable File
#!/bin/bash
|
|
|
|
echo "Building Linux target (AppImage)..."
|
|
|
|
# Generate icons
|
|
echo "Generating icons..."
|
|
./scripts/generate-icons.sh
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "Icon generation failed!"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Running npm install (ensures Linux dependencies)..."
|
|
npm install
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "npm install failed!"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Running electron:build script for Linux..."
|
|
# The first '--' separates npm arguments from arguments for the script being run (electron-builder in this case).
|
|
# The second '--linux' is passed to electron-builder.
|
|
npm run electron:build -- --linux
|
|
|
|
if [ $? -ne 0 ]; then
|
|
echo "Build failed!"
|
|
exit 1
|
|
fi
|
|
|
|
echo "Linux build completed successfully!"
|
|
echo "Output AppImage is in the dist_electron directory."
|
|
|
|
exit 0 |