fix: resolve nostr-tools typescript type conflicts

- Update type definitions for nostr-tools
- Fix type compatibility issues
- Add missing type declarations
This commit is contained in:
Matthew Raymer
2025-02-14 03:21:48 +00:00
parent 0cc4a491f5
commit 3f69f67f39
6 changed files with 234 additions and 10 deletions

View File

@@ -44,9 +44,9 @@ To build for web deployment:
### Building for Linux
1. First build the web assets:
1. Build the electron app in production mode:
```bash
npm run build
npm run build:electron-prod
```
2. Package the Electron app for Linux:
@@ -58,7 +58,7 @@ To build for web deployment:
npm run electron:build-linux-deb
```
2. The packaged applications will be in `dist-electron-packages/`:
3. The packaged applications will be in `dist-electron-packages/`:
- AppImage: `dist-electron-packages/TimeSafari-x.x.x.AppImage`
- DEB: `dist-electron-packages/timesafari_x.x.x_amd64.deb`
@@ -79,8 +79,13 @@ To build for web deployment:
### Development Testing
For testing the Electron build before packaging:
```bash
# Build and run in development mode (includes DevTools)
npm run electron:dev
# Build in production mode and test
npm run build:electron-prod && npm run electron:start
```
## Mobile Builds (Capacitor)
@@ -145,6 +150,75 @@ To run the application in development mode:
```bash
npm run dev
```
## PyWebView Desktop Build
### Prerequisites
- Python 3.8 or higher
- pip (Python package manager)
- virtualenv (recommended)
- System dependencies:
```bash
# For Ubuntu/Debian
sudo apt-get install python3-webview
# or
sudo apt-get install python3-gi python3-gi-cairo gir1.2-gtk-3.0 gir1.2-webkit2-4.0
# For Arch Linux
sudo pacman -S webkit2gtk python-gobject python-cairo
# For Fedora
sudo dnf install python3-webview
# or
sudo dnf install python3-gobject python3-cairo webkit2gtk3
```
### Setup
1. Create and activate a virtual environment (recommended):
```bash
python -m venv .venv
source .venv/bin/activate # On Linux/macOS
# or
.venv\Scripts\activate # On Windows
```
2. Install Python dependencies:
```bash
pip install -r requirements.txt
```
### Troubleshooting
If encountering PyInstaller version errors:
```bash
# Try installing the latest stable version
pip install --upgrade pyinstaller
```
### Development
1. Start the PyWebView development build:
```bash
npm run pywebview:dev
```
### Building for Distribution
#### Linux
```bash
npm run pywebview:package-linux
```
The packaged application will be in `dist/TimeSafari`
#### Windows
```bash
npm run pywebview:package-win
```
The packaged application will be in `dist/TimeSafari`
#### macOS
```bash
npm run pywebview:package-mac
```
The packaged application will be in `dist/TimeSafari`
## Testing