echolevel / AmigaPal

Sample prep/converter tool for Protracker
69 stars 3 forks source link

0.0.7 macOS packaged build crashes #7

Open echolevel opened 4 years ago

echolevel commented 4 years ago

Is it gauche to raise issues on your own repo? Who knows. Anyway, I can't get packaged builds on macOS (Sierra) to run any more. I can run AmigaPal in dev on macOS (electron-forge start) and after some tinkering last night it finally goes through the packaging process without errors (electron-forge package), but then the packaged app crashes immediately with no useful error log.

I think this isn't a code-signing/notarisation issue since a) it's Sierra, b) it worked before and c) my MacBook Pro is/was a dev machine and allows me to run unsigned local code. I also think it isn't a problem with the helper app frameworks that electron-forge is supposed to add to packaged builds for Mac - there were problems last year with electron-forge not adding these properly, but they're all there.

So while I'll try again, I'm currently out of ideas and would love it if some Mac user out there who's set up with a Node dev environment could clone the project and have a go at packaging it. Please let me know how you get on!

dreamwebspace commented 3 years ago

I built it on Mojave, it doesn't crash but all I get is blank window. You moved away from SOX, what does v0.0.7 use instead then?

echolevel commented 3 years ago

Congrats on getting it to build! The blank window could be down to any number of things, including dependency hell (it uses an extremely old version of Angular), but building it again with line 75 of main.js uncommented should open the Chrome dev tools and the console output might give you some clues.

Instead of sox, 0.0.7 just does everything internally - Web Audio has some decoding stuff built in, then after Web Audio processes the various effects and gain stages I do the bit reduction myself (line ~822 of renderer.js) and then write out WAV or 8SVX headers and the byte arrays to disk.

echolevel commented 3 years ago

If you're interested in converting to 8SVX btw, this section contains all of the header offsets that I had to figure out by going through loads of old Commodore and Electronic Arts textfiles... Hope it'll save someone else some hassle in future.

dreamwebspace commented 3 years ago

I'll stick to v0.0.6. I don't have enough time and skills to go deeper. I taught myself webdev, made few websites but node/npm is a big mess, I'm not big fan of Electron apps either. I want to focus on music. Thanks for response.