mirror of
https://gitee.com/spark-store-project/spark-store
synced 2026-04-30 03:10:16 +08:00
build: 更新electron构建配置和vite别名设置
更新electron-builder.yml中的linux平台图标配置 在vite.config.ts中添加路径别名解析配置
This commit is contained in:
@@ -15,7 +15,7 @@ extraResources:
|
|||||||
to: "icons"
|
to: "icons"
|
||||||
|
|
||||||
linux:
|
linux:
|
||||||
icon: "icons/amber-pm-logo.icns"
|
icon: "icons/spark-store.png"
|
||||||
category: "System"
|
category: "System"
|
||||||
executableName: "spark-store"
|
executableName: "spark-store"
|
||||||
desktop:
|
desktop:
|
||||||
|
|||||||
@@ -4,6 +4,7 @@ import vue from '@vitejs/plugin-vue'
|
|||||||
import tailwindcss from '@tailwindcss/vite'
|
import tailwindcss from '@tailwindcss/vite'
|
||||||
import electron from 'vite-plugin-electron/simple'
|
import electron from 'vite-plugin-electron/simple'
|
||||||
import pkg from './package.json'
|
import pkg from './package.json'
|
||||||
|
import { resolve } from 'path'
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig(({ command }) => {
|
export default defineConfig(({ command }) => {
|
||||||
@@ -110,5 +111,10 @@ export default defineConfig(({ command }) => {
|
|||||||
define: {
|
define: {
|
||||||
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
|
__APP_VERSION__: JSON.stringify(process.env.npm_package_version),
|
||||||
},
|
},
|
||||||
|
resolve: {
|
||||||
|
alias: {
|
||||||
|
'@': resolve(__dirname, 'src')
|
||||||
|
}
|
||||||
|
}
|
||||||
};
|
};
|
||||||
});
|
});
|
||||||
|
|||||||
Reference in New Issue
Block a user