@That1Calculator Would you be able to tell me how I can adjust the startup script so that this works with electron 31? I can run the .asar with electron27, but running with any more recent version gives me the following:
[Server] start /opt/Anytype/resources/app.asar/dist/anytypeHelper /home/hearth/.config/anytype
[Server] Process start error: Error: spawn ENOTDIR
(node:129650) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'on')
at /opt/Anytype/resources/app.asar/electron/js/server.js:36:13
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
at emitUnhandledRejectionWarning (node:internal/process/promises:201:15)
at processPromiseRejections (node:internal/process/promises:297:13)
at process.processTicksAndRejections (node:internal/process/task_queues:96:32)
(node:129650) TypeError: Cannot read properties of undefined (reading 'on')
at /opt/Anytype/resources/app.asar/electron/js/server.js:36:13
at process.processTicksAndRejections (node:internal/process/task_queues:95:5)
The AppImage binaries which use the bundled electron that exist in the root directory of the .deb do run with electron31, it is only the .asar that does not. I have no issues running the .asar of other electron31 apps with my system electron, only Anytype. I am assuming that this issue is reproducible for other people, but I have been unable to test in a virtual environment yet.
With a previous version I had assumed this error was because the .asar was not built to be used with more recent electron versions: I understand now that this wasn't the case.
I will bump the version but keep the dependency and leave the startup script as-is so that the app at least launches; I will be reaching out to the Anytype team for any guidance they can offer. You are also welcome to join as co-maintainer or to take over maintenance entirely.
Pinned Comments
hearth commented on 2023-12-30 22:17 (UTC)
MIGRATION
If you are coming from the > 0.3.2 BETA please read the instructions: