feat: Add Electron dependencies and development scripts

- Added Electron dependencies to package.json:
  * @capacitor-community/electron ^5.0.1
  * electron-builder ^26.0.12
  * better-sqlite3-multiple-ciphers ^12.1.1
  * electron-json-storage ^4.6.0

- Added Electron development scripts:
  * electron:dev - Build and run Electron in development mode
  * electron:setup - Initialize Electron environment
  * electron:dev-full - Full development workflow script

- Updated .gitignore to exclude sql-wasm.wasm file

- Updated package-lock.json with new dependency resolutions

Note: Main app source files (router, platform service, views) also
have minor modifications from previous development work
This commit is contained in:
Matthew Raymer
2025-06-26 08:10:06 +00:00
parent 6e0e0cd6b5
commit aa40ef23dc
6 changed files with 472 additions and 948 deletions

View File

@@ -1,7 +1,6 @@
import {
createRouter,
createWebHistory,
createMemoryHistory,
RouteLocationNormalized,
RouteRecordRaw,
} from "vue-router";

View File

@@ -245,7 +245,7 @@ export class CapacitorPlatformService implements PlatformService {
*/
getCapabilities(): PlatformCapabilities {
const platform = Capacitor.getPlatform();
return {
hasFileSystem: true,
hasCamera: true,

View File

@@ -251,7 +251,7 @@ import {
VerifiedEvent,
serializeEvent,
} from "@nostr/tools";
// @ts-ignore
import { logger } from "../utils/logger";
@Component({
components: { ImageMethodDialog, LMap, LMarker, LTileLayer, QuickNav },
@@ -673,7 +673,8 @@ export default class NewEditProjectView extends Vue {
const publicExtendedKey: string = extPubPri?.publicExtendedKey;
const privateExtendedKey = extPubPri?.privateExtendedKey;
const privateBytes: Uint8Array =
accountFromExtendedKey(privateExtendedKey).privateKey;
accountFromExtendedKey(privateExtendedKey).privateKey ||
(() => { throw new Error("Failed to derive private key"); })();
// No real content is necessary, we just want something signed,
// so we might as well use nostr libs for nostr functions.
// Besides: someday we may create real content that we can relay.