-
-
Notifications
You must be signed in to change notification settings - Fork 15
/
Copy pathvue.config.js
60 lines (58 loc) · 2.04 KB
/
vue.config.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
const moment = require('moment')
const year = (moment().format('YYYY') === '2020') ? moment().format('YYYY') : `2020-${moment().format('YYYY')}`
module.exports = {
pluginOptions: {
electronBuilder: {
nodeIntegration: false,
preload: 'src/preload.js', // preload 檔案位置
builderOptions: {
appId: 'tw.reh.genshininfo.gachaanalyzer', // 應用程式 ID
productName: 'Genshin Impact Wish Gacha Analyzer', // 專案名稱
copyright: `Copyright © ${year} 原神資訊站 Genshin Impact Info`, // 版權
win: { // Windows 相關設定
icon: 'build/icons/icon.ico', // 安裝檔圖示
target: ['nsis', 'portable', 'zip'], // 安裝、免安裝、ZIP
extraFiles: [
{
from: 'certificates', // Proxy 用 SSL 憑證
to: '.http-mitm-proxy',
filter: ['**/*']
}
] // 包含的額外檔案
},
linux: { // Linux 相關設定
icon: 'build/icons'
},
mac: { // Mac 相關設定
icon: 'build/icons/icon.icns'
},
nsis: {
oneClick: false, // 是否一鍵安裝
perMachine: true, // 是否為每一台機器安裝
installerIcon: 'build/icons/icon.ico', // 安裝圖示
uninstallerIcon: 'build/icons/icon.ico', // 卸載圖示
installerHeaderIcon: 'build/icons/icon.ico', // 安裝頂部圖示
allowToChangeInstallationDirectory: true, // 是否可更改安裝目錄
createDesktopShortcut: true, // 是否建立桌面捷徑
createStartMenuShortcut: true // 是否建立開始捷徑
},
publish: [
{
provider: 'github',
owner: 'GoneTone',
repo: 'genshin-impact-wish-gacha-analyzer'
}
]
}
},
i18n: {
locale: 'zh_TW',
fallbackLocale: 'zh_TW',
localeDir: 'locales',
enableLegacy: true,
runtimeOnly: false,
compositionOnly: false,
fullInstall: true
}
}
}