mirror of
https://github.com/ZSeven-W/openpencil.git
synced 2026-05-31 19:04:29 +07:00
- Add Electron configuration and main process setup for building a desktop application. - Implement IPC communication for file operations (open, save) between the renderer and main processes. - Create a preload script to expose Electron APIs to the renderer. - Update package.json to include Electron and related dependencies. - Enhance the build process with electron-builder for packaging the application. - Introduce a new electron-builder.yml configuration file for build settings. - Modify Vite configuration to support Electron-specific builds. - Update UI components to accommodate Electron's window management and drag regions.
51 lines
787 B
YAML
51 lines
787 B
YAML
appId: dev.openpencil.app
|
|
productName: OpenPencil
|
|
copyright: Copyright (c) 2024-2026 OpenPencil contributors
|
|
|
|
directories:
|
|
output: dist-electron
|
|
buildResources: build
|
|
|
|
files:
|
|
- electron-dist/**/*
|
|
- "!node_modules"
|
|
|
|
extraResources:
|
|
- from: .output/server
|
|
to: server
|
|
- from: .output/public
|
|
to: public
|
|
|
|
mac:
|
|
category: public.app-category.graphics-design
|
|
icon: build/icon.icns
|
|
target:
|
|
- dmg
|
|
- zip
|
|
hardenedRuntime: true
|
|
gatekeeperAssess: false
|
|
|
|
dmg:
|
|
title: "${productName} ${version}"
|
|
|
|
win:
|
|
icon: build/icon.ico
|
|
target:
|
|
- nsis
|
|
- portable
|
|
|
|
nsis:
|
|
oneClick: false
|
|
perMachine: false
|
|
allowToChangeInstallationDirectory: true
|
|
|
|
linux:
|
|
icon: build/icon.png
|
|
category: Graphics
|
|
target:
|
|
- AppImage
|
|
- deb
|
|
|
|
asar: true
|
|
|
|
publish: null
|