mirror of
https://github.com/antebudimir/feishin.git
synced 2025-12-31 18:13:31 +00:00
update package.json and electron builder
This commit is contained in:
parent
1cf587bc8f
commit
26c02e03c5
2 changed files with 63 additions and 26 deletions
|
|
@ -1,5 +1,6 @@
|
||||||
appId: com.electron.app
|
appId: org.jeffvli.feishin
|
||||||
productName: feishin
|
productName: Feishin
|
||||||
|
artifactName: ${productName}-${version}-${os}-setup.${ext}
|
||||||
directories:
|
directories:
|
||||||
buildResources: build
|
buildResources: build
|
||||||
files:
|
files:
|
||||||
|
|
@ -9,35 +10,69 @@ files:
|
||||||
- '!{.eslintcache,eslint.config.mjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
|
- '!{.eslintcache,eslint.config.mjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}'
|
||||||
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
|
- '!{.env,.env.*,.npmrc,pnpm-lock.yaml}'
|
||||||
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
|
- '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
|
||||||
|
extraResources:
|
||||||
|
- assets/**
|
||||||
asarUnpack:
|
asarUnpack:
|
||||||
- resources/**
|
- resources/**
|
||||||
win:
|
win:
|
||||||
executableName: feishin
|
target:
|
||||||
|
- zip
|
||||||
|
- nsis
|
||||||
|
icon: assets/icons/icon.png
|
||||||
nsis:
|
nsis:
|
||||||
artifactName: ${name}-${version}-setup.${ext}
|
|
||||||
shortcutName: ${productName}
|
shortcutName: ${productName}
|
||||||
uninstallDisplayName: ${productName}
|
uninstallDisplayName: ${productName}
|
||||||
createDesktopShortcut: always
|
createDesktopShortcut: always
|
||||||
mac:
|
mac:
|
||||||
|
target:
|
||||||
|
target: default
|
||||||
|
arch:
|
||||||
|
- arm64
|
||||||
|
- x64
|
||||||
|
icon: assets/icons/icon.icns
|
||||||
|
type: distribution
|
||||||
|
hardenedRuntime: true
|
||||||
|
entitlements: build/entitlements.mac.plist
|
||||||
entitlementsInherit: build/entitlements.mac.plist
|
entitlementsInherit: build/entitlements.mac.plist
|
||||||
extendInfo:
|
gatekeeperAssess: false
|
||||||
- NSCameraUsageDescription: Application requests access to the device's camera.
|
|
||||||
- NSMicrophoneUsageDescription: Application requests access to the device's microphone.
|
|
||||||
- NSDocumentsFolderUsageDescription: Application requests access to the user's Documents folder.
|
|
||||||
- NSDownloadsFolderUsageDescription: Application requests access to the user's Downloads folder.
|
|
||||||
notarize: false
|
notarize: false
|
||||||
dmg:
|
dmg:
|
||||||
artifactName: ${name}-${version}.${ext}
|
contents: [{ x: 130, y: 220 }, { x: 410, y: 220, type: link, path: /Applications }]
|
||||||
|
deb:
|
||||||
|
depends:
|
||||||
|
- libgssapi_krb5.so.2
|
||||||
|
- libavahi-common.so.3
|
||||||
|
- libavahi-client.so.3
|
||||||
|
- libkrb5.so.3
|
||||||
|
- libkrb5support.so.0
|
||||||
|
- libkeyutils.so.1
|
||||||
|
- libcups.so.2
|
||||||
|
rpm:
|
||||||
|
depends:
|
||||||
|
- libgssapi_krb5.so.2
|
||||||
|
- libavahi-common.so.3
|
||||||
|
- libavahi-client.so.3
|
||||||
|
- libkrb5.so.3
|
||||||
|
- libkrb5support.so.0
|
||||||
|
- libkeyutils.so.1
|
||||||
|
- libcups.so.2
|
||||||
|
freebsd:
|
||||||
|
depends:
|
||||||
|
- libgssapi_krb5.so.2
|
||||||
|
- libavahi-common.so.3
|
||||||
|
- libavahi-client.so.3
|
||||||
|
- libkrb5.so.3
|
||||||
|
- libkrb5support.so.0
|
||||||
|
- libkeyutils.so.1
|
||||||
|
- libcups.so.2
|
||||||
linux:
|
linux:
|
||||||
target:
|
target:
|
||||||
- AppImage
|
- AppImage
|
||||||
- snap
|
- tar.xz
|
||||||
- deb
|
category: AudioVideo;Audio;Player
|
||||||
maintainer: electronjs.org
|
icon: assets/icons/icon.png
|
||||||
category: Utility
|
|
||||||
appImage:
|
|
||||||
artifactName: ${name}-${version}.${ext}
|
|
||||||
npmRebuild: false
|
npmRebuild: false
|
||||||
publish:
|
publish:
|
||||||
provider: generic
|
provider: github
|
||||||
url: https://example.com/auto-updates
|
owner: jeffvli
|
||||||
|
repo: feishin
|
||||||
|
|
|
||||||
18
package.json
18
package.json
|
|
@ -1,10 +1,10 @@
|
||||||
{
|
{
|
||||||
"name": "feishin",
|
"name": "feishin",
|
||||||
"version": "1.0.0",
|
"productName": "Feishin",
|
||||||
"description": "An Electron application with React and TypeScript",
|
"version": "0.12.7",
|
||||||
|
"description": "",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"author": "example.com",
|
"homepage": "https://github.com/jeffvli/feishin",
|
||||||
"homepage": "https://electron-vite.org",
|
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"format": "prettier --write .",
|
"format": "prettier --write .",
|
||||||
"lint": "eslint --cache --fix .",
|
"lint": "eslint --cache --fix .",
|
||||||
|
|
@ -16,10 +16,12 @@
|
||||||
"dev:watch": "electron-vite dev --watch",
|
"dev:watch": "electron-vite dev --watch",
|
||||||
"build": "npm run typecheck && electron-vite build",
|
"build": "npm run typecheck && electron-vite build",
|
||||||
"postinstall": "electron-builder install-app-deps",
|
"postinstall": "electron-builder install-app-deps",
|
||||||
"build:unpack": "npm run build && electron-builder --dir",
|
"package": "npm run build && electron-builder --dir",
|
||||||
"build:win": "npm run build && electron-builder --win",
|
"package:win": "npm run build && electron-builder --win",
|
||||||
"build:mac": "electron-vite build && electron-builder --mac",
|
"package:mac": "electron-vite build && electron-builder --mac",
|
||||||
"build:linux": "electron-vite build && electron-builder --linux"
|
"package:linux": "electron-vite build && electron-builder --linux",
|
||||||
|
"package:dev": "npm run build && electron-builder --dir",
|
||||||
|
"i18next": "i18next -c src/i18n/i18next-parser.config.js"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@ag-grid-community/client-side-row-model": "^28.2.1",
|
"@ag-grid-community/client-side-row-model": "^28.2.1",
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue