-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathbuild-linux.sh
More file actions
executable file
·37 lines (29 loc) · 992 Bytes
/
build-linux.sh
File metadata and controls
executable file
·37 lines (29 loc) · 992 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
33
34
35
36
37
#!/bin/bash
# Build script for Tauri Linux application
set -e
echo "🚀 Building this.ssh for Linux..."
# Check if we're in the right directory
if [ ! -f "package.json" ] || [ ! -d "src-tauri" ]; then
echo "❌ Error: Please run this script from the project root directory"
exit 1
fi
# Install dependencies if needed
echo "📦 Installing dependencies..."
npm install
# Build the frontend
echo "🔨 Building Nuxt.js frontend..."
npm run generate
# Build Tauri app for Linux
echo "🔧 Building Tauri application for Linux..."
npm run tauri:build:linux
echo "✅ Build completed successfully!"
echo "📁 Check the 'src-tauri/target/release/bundle/' directory for your Linux packages:"
echo " - .deb package (Debian/Ubuntu)"
echo " - .AppImage (Universal Linux)"
echo " - .tar.gz (Generic Linux)"
# List the generated files
if [ -d "src-tauri/target/release/bundle" ]; then
echo ""
echo "📋 Generated packages:"
ls -la src-tauri/target/release/bundle/
fi