Skip to content

Conversation

@Mindless999
Copy link

Allow MacOS to run from source.

Code is created with AI, rewrite / update where necessary. Not tested on Linux / Windows. Only tested on MacOS, so check if it will work.

Thanks again!

@Inrixia
Copy link
Owner

Inrixia commented Jan 13, 2026

Why is this needed? What's wrong with the current macos builds?

@Mindless999
Copy link
Author

One of the issues that I have when building it local was like this:

Wrote single executable preparation blob to dist/float.blob npm warn Unknown env config "npm-globalconfig". This will stop working in the next major version of npm. npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm. npm warn Unknown env config "_jsr-registry". This will stop working in the next major version of npm. npm warn Unknown env config "shell-emulator". This will stop working in the next major version of npm. npm warn Unknown project config "shell-emulator". This will stop working in the next major version of npm. Start injection of NODE_SEA_BLOB in ./build/float... Error: Can't read and write to target executable node:internal/errors:998 const err = new Error(message); ^ Error: Command failed: npx postject ./build/float NODE_SEA_BLOB ./dist/float.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 --macho-segment-name NODE_SEA at genericNodeError (node:internal/errors:998:15) at wrappedFn (node:internal/errors:543:14) at checkExecSyncError (node:child_process:925:11) at execSync (node:child_process:997:15) at run (file:///Users/<username>/Repository's/floatplane-downloader/Floatplane-Downloader/make.js:5:22) at file:///Users/<username>/Repository's/floatplane-downloader/Floatplane-Downloader/make.js:28:1 at ModuleJob.run (node:internal/modules/esm/module_job:413:25) at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:654:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) { status: 1, signal: null, output: [ null, null, null ], pid: 60076, stdout: null, stderr: null } Node.js v25.2.1  ELIFECYCLE  Command failed with exit code 1.  ELIFECYCLE  Command failed with exit code 1.

Afterwards I had some permission issues

node:fs:2028 binding.chmod(path, mode); ^ Error: ENOENT: no such file or directory, chmod './build/float' at Object.chmodSync (node:fs:2028:11) at file:///Users/<username>/Repository's/floatplane-downloader/Floatplane-Downloader/make.js:13:4 at ModuleJob.run (node:internal/modules/esm/module_job:413:25) at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:654:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) { errno: -2, code: 'ENOENT', syscall: 'chmod', path: './build/float' } Node.js v25.2.1  ELIFECYCLE  Command failed with exit code 1.

And just before this fix made it work I het the following:
Wrote single executable preparation blob to dist/float.blob npm warn Unknown env config "npm-globalconfig". This will stop working in the next major version of npm. npm warn Unknown env config "verify-deps-before-run". This will stop working in the next major version of npm. npm warn Unknown env config "_jsr-registry". This will stop working in the next major version of npm. npm warn Unknown env config "shell-emulator". This will stop working in the next major version of npm. npm warn Unknown project config "shell-emulator". This will stop working in the next major version of npm. Start injection of NODE_SEA_BLOB in ./build/float... Error: Could not find the sentinel NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 in the binary node:internal/errors:998 const err = new Error(message); ^ Error: Command failed: npx postject ./build/float NODE_SEA_BLOB ./dist/float.blob --sentinel-fuse NODE_SEA_FUSE_fce680ab2cc467b6e072b8b5df1996b2 --macho-segment-name NODE_SEA at genericNodeError (node:internal/errors:998:15) at wrappedFn (node:internal/errors:543:14) at checkExecSyncError (node:child_process:925:11) at execSync (node:child_process:997:15) at run (file:///Users/<username>/Repository's/floatplane-downloader/Floatplane-Downloader/make.js:8:22) at file:///Users/<username>/Repository's/floatplane-downloader/Floatplane-Downloader/make.js:34:1 at ModuleJob.run (node:internal/modules/esm/module_job:413:25) at async onImport.tracePromise.__proto__ (node:internal/modules/esm/loader:654:26) at async asyncRunEntryPointWithESMLoader (node:internal/modules/run_main:101:5) { status: 1, signal: null, output: [ null, null, null ], pid: 62379, stdout: null, stderr: null } Node.js v25.2.1  ELIFECYCLE  Command failed with exit code 1.  ELIFECYCLE  Command failed with exit code 1. username@my-Mac Floatplane-Downloader % ls ./build/float ./build/float <username>@my-Mac Floatplane-Downloader % ls -la ./build/float -rwxr-xr-x 1 <username> admin 68384 Dec 29 11:14 ./build/float <username>@my-Mac Floatplane-Downloader %

@Inrixia
Copy link
Owner

Inrixia commented Jan 13, 2026

Hmm, ok, have you tested the built binary?

@Inrixia
Copy link
Owner

Inrixia commented Jan 13, 2026

Given it seems to be building fine in tests I assume it's allg. Just want to he 100% sure

@Inrixia Inrixia merged commit 852d4bd into Inrixia:dev Jan 16, 2026
5 of 6 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants