This commit is contained in:
josc146 2023-11-29 22:59:42 +08:00
parent b398cbb591
commit d04fd7cb87
2 changed files with 5 additions and 4 deletions

View File

@ -8,15 +8,15 @@ endif
build-windows: build-windows:
@echo ---- build for 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: build-macos:
@echo ---- build for macos @echo ---- build for macos
wails build -ldflags "-s -w" -platform darwin/universal wails build -ldflags '-s -w' -platform darwin/universal
build-linux: build-linux:
@echo ---- build for 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: build-web:
@echo ---- build for web @echo ---- build for web

View File

@ -140,7 +140,8 @@ async function initHardwareMonitor() {
async function initMidi() { async function initMidi() {
EventsOn('midiError', (data: string) => { EventsOn('midiError', (data: string) => {
toast('MIDI Error: ' + data, { type: 'error' }); if (commonStore.platform === 'windows')
toast('MIDI Error: ' + data, { type: 'error' });
}); });
EventsOn('midiPorts', (data: MidiPort[]) => { EventsOn('midiPorts', (data: MidiPort[]) => {
commonStore.setMidiPorts(data); commonStore.setMidiPorts(data);