Package Details: anytype-electron-bin 0.44.0-1

Git Clone URL: https://aur.archlinux.org/anytype-electron-bin.git (read-only, click to copy)
Package Base: anytype-electron-bin
Description: Operating environment for the new internet. Anytype is a next generation software that breaks down barriers between applications, gives back privacy and data ownership to users.
Upstream URL: https://anytype.io/
Licenses: custom
Conflicts: anytype, anytype-legacy
Provides: anytype
Submitter: AsukaMinato
Maintainer: hearth (aperez)
Last Packager: hearth
Votes: 5
Popularity: 0.179097
First Submitted: 2023-10-29 06:53 (UTC)
Last Updated: 2024-12-18 16:15 (UTC)

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:

Install anytype-legacy
Follow the instructions HERE: https://community.anytype.io/t/anytype-legacy-to-beta-migration-trail-guide/9274 UP to the point 2., BUT NOT 3.
Now install anytype-bin (this package) and now you can follow point 3. and login with the recovery phrase.

Latest Comments

« First ‹ Previous 1 2 3 Next › Last »

hearth commented on 2024-07-10 00:28 (UTC)

@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.

That1Calculator commented on 2024-07-09 15:45 (UTC)

Newest version (0.41.21) is based on Electron 31, not 27

hearth commented on 2024-06-11 17:52 (UTC)

@tee In trying to repackage the .asar as you requested I'm running into a series of errors relating to npm packages; I don't really know what I am doing. I think some paths internal to some files have to be changed.

If you would like this process to be done via a build step in the PKGBUILD, you are welcome to modify it as a co-maintainer (or to take over maintaining.)

If you would rather I do the repackaging on my machine with the resulting .asar simply being installed with the PKGBUILD (to avoid users' machines having to download, decompress the .deb, and repackage during installation), I am happy to do so if you can tell me what I need to do!

tee commented on 2024-06-10 11:32 (UTC)

Can you repack the files back into .asar? So instead of 10000 files it's one.

hearth commented on 2024-06-05 13:12 (UTC)

I had noticed I forgot to update the launcher script when I pushed that update, in going to fix it I have found that the binary will not run with electron or electron30, but will with electron27, so it seems to still be required. Should have tested before pushing.

I will test with future updates to see if that changes. If I am doing something wrong, please let me know.

hearth commented on 2024-06-04 21:19 (UTC)

Updated and removed the dependency. I apologize for the oversight.

That1Calculator commented on 2024-06-03 22:30 (UTC)

Anytype now uses Electron 30 as of the Spring Update (v0.40.28-30), so electron27 should no longer be a dependency.

hearth commented on 2024-02-20 14:08 (UTC)

Sorry for the slow reply.

I was working on finding a fix to Deresiant's issue, but with my personal life being a bit hectic, I honestly forgot.

I have bumped to version 0.38.12-alpha and changed the dependencies.

I originally took over maintenance of this package because it was orphaned, the first update only required bumping the version to work. I have little experience with electron, so co-maintainers are warmly welcomed.

aperez commented on 2024-02-19 21:54 (UTC)

I found the same issue as @Deresiant and figured out that switching the launcher script to use electron27 made things work.

@hearth: Please change the dependency from electron to electron27, and if you need help maintaining the package, I can help out as co-maintainer.

Deresiant commented on 2024-02-18 09:46 (UTC) (edited on 2024-02-18 09:47 (UTC) by Deresiant)

Any clue what might be wrong with my anytype? anytype-bin boots up properly.

/opt/Anytype/anytype --trace-warnings
[Server] Process start error:  Error: spawn ENOTDIR
(node:163856) UnhandledPromiseRejectionWarning: Error: spawn ENOTDIR
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at Object.spawn (node:child_process:776:9)
    at /opt/Anytype/resources/app.asar/electron/js/server.js:34:29
    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:163856) Error: spawn ENOTDIR
    at ChildProcess.spawn (node:internal/child_process:421:11)
    at Object.spawn (node:child_process:776:9)
    at /opt/Anytype/resources/app.asar/electron/js/server.js:34:29
(node:163856) UnhandledPromiseRejectionWarning: TypeError: Cannot read properties of undefined (reading 'on')
    at /opt/Anytype/resources/app.asar/electron/js/server.js:43:13
    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:163856) TypeError: Cannot read properties of undefined (reading 'on')
    at /opt/Anytype/resources/app.asar/electron/js/server.js:43:13
[ConfigManager].init: {
  channel: 'beta',
  languages: [ 'en-US', 'en' ],
  zoom: 0,
  debug: {},
  theme: 'dark'
}
(node:163856) PromiseRejectionHandledWarning: Promise rejection was handled asynchronously (rejection id: 1)
    at handledRejection (node:internal/process/promises:173:23)
    at promiseRejectHandler (node:internal/process/promises:119:7)
    at Promise.then (<anonymous>)
    at waitForLibraryAndCreateWindows (/opt/Anytype/resources/app.asar/electron.js:89:21)
    at /opt/Anytype/resources/app.asar/electron/js/config.js:33:5
    at /opt/Anytype/resources/app.asar/node_modules/electron-json-storage/lib/storage.js:208:14
    at /opt/Anytype/resources/app.asar/node_modules/electron-json-storage/lib/lock.js:123:12
    at /opt/Anytype/resources/app.asar/node_modules/lockfile/lockfile.js:62:47
    at FSReqCallback.oncomplete (node:fs:189:23)