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:
@@ -1,4 +1,4 @@
|
|||||||
const { execSync } = require('child_process')
|
import { execSync } from 'child_process'
|
||||||
|
|
||||||
function getBuildVersion() {
|
function getBuildVersion() {
|
||||||
if (process.env.BUILD_VERSION) return process.env.BUILD_VERSION
|
if (process.env.BUILD_VERSION) return process.env.BUILD_VERSION
|
||||||
@@ -14,16 +14,16 @@ process.env.BUILD_VERSION = getBuildVersion()
|
|||||||
/**
|
/**
|
||||||
* @type {import('electron-builder').Configuration}
|
* @type {import('electron-builder').Configuration}
|
||||||
*/
|
*/
|
||||||
module.exports = {
|
export default {
|
||||||
appId: 'cafe.kirameki.discord-rpc-relay',
|
appId: 'cafe.kirameki.discord-rpc-relay',
|
||||||
productName: 'Discord RPC Relay',
|
productName: 'Discord RPC Relay',
|
||||||
files: [
|
files: [
|
||||||
'!**/.vscode/*',
|
'!**/.vscode/*',
|
||||||
'!src/*',
|
'!src/*',
|
||||||
'!electron.vite.config.{js,ts,mjs,cjs}',
|
'!electron.vite.config.{js,ts,mjs,cjs}',
|
||||||
'!electronBuilder.js',
|
'!electronBuilder.mjs',
|
||||||
'!{.eslintcache,eslint.config.mjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}',
|
'!{.eslintcache,eslint.config.mjs,.prettierignore,.prettierrc.yaml,dev-app-update.yml,CHANGELOG.md,README.md}',
|
||||||
'!{.env,.env.*,.npmrc,pnpm-lock.yaml}',
|
'!{.env,.env.*,.npmrc,pnpm-lock.yaml,pnpm-workspace.yaml}',
|
||||||
'!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
|
'!{tsconfig.json,tsconfig.node.json,tsconfig.web.json}'
|
||||||
],
|
],
|
||||||
asarUnpack: ['resources/**'],
|
asarUnpack: ['resources/**'],
|
||||||
+13
-21
@@ -3,7 +3,7 @@
|
|||||||
"version": "1.0.0",
|
"version": "1.0.0",
|
||||||
"description": "Mirrors Discord Rich Presence (RPC) to multiple running Discord instances",
|
"description": "Mirrors Discord Rich Presence (RPC) to multiple running Discord instances",
|
||||||
"main": "./out/main/index.js",
|
"main": "./out/main/index.js",
|
||||||
"packageManager": "pnpm@10.33.0",
|
"packageManager": "pnpm@11.7.0+sha512.19cc852c120c7125760f2443ee6be0ca5b40f9f50598de1a09a1f177503e010e57c23c77646e01e761de59bf874fb22a3398c33ab9691fc13eb946b6f0f4d620",
|
||||||
"author": "",
|
"author": "",
|
||||||
"private": true,
|
"private": true,
|
||||||
"scripts": {
|
"scripts": {
|
||||||
@@ -16,10 +16,10 @@
|
|||||||
"dev": "electron-vite dev",
|
"dev": "electron-vite dev",
|
||||||
"build": "npm run typecheck && electron-vite build",
|
"build": "npm run typecheck && electron-vite build",
|
||||||
"postinstall": "electron-builder install-app-deps",
|
"postinstall": "electron-builder install-app-deps",
|
||||||
"build:unpack": "npm run build && electron-builder --config electronBuilder.js --dir",
|
"build:unpack": "npm run build && electron-builder --config electronBuilder.mjs --dir",
|
||||||
"build:win": "npm run build && electron-builder --config electronBuilder.js --win",
|
"build:win": "npm run build && electron-builder --config electronBuilder.mjs --win",
|
||||||
"build:mac": "npm run build && electron-builder --config electronBuilder.js --mac",
|
"build:mac": "npm run build && electron-builder --config electronBuilder.mjs --mac",
|
||||||
"build:linux": "npm run build && electron-builder --config electronBuilder.js --linux"
|
"build:linux": "npm run build && electron-builder --config electronBuilder.mjs --linux"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@electron-toolkit/preload": "^3.0.2",
|
"@electron-toolkit/preload": "^3.0.2",
|
||||||
@@ -34,25 +34,17 @@
|
|||||||
"@electron-toolkit/eslint-config-ts": "^3.1.0",
|
"@electron-toolkit/eslint-config-ts": "^3.1.0",
|
||||||
"@electron-toolkit/tsconfig": "^2.0.0",
|
"@electron-toolkit/tsconfig": "^2.0.0",
|
||||||
"@tailwindcss/vite": "^4.3.1",
|
"@tailwindcss/vite": "^4.3.1",
|
||||||
"@types/node": "^22.19.1",
|
"@types/node": "^25.9.3",
|
||||||
"@types/react": "^19.2.17",
|
"@types/react": "^19.2.17",
|
||||||
"@types/react-dom": "^19.2.3",
|
"@types/react-dom": "^19.2.3",
|
||||||
"@vitejs/plugin-react": "^4.7.0",
|
"@vitejs/plugin-react": "^5.2.0",
|
||||||
"electron": "^39.2.6",
|
"electron": "^42.4.0",
|
||||||
"electron-builder": "^26.0.12",
|
"electron-builder": "^26.15.3",
|
||||||
"electron-vite": "^5.0.0",
|
"electron-vite": "^5.0.0",
|
||||||
"eslint": "^9.39.1",
|
"eslint": "^10.5.0",
|
||||||
"prettier": "^3.7.4",
|
"prettier": "^3.8.4",
|
||||||
"tailwindcss": "^4.3.1",
|
"tailwindcss": "^4.3.1",
|
||||||
"typescript": "^5.9.3",
|
"typescript": "^6.0.3",
|
||||||
"vite": "^7.2.6"
|
"vite": "^7.3.5"
|
||||||
},
|
|
||||||
"pnpm": {
|
|
||||||
"onlyBuiltDependencies": [
|
|
||||||
"electron",
|
|
||||||
"electron-winstaller",
|
|
||||||
"esbuild",
|
|
||||||
"koffi"
|
|
||||||
]
|
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Generated
+323
-408
File diff suppressed because it is too large
Load Diff
@@ -0,0 +1,12 @@
|
|||||||
|
onlyBuiltDependencies:
|
||||||
|
- electron
|
||||||
|
- electron-winstaller
|
||||||
|
- esbuild
|
||||||
|
- koffi
|
||||||
|
|
||||||
|
minimumReleaseAge: 4320
|
||||||
|
|
||||||
|
allowBuilds:
|
||||||
|
electron-winstaller: true
|
||||||
|
esbuild: true
|
||||||
|
koffi: true
|
||||||
@@ -21,7 +21,7 @@ export class MirrorConnection {
|
|||||||
|
|
||||||
// Discord sends a READY dispatch after the handshake; only once that
|
// Discord sends a READY dispatch after the handshake; only once that
|
||||||
// arrives will it accept further commands like SET_ACTIVITY.
|
// arrives will it accept further commands like SET_ACTIVITY.
|
||||||
this.sock.on('data', (chunk) => {
|
this.sock.on('data', (chunk: Buffer) => {
|
||||||
const hadFrames = this.reader.push(chunk).length > 0
|
const hadFrames = this.reader.push(chunk).length > 0
|
||||||
if (hadFrames && !this.ready) {
|
if (hadFrames && !this.ready) {
|
||||||
this.ready = true
|
this.ready = true
|
||||||
|
|||||||
+2
-2
@@ -303,7 +303,7 @@ export class RpcRelay extends EventEmitter {
|
|||||||
let primaryConnected = false
|
let primaryConnected = false
|
||||||
const pendingToPrimary: Buffer[] = []
|
const pendingToPrimary: Buffer[] = []
|
||||||
|
|
||||||
client.on('data', (chunk) => {
|
client.on('data', (chunk: Buffer) => {
|
||||||
for (const frame of clientReader.push(chunk)) {
|
for (const frame of clientReader.push(chunk)) {
|
||||||
if (frame.op === OP_HANDSHAKE) {
|
if (frame.op === OP_HANDSHAKE) {
|
||||||
handshakePayload = frame.payload
|
handshakePayload = frame.payload
|
||||||
@@ -326,7 +326,7 @@ export class RpcRelay extends EventEmitter {
|
|||||||
primaryConnected = true
|
primaryConnected = true
|
||||||
for (const encoded of pendingToPrimary.splice(0)) primary.write(encoded)
|
for (const encoded of pendingToPrimary.splice(0)) primary.write(encoded)
|
||||||
|
|
||||||
primary.on('data', (chunk) => {
|
primary.on('data', (chunk: Buffer) => {
|
||||||
for (const frame of primaryReader.push(chunk)) {
|
for (const frame of primaryReader.push(chunk)) {
|
||||||
if (client.writable) client.write(encodeFrame(frame.op, frame.payload))
|
if (client.writable) client.write(encodeFrame(frame.op, frame.payload))
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user