Skip to content

feat: linux - #6202

Draft
triniwiz wants to merge 20 commits into
feat/windowsfrom
feat/linux
Draft

triniwiz wants to merge 20 commits into
feat/windowsfrom
feat/linux

Conversation

@triniwiz

@triniwiz triniwiz commented Nov 7, 2026

Copy link
Copy Markdown
Member

Adds support for the new Linux runtime (GTK 4).

Part of NativeScript/NativeScript#27

- run/build/debug linux on the local machine: the app is the runtime
  executable from @nativescript/linux staged with its metadata and app/
- logs from the app's stdout/stderr, webpack HMR via SIGUSR1, DevTools on
  --inspect=<port>
- release builds packed as .tar.gz
- doctor: Linux host with GTK 4
App_Resources/Linux holds icon.png|svg, an optional app.desktop and
app.metainfo.xml (__APP_ID__, __APP_NAME__, __EXEC__) and res:// images.
Projects without it get the runtime package's defaults. Builds stage an
icon theme (icons/hicolor), <app-id>.desktop and metainfo next to the
executable; release tarballs add install.sh for ~/.local.
@coderabbitai

coderabbitai Bot commented Nov 7, 2026

Copy link
Copy Markdown

Important

Draft PR not reviewed

Draft PRs are not automatically reviewed by default.

  • Trigger a manual review

To automatically review draft PRs, update your CodeRabbit configuration:

reviews:
  auto_review:
    drafts: true
  • Autofix · Keep fixing CodeRabbit findings and required CI, and resolving merge conflicts

Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out.

Share

…eep App_Resources build inputs out of the package
@triniwiz
triniwiz deployed to npm-publish November 7, 2026 03:19 — with GitHub Actions Active
Plugins a plugin depends on (MasonKit's @nativescript/font-manager) were skipped: use the production
plugins, as iOS does.
Release builds pack app/ with the runtime's ns-bundle (sealed with
linux.sourceProtect / --source-protect, per-build key unless
--source-protect-key-hex or NS_LINUX_BUNDLE_KEY), unpack linux.bundleUnpack
globs, and patch the executable's fuses. Bundling failures fall back to the
plain folder; failed source protection fails the build.
…tall.sh

Values are escaped per format (desktop entry strings, quoted Exec= with %%,
XML), install.sh shell-quotes the name and fills Exec= literally, and the
app id must be a reverse-DNS name: an empty id made install.sh rm -rf the
whole XDG data dir.
Packaged files drop go-w and GNU tar stores them as root:root, so a root
extraction doesn't leave the installed app writable by the builder's uid.
argv is readable by every local user in /proc/<pid>/cmdline; tools
without $NS_BUNDLE_KEY_HEX support still get --key-hex.
The runtime only upgrades ws://127.0.0.1:<port>/<id> now; the id comes
from /json/list (older runtimes without one keep the bare URL).
Command lines show up in process lists and audit logs; tools that don't
document NS_BUNDLE_KEY_HEX in --help still get --key-hex.
@triniwiz
triniwiz deployed to npm-publish November 8, 2026 06:22 — with GitHub Actions Active
ns run/debug now installs the staged <app-id>.desktop and icons into
$XDG_DATA_HOME, so the shell matches the window to the app and shows its
name and icon (dock, "not responding" dialog). Entries it didn't write,
such as one from install.sh, are left alone; release stages are skipped.
@triniwiz
triniwiz deployed to npm-publish November 8, 2026 20:45 — with GitHub Actions Active
@triniwiz
triniwiz deployed to npm-publish November 9, 2026 03:23 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
npm-publish — 34a63585 Deployed Nov 9, 2026 by triniwiz via publish #387
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.

1 participant