Commit Graph
6 Commits
Author SHA1 Message Date
Lauri Ojansivu dfdadaa8ca AppImages: FerretDB and mongo-tools are readable by every user again.
releases/fetch.sh downloaded into a mktemp file and moved it into place, so
every download kept mktemp's 0600, and the bundled ferretdb and mongo-tools
were 0711 after chmod +x. A user other than the owner gets "Permission
denied" from such a file, and since today's appimagetool checks for it, all
six v12.69 AppImages (i686, x86_64, aarch64, armhf and both musl ones)
failed: "has mode 0711, but it must be readable for all users".

A download now gets the mode its umask gives a new file, and the AppDir is
made a+rX before it is packed. tests/releaseDownloads.test.cjs fails on the
old fetch.sh with 711 instead of 755 and checks that a stricter umask is
still followed; tests/appImageRuntime.test.cjs pins both.

Thanks to xet7 !
2026-10-29 23:44:34 +02:00
Lauri Ojansivu 5adc030bde AppImage: relocate its own mount from /tmp to WRITABLE_PATH/app.
Reported: checkmk warned "/tmp/.mount_wekan.OhaGOG ... 100% used"
because the AppImage runtime's own read-only squashfs mount landed on a
small /tmp (a squashfs mount always reports 100% used regardless of
size, so this was really "/tmp is too small for the AppImage", not a
leak).

The AppImage runtime mounts itself under $TMPDIR/.mount_<name>.<random>
(defaulting to /tmp) before AppRun ever runs, so the very first launch's
mount cannot be redirected from inside AppRun. AppRun now re-execs
itself once per launch with TMPDIR set to WRITABLE_PATH/app when the
caller has not already chosen a TMPDIR, so every launch from then on
mounts there instead - and, on that same first launch, sweeps out any of
WeKan's own orphaned .mount_*ekan* directories left in /tmp by an
earlier, uncleanly-killed run (a live one, matched against /proc/mounts,
is never touched).

AppImage-only: no other WeKan platform (Docker, snap, .deb, the bundle
zip) FUSE-mounts itself the way an AppImage does, so none of them are
touched. tests/appImageRuntime.test.cjs pins the relocation, the
once-per-launch/explicit-TMPDIR guards, and that only orphaned mounts
are removed.
2026-09-09 18:15:10 +03:00
Lauri Ojansivu 9129125f40 Fix release build races and packaged Windows startup
Make the AppImage workflow wait for its extra-architecture bundle inputs, let the riscv64 Launchpad waiter return its clean timeout status, and bypass Enigma's false legacy-Windows result before starting Node.js.\n\nThanks to xet7 !
2026-08-30 00:02:52 +03:00
Lauri Ojansivu cfe73ab69e Publish AppImages in the full release workflow.
Call the reusable AppImage workflow after the core GitHub Release publishes its amd64 and arm64 bundles. Pin the exact release tag, grant release-asset write permission, keep downstream packaging parallel, and add regression coverage for the dependency and reusable-workflow interface.

Thanks to xet7 !
2026-08-27 04:08:06 +03:00
Lauri Ojansivu 404a79e007 Make rebuilt 32-bit AppImages start old bundles.
Set a 1 GiB V8 heap default in the generated AppRun for i686 and armhf while preserving explicit NODE_OPTIONS. This protects AppImages rebuilt around an already-published bundle whose launcher predates the 32-bit heap fix, which is why the v11.15 i686 rerun still died during snapshot deserialization. Extend regression coverage for the old-bundle boundary.\n\nThanks to xet7 !
2026-08-27 03:35:43 +03:00
Lauri Ojansivu e8b6003e71 Fix 32-bit AppImage startup checks.
Keep the automatically selected V8 heap within the address space of a 32-bit bundled Node binary, so i686 can deserialize its startup snapshot. Probe the inner bundled Node before smoke-testing an AppImage, so an armhf runner without the hard-float loader is reported as unchecked instead of as a broken application. Add plain-Node regression coverage for the heap limit, override, capability probe and HTTP test ordering.\n\nThanks to xet7 !
2026-08-27 03:02:04 +03:00