From 26c02e03c5a5a6bbce1e4279b7c35811d321b0b7 Mon Sep 17 00:00:00 2001 From: jeffvli Date: Tue, 20 May 2025 05:15:29 -0700 Subject: [PATCH] update package.json and electron builder --- electron-builder.yml | 71 +++++++++++++++++++++++++++++++++----------- package.json | 18 ++++++----- 2 files changed, 63 insertions(+), 26 deletions(-) diff --git a/electron-builder.yml b/electron-builder.yml index 97210c58..0547af84 100644 --- a/electron-builder.yml +++ b/electron-builder.yml @@ -1,5 +1,6 @@ -appId: com.electron.app -productName: feishin +appId: org.jeffvli.feishin +productName: Feishin +artifactName: ${productName}-${version}-${os}-setup.${ext} directories: buildResources: build files: @@ -9,35 +10,69 @@ files: - '!{.eslintcache,eslint.config.mjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}' - '!{.env,.env.*,.npmrc,pnpm-lock.yaml}' - '!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}' +extraResources: + - assets/** asarUnpack: - resources/** win: - executableName: feishin + target: + - zip + - nsis + icon: assets/icons/icon.png nsis: - artifactName: ${name}-${version}-setup.${ext} shortcutName: ${productName} uninstallDisplayName: ${productName} createDesktopShortcut: always 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 - extendInfo: - - 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. + gatekeeperAssess: false notarize: false 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: target: - AppImage - - snap - - deb - maintainer: electronjs.org - category: Utility -appImage: - artifactName: ${name}-${version}.${ext} + - tar.xz + category: AudioVideo;Audio;Player + icon: assets/icons/icon.png npmRebuild: false publish: - provider: generic - url: https://example.com/auto-updates + provider: github + owner: jeffvli + repo: feishin diff --git a/package.json b/package.json index 95786724..c7599de8 100644 --- a/package.json +++ b/package.json @@ -1,10 +1,10 @@ { "name": "feishin", - "version": "1.0.0", - "description": "An Electron application with React and TypeScript", + "productName": "Feishin", + "version": "0.12.7", + "description": "", "main": "./out/main/index.js", - "author": "example.com", - "homepage": "https://electron-vite.org", + "homepage": "https://github.com/jeffvli/feishin", "scripts": { "format": "prettier --write .", "lint": "eslint --cache --fix .", @@ -16,10 +16,12 @@ "dev:watch": "electron-vite dev --watch", "build": "npm run typecheck && electron-vite build", "postinstall": "electron-builder install-app-deps", - "build:unpack": "npm run build && electron-builder --dir", - "build:win": "npm run build && electron-builder --win", - "build:mac": "electron-vite build && electron-builder --mac", - "build:linux": "electron-vite build && electron-builder --linux" + "package": "npm run build && electron-builder --dir", + "package:win": "npm run build && electron-builder --win", + "package:mac": "electron-vite build && electron-builder --mac", + "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": { "@ag-grid-community/client-side-row-model": "^28.2.1",