Skip to content

Commit

Permalink
pack: use app name information from package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
jooy2 committed Jul 3, 2024
1 parent d5799ec commit df79fd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
7 changes: 4 additions & 3 deletions buildAssets/builder/config.js
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
/* eslint-disable no-template-curly-in-string */
const dotenv = require('dotenv')
const packageJson = require('../../package.json')

const baseConfig = {
productName: 'Vutron',
appId: 'com.vutron.vutron',
productName: packageJson.name,
appId: packageJson.appId,
asar: true,
extends: null,
compression: 'maximum',
Expand Down Expand Up @@ -69,7 +70,7 @@ const baseConfig = {
oneClick: true
},
linux: {
executableName: 'vutron',
executableName: packageJson.name.toLowerCase(),
icon: 'buildAssets/icons',
category: 'Utility',
target: [
Expand Down
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "vutron",
"appId": "com.vutron.vutron",
"version": "1.0.0",
"description": "Quick Start Templates for Vite + Vue 3 + Electron",
"homepage": "https://vutron.jooy2.com",
Expand Down

0 comments on commit df79fd4

Please sign in to comment.