From d04fd7cb870b2b1a156b99951ce42ea775bed84b Mon Sep 17 00:00:00 2001 From: josc146 Date: Wed, 29 Nov 2023 22:59:42 +0800 Subject: [PATCH] fix lib --- Makefile | 6 +++--- frontend/src/startup.ts | 3 ++- 2 files changed, 5 insertions(+), 4 deletions(-) diff --git a/Makefile b/Makefile index 57024cb..d80fc1b 100644 --- a/Makefile +++ b/Makefile @@ -8,15 +8,15 @@ endif build-windows: @echo ---- build for windows - wails build -upx -ldflags "-s -w" -platform windows/amd64 + wails build -upx -ldflags '-s -w -extldflags "-static"' -platform windows/amd64 build-macos: @echo ---- build for macos - wails build -ldflags "-s -w" -platform darwin/universal + wails build -ldflags '-s -w' -platform darwin/universal build-linux: @echo ---- build for linux - wails build -upx -ldflags "-s -w" -platform linux/amd64 + wails build -upx -ldflags '-s -w' -platform linux/amd64 build-web: @echo ---- build for web diff --git a/frontend/src/startup.ts b/frontend/src/startup.ts index 10d7e0d..03b94d7 100644 --- a/frontend/src/startup.ts +++ b/frontend/src/startup.ts @@ -140,7 +140,8 @@ async function initHardwareMonitor() { async function initMidi() { EventsOn('midiError', (data: string) => { - toast('MIDI Error: ' + data, { type: 'error' }); + if (commonStore.platform === 'windows') + toast('MIDI Error: ' + data, { type: 'error' }); }); EventsOn('midiPorts', (data: MidiPort[]) => { commonStore.setMidiPorts(data);