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);