From bbf651bd8abef13f522e27f56af6f8ce92367c4e Mon Sep 17 00:00:00 2001 From: Jonas W Date: Sun, 19 Jul 2026 01:11:26 +0200 Subject: [PATCH 1/2] Fix IPC logging not working --- plugins/dev/src/ipc.native.ts | 11 +++++++---- 1 file changed, 7 insertions(+), 4 deletions(-) diff --git a/plugins/dev/src/ipc.native.ts b/plugins/dev/src/ipc.native.ts index 70388ea2..bb614c88 100644 --- a/plugins/dev/src/ipc.native.ts +++ b/plugins/dev/src/ipc.native.ts @@ -1,9 +1,12 @@ -export const getNativeIPCEvents = (): Record => require("./original.asar/app/shared/client/ClientMessageChannelEnum.js").default; -export const getRenderIPCEvents = (): Record => require("./original.asar/app/shared/AppEventEnum.js").default; +const toPlainRecord = >(record: T): Record => Object.fromEntries(Object.entries(record)); + +export const getNativeIPCEvents = (): Record => + toPlainRecord(require("./original.asar/app/shared/client/ClientMessageChannelEnum.js").default); +export const getRenderIPCEvents = (): Record => toPlainRecord(require("./original.asar/app/shared/AppEventEnum.js").default); const ipcListeners: Record void> = {}; export const startRenderIpcLog = async () => { - const { ipcMain } = await import("electron"); + const { ipcMain } = require("electron"); for (const eventName of Object.values(await getRenderIPCEvents())) { ipcListeners[eventName] = (_, ...args) => console.log("[@luna/dev.native]", "Render -> Native", eventName, ...args); ipcMain.on(eventName, ipcListeners[eventName]); @@ -11,7 +14,7 @@ export const startRenderIpcLog = async () => { }; export const stopRenderIpcLog = async () => { if (Object.keys(ipcListeners).length <= 0) return; - const { ipcMain } = await import("electron"); + const { ipcMain } = require("electron"); for (const eventName in ipcListeners) { ipcMain.removeListener(eventName, ipcListeners[eventName]); delete ipcListeners[eventName]; From 34d72c2e52af5dd33acdfbe325f3a3c6f8debb66 Mon Sep 17 00:00:00 2001 From: Jonas W Date: Sun, 19 Jul 2026 01:17:16 +0200 Subject: [PATCH 2/2] bump version --- package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/package.json b/package.json index cab50351..47f60c23 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "luna", - "version": "1.16.1-beta", + "version": "1.16.2-beta", "description": "A client mod for the Tidal music app for plugins", "author": { "name": "Inrixia",