feat(release): prepare 1.1.0 candidate
This commit is contained in:
parent
5a34f66981
commit
5205dcdfa9
736 changed files with 115667 additions and 12203 deletions
|
|
@ -1,3 +1,5 @@
|
|||
import { createPublicKey } from 'crypto'
|
||||
import { readFileSync } from 'fs'
|
||||
import { resolve } from 'path'
|
||||
import { defineConfig, externalizeDepsPlugin } from 'electron-vite'
|
||||
import react from '@vitejs/plugin-react'
|
||||
|
|
@ -9,9 +11,19 @@ const sharedAlias = {
|
|||
}
|
||||
|
||||
const workspaceExclude = ['@d3ro/core', '@d3ro/ui', '@d3ro/i18n']
|
||||
const licensePublicKeyPath = resolve(__dirname, 'resources/license/production-public.pem')
|
||||
const licensePublicKey = readFileSync(licensePublicKeyPath, 'utf8').trim()
|
||||
const parsedLicensePublicKey = createPublicKey(licensePublicKey)
|
||||
if (parsedLicensePublicKey.asymmetricKeyType !== 'ed25519') {
|
||||
throw new Error(`Desktop license public key must be Ed25519: ${licensePublicKeyPath}`)
|
||||
}
|
||||
|
||||
export default defineConfig({
|
||||
main: {
|
||||
// 공개키만 main bundle에 주입한다. 대응 ADMIN_LICENSE_PRIVATE_KEY는 admin 서버 전용이다.
|
||||
define: {
|
||||
'process.env.D3RO_LICENSE_PUBLIC_KEY': JSON.stringify(licensePublicKey)
|
||||
},
|
||||
plugins: [
|
||||
externalizeDepsPlugin({
|
||||
exclude: ['electron-store', ...workspaceExclude]
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue