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:
30
scripts/repack-app.sh
Executable file
30
scripts/repack-app.sh
Executable file
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
# Repack extracted app to app.asar
|
||||
# Usage: ./scripts/repack-app.sh
|
||||
|
||||
set -e
|
||||
|
||||
echo "Repacking 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
|
||||
|
||||
# Check if extraction directory exists
|
||||
if [ ! -d "src/app-extracted" ]; then
|
||||
echo "Error: src/app-extracted directory not found"
|
||||
echo "Run extract-app.sh first"
|
||||
exit 1
|
||||
fi
|
||||
|
||||
# Repack app.asar
|
||||
cd src
|
||||
npx asar pack app-extracted app.asar
|
||||
|
||||
echo ""
|
||||
echo "✅ Repacking complete!"
|
||||
echo "Updated app.asar is in: src/app.asar"
|
||||
echo ""
|
||||
echo "You can now build the .deb package with: ./scripts/build-deb.sh"
|
||||
Reference in New Issue
Block a user