forked from jsnbuchanan/crowd-funder-for-time-pwa
Add full iOS build system: script, npm integration, and documentation
- Implement scripts/build-ios.sh with dev/test/prod, IPA, deploy, and Xcode support - Integrate all iOS build and legacy scripts into package.json (including deploy) - Update docs/ios-build-scripts.md: mark as complete, add usage and status - Update README.md: add iOS to quick start, platform builds, and docs links - Ensure iOS build system matches Android/Electron pattern for consistency
This commit is contained in:
102
README.md
102
README.md
@@ -107,24 +107,98 @@ rm -rf ~/timesafari-dev-data
|
||||
|
||||
See the script for complete platform-specific instructions.
|
||||
|
||||
## Electron Build Scripts
|
||||
## Build Systems
|
||||
|
||||
### **Development vs Package Builds**
|
||||
TimeSafari supports comprehensive build systems for all platforms with unified patterns and consistent tooling.
|
||||
|
||||
- **Development Scripts**: Run the app directly after building
|
||||
```bash
|
||||
npm run build:electron:dev # Runs app immediately
|
||||
npm run build:electron:test # Runs app immediately
|
||||
```
|
||||
### **Quick Start Commands**
|
||||
|
||||
- **Package Scripts**: Create executable files for distribution
|
||||
```bash
|
||||
npm run build:electron:appimage # Creates AppImage executable
|
||||
npm run build:electron:deb # Creates DEB package
|
||||
npm run build:electron:dmg # Creates DMG package
|
||||
```
|
||||
```bash
|
||||
# Web Development (starts dev server)
|
||||
npm run build:web:dev
|
||||
|
||||
See [Electron Build Scripts Guide](docs/electron-build-scripts.md) for complete details.
|
||||
# Android Development (builds debug APK)
|
||||
npm run build:android:dev
|
||||
|
||||
# iOS Development (builds debug app)
|
||||
npm run build:ios:dev
|
||||
|
||||
# Electron Development (runs app directly)
|
||||
npm run build:electron:dev
|
||||
|
||||
# Deploy Android to connected device
|
||||
npm run build:android:deploy
|
||||
|
||||
# Deploy iOS to connected device
|
||||
npm run build:ios:deploy
|
||||
```
|
||||
|
||||
### **Platform-Specific Builds**
|
||||
|
||||
#### **Web Builds**
|
||||
- **Development**: Hot reload server at http://localhost:8080
|
||||
- **Production**: Optimized static files with PWA support
|
||||
- **Docker**: Containerized deployment images
|
||||
|
||||
```bash
|
||||
npm run build:web:dev # Development server
|
||||
npm run build:web:prod # Production build
|
||||
npm run build:web:docker:prod # Docker deployment
|
||||
```
|
||||
|
||||
#### **Android Builds**
|
||||
- **Development**: Debug APK with development optimizations
|
||||
- **Production**: Release APK/AAB for app store distribution
|
||||
- **Deployment**: Direct installation to connected devices
|
||||
|
||||
```bash
|
||||
npm run build:android:dev # Development build
|
||||
npm run build:android:prod # Production build
|
||||
npm run build:android:deploy # Build and deploy to device
|
||||
```
|
||||
|
||||
#### **iOS Builds**
|
||||
- **Development**: Debug app with development optimizations
|
||||
- **Production**: Release app/IPA for app store distribution
|
||||
- **Deployment**: Direct installation to connected devices
|
||||
|
||||
```bash
|
||||
npm run build:ios:dev # Development build
|
||||
npm run build:ios:prod # Production build
|
||||
npm run build:ios:deploy # Build and deploy to device
|
||||
```
|
||||
|
||||
#### **Electron Builds**
|
||||
- **Development**: Runs app directly for development
|
||||
- **Packages**: Creates distributable executables
|
||||
- **Cross-Platform**: Windows, macOS, Linux support
|
||||
|
||||
```bash
|
||||
npm run build:electron:dev # Runs app directly
|
||||
npm run build:electron:appimage:prod # Linux AppImage
|
||||
npm run build:electron:dmg:prod # macOS DMG
|
||||
npm run build:electron:deb:prod # Linux DEB
|
||||
```
|
||||
|
||||
### **Build System Features**
|
||||
|
||||
- ✅ **Unified Environment Management**: Consistent dev/test/prod modes
|
||||
- ✅ **PWA Support**: Progressive Web App functionality across platforms
|
||||
- ✅ **Asset Generation**: Automatic icon and splash screen generation
|
||||
- ✅ **Docker Integration**: Containerized deployment options
|
||||
- ✅ **Performance Optimization**: Build-time and runtime optimizations
|
||||
- ✅ **Error Handling**: Comprehensive error reporting and recovery
|
||||
- ✅ **Legacy Compatibility**: Backward-compatible script aliases
|
||||
|
||||
### **Comprehensive Documentation**
|
||||
|
||||
- **[Build Systems Overview](docs/build-systems-overview.md)** - Complete guide to all build systems
|
||||
- **[Web Build Scripts](docs/web-build-scripts.md)** - Web/PWA builds with Docker support
|
||||
- **[Android Build Scripts](docs/android-build-scripts.md)** - Mobile builds with device deployment
|
||||
- **[iOS Build Scripts](docs/ios-build-scripts.md)** - iOS builds with Xcode integration
|
||||
- **[Electron Build Scripts](docs/electron-build-scripts.md)** - Desktop builds with package creation
|
||||
- **[Database Clearing](docs/database-clearing.md)** - Development database management
|
||||
- **[Build Troubleshooting](docs/build-troubleshooting.md)** - Comprehensive troubleshooting guide
|
||||
|
||||
## Tests
|
||||
|
||||
|
||||
Reference in New Issue
Block a user