Complete source code - AI Provider Edition v2.0.1
Added complete source code and pre-compiled application: Source Code: - app.asar (compiled Electron app) - app-extracted/ (all extracted source files) - dist/services/aiProviderService.js - dist/services/settingsService.js - dist/ipcHandlers.js - dist/aiProviderAPI.ts - dist/ai-provider-settings.html - And all other application files Build Tools: - scripts/extract-app.sh - scripts/repack-app.sh - scripts/build-deb.sh - scripts/install-deb.sh Documentation: - SOURCE_CODE.md (repository structure) - BUILD.md (build instructions) - README.md (overview) - docs/ (complete API docs) - AI_PROVIDER_SPECIFICATION.md - AI_PROVIDER_README.md - IMPLEMENTATION_SUMMARY.md Features included: - 17+ AI provider presets - One-click provider setup - Model auto-fetching - Connection testing - Modern GUI interface - Complete IPC handlers (14 new) - TypeScript API wrapper - Persistent settings Ready to build and customize!
This commit is contained in:
33
scripts/extract-app.sh
Executable file
33
scripts/extract-app.sh
Executable file
@@ -0,0 +1,33 @@
|
||||
#!/bin/bash
|
||||
# Extract app.asar to source directory
|
||||
# Usage: ./scripts/extract-app.sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "Extracting app.asar..."
|
||||
|
||||
# Check if asar is installed
|
||||
if ! command -v npx &> /dev/null; then
|
||||
echo "Error: npx is required but not installed"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Install asar if needed
|
||||
if ! npx asar --version &> /dev/null; then
|
||||
echo "Installing asar..."
|
||||
npm install -g asar
|
||||
fi
|
||||
|
||||
# Create extraction directory
|
||||
mkdir -p src/app-extracted
|
||||
|
||||
# Extract app.asar
|
||||
cd src
|
||||
npx asar extract app.asar app-extracted
|
||||
|
||||
echo ""
|
||||
echo "✅ Extraction complete!"
|
||||
echo "Source files are in: src/app-extracted/"
|
||||
echo ""
|
||||
echo "You can now edit files in src/app-extracted/dist/"
|
||||
echo "Then repack with: ./scripts/repack-app.sh"
|
||||
Reference in New Issue
Block a user