82f8bc62a0
- Add desktopApp module with JVM entry point and sidebar navigation - Add Claude specs for AI-assisted development: - Agent definitions: nostr-protocol, kotlin-multiplatform, compose-ui, kotlin-coroutines - Skills: quartz-kmp conversion, compose-desktop patterns - Commands: desktop-run, nip, extract - Update Gradle configuration with Compose Multiplatform 1.7.1 plugin - Add coroutines and secp256k1 JVM dependencies to version catalog Next steps: - Convert Quartz library to full KMP (expect/actual for crypto) - Implement relay connections in desktop app - Share UI components between Android and Desktop 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
46 lines
800 B
Markdown
46 lines
800 B
Markdown
---
|
|
description: Build and run the desktop app
|
|
---
|
|
|
|
Build and run the Amethyst Desktop application:
|
|
|
|
```bash
|
|
./gradlew :desktopApp:run
|
|
```
|
|
|
|
## Troubleshooting
|
|
|
|
If the build fails, check:
|
|
|
|
1. **JDK Version**: Requires JDK 17+
|
|
```bash
|
|
java -version
|
|
```
|
|
|
|
2. **Compose Multiplatform Plugin**: Verify version in `gradle/libs.versions.toml`
|
|
|
|
3. **Quartz Build**: Ensure Quartz compiles first
|
|
```bash
|
|
./gradlew :quartz:build
|
|
```
|
|
|
|
4. **Desktop Dependencies**: Check `desktopApp/build.gradle.kts` has:
|
|
```kotlin
|
|
implementation(compose.desktop.currentOs)
|
|
```
|
|
|
|
## Creating Distributable
|
|
|
|
```bash
|
|
# macOS
|
|
./gradlew :desktopApp:packageDmg
|
|
|
|
# Windows
|
|
./gradlew :desktopApp:packageMsi
|
|
|
|
# Linux
|
|
./gradlew :desktopApp:packageDeb
|
|
```
|
|
|
|
Outputs will be in `desktopApp/build/compose/binaries/`
|