mirror of
https://github.com/YuzuZensai/Discord-Presence-Relay.git
synced 2026-09-13 10:49:02 +00:00
🔧 chore: Update dependencies
This commit is contained in:
@@ -0,0 +1,56 @@
|
||||
import { execSync } from 'child_process'
|
||||
|
||||
function getBuildVersion() {
|
||||
if (process.env.BUILD_VERSION) return process.env.BUILD_VERSION
|
||||
try {
|
||||
return execSync('git rev-parse --short HEAD').toString().trim()
|
||||
} catch {
|
||||
return 'unknown'
|
||||
}
|
||||
}
|
||||
|
||||
process.env.BUILD_VERSION = getBuildVersion()
|
||||
|
||||
/**
|
||||
* @type {import('electron-builder').Configuration}
|
||||
*/
|
||||
export default {
|
||||
appId: 'cafe.kirameki.discord-rpc-relay',
|
||||
productName: 'Discord RPC Relay',
|
||||
files: [
|
||||
'!**/.vscode/*',
|
||||
'!src/*',
|
||||
'!electron.vite.config.{js,ts,mjs,cjs}',
|
||||
'!electronBuilder.mjs',
|
||||
'!{.eslintcache,eslint.config.mjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}',
|
||||
'!{.env,.env.*,.npmrc,pnpm-lock.yaml,pnpm-workspace.yaml}',
|
||||
'!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
|
||||
],
|
||||
asarUnpack: ['resources/**'],
|
||||
win: {
|
||||
executableName: 'discord-rpc-relay'
|
||||
},
|
||||
nsis: {
|
||||
artifactName: '${name}-${env.BUILD_VERSION}-setup.${ext}',
|
||||
shortcutName: '${productName}',
|
||||
uninstallDisplayName: '${productName}',
|
||||
createDesktopShortcut: 'always'
|
||||
},
|
||||
mac: {
|
||||
notarize: false
|
||||
},
|
||||
dmg: {
|
||||
artifactName: '${name}-${env.BUILD_VERSION}.${ext}'
|
||||
},
|
||||
linux: {
|
||||
target: ['AppImage', 'deb'],
|
||||
maintainer: 'electronjs.org',
|
||||
category: 'Utility',
|
||||
artifactName: '${name}-${env.BUILD_VERSION}.${ext}'
|
||||
},
|
||||
npmRebuild: false,
|
||||
publish: {
|
||||
provider: 'generic',
|
||||
url: 'https://example.com/auto-updates'
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user