forked from trent_larson/crowd-funder-for-time-pwa
Remove redundant build:capacitor:* script aliases
- Removed 24 redundant build:capacitor:* scripts that were just aliases - Kept essential build:capacitor and build:capacitor:sync scripts - Improves script clarity and reduces maintenance overhead - No functional changes to build processes
This commit is contained in:
@@ -46,6 +46,7 @@ BUILD_PLATFORM=""
|
||||
BUILD_PACKAGE=""
|
||||
BUILD_ACTION="dev"
|
||||
VERBOSE=false
|
||||
AUTO_RUN=false
|
||||
|
||||
# Parse command line arguments
|
||||
parse_electron_args() {
|
||||
@@ -101,6 +102,10 @@ parse_electron_args() {
|
||||
BUILD_ACTION="clean"
|
||||
shift
|
||||
;;
|
||||
--auto-run)
|
||||
AUTO_RUN=true
|
||||
shift
|
||||
;;
|
||||
--verbose)
|
||||
VERBOSE=true
|
||||
shift
|
||||
@@ -138,6 +143,7 @@ Packages:
|
||||
--dmg macOS DMG
|
||||
|
||||
Options:
|
||||
--auto-run Auto-run app after build
|
||||
--verbose Enable verbose logging
|
||||
--help Show this help message
|
||||
|
||||
@@ -150,6 +156,7 @@ Examples:
|
||||
$0 --prod --windows # Windows production build
|
||||
$0 --test --appimage # Linux AppImage test build
|
||||
$0 --dev --mac # macOS development build
|
||||
$0 --test --auto-run # Test build + auto-run
|
||||
$0 --prod # Production build for all platforms
|
||||
$0 --clean # Clean Electron build artifacts only
|
||||
|
||||
@@ -382,6 +389,12 @@ main_electron_build() {
|
||||
build_electron_package "mac" "$BUILD_PACKAGE"
|
||||
build_electron_package "linux" "$BUILD_PACKAGE"
|
||||
fi
|
||||
|
||||
# Auto-run after package build if requested
|
||||
if [ "$AUTO_RUN" = true ]; then
|
||||
log_step "Auto-running Electron app after package build..."
|
||||
start_electron_dev
|
||||
fi
|
||||
;;
|
||||
*)
|
||||
log_error "Unknown build action: $BUILD_ACTION"
|
||||
@@ -397,6 +410,9 @@ main_electron_build() {
|
||||
log_info "Package files available in: electron/dist/"
|
||||
ls -la electron/dist/ || true
|
||||
fi
|
||||
if [ "$AUTO_RUN" = true ]; then
|
||||
log_info "Auto-run: completed"
|
||||
fi
|
||||
;;
|
||||
"dev")
|
||||
log_success "Electron development build completed successfully!"
|
||||
|
||||
Reference in New Issue
Block a user