nvm use 14
cd apple-music-desktop-0.1.3
sed '/zip/d;/deb/d' -i electron-builder.json
npm install --force
npm run build
npm run distLinux
$ electron22 src/apple-music-desktop-0.1.3/dist/linux-unpacked/resources/app.asar
[32891:0922/092515.825338:ERROR:object_proxy.cc(623)] Failed to call method: org.freedesktop.DBus.Properties.Get: object_path= /org/freedesktop/portal/desktop: org.freedesktop.DBus.Error.InvalidArgs: 无此接口“org.freedesktop.portal.FileChooser”
[32891:0922/092515.825384:ERROR:select_file_dialog_linux_portal.cc(274)] Failed to read portal version property
(node:32891) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'whenReady')
at /home/zxp-endeavouros/.cache/paru/clone/apple-music-desktop/src/apple-music-desktop-0.1.3/dist/linux-unpacked/resources/app.asar/app.js:299:22
(Use `electron --trace-warnings ...` to show where the warning was created)
(node:32891) UnhandledPromiseRejectionWarning: Unhandled promise rejection. This error originated either by throwing inside of an async function without a catch block, or by rejecting a promise which was not handled with .catch(). To terminate the node process on unhandled promise rejection, use the CLI flag `--unhandled-rejections=strict` (see https://nodejs.org/api/cli.html#cli_unhandled_rejections_mode). (rejection id: 2)
$ ./src/apple-music-desktop-0.1.3/dist/linux-unpacked/apple-music
[1] 33058 trace trap (core dumped) ./src/apple-music-desktop-0.1.3/dist/linux-unpacked/apple-music