GV

GeezerVison

The World Wide Web, restored to 800 pixels of glory.

Home|About|Gaming cabinet|Archives|How it works|Starter sites

On this site

  • Sign in
  • ActionsCI/CD and automation
  • CodespacesCloud development environments
  • All Features
  • Documentation
  • Training
  • Certifications
  • Build with Copilot
  • Customize Copilot
  • Integrations
  • Trending repos
  • GitHub Sponsors
  • Developer articles
  • Enterprises

This view

  • Original page
  • New address

GeezerVison is showing github.com — feat: linux by triniwiz · Pull Request #6202 · NativeScript/nativescript-cli

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

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

All reactions
triniwiz added 6 commits November 6, 2026 19:28
@triniwiz
feat(linux): linux platform
8a3d5d2
- 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
@triniwiz
feat(linux): desktop integration from App_Resources/Linux
45fed5f
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.
@triniwiz
feat(linux): build app and plugin native code (C sources, .a, prebuil…
56ed1d3
…t .so) with metadata, ns typings linux
@triniwiz
feat(linux): native-api-usage.json metadata filtering; build tools st…
97bf27d
…ay in the runtime package
@triniwiz
feat(linux): ns typings linux also copies the SDK typings and writes …
2079ad2
…typings/linux/index.d.ts
@triniwiz
feat(linux): pass the host project path to the bundler
3678649
@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

  • X
  • Mastodon
  • Reddit
  • LinkedIn
All reactions

Sorry, something went wrong.

Uh oh!

There was an error while loading. Please reload this page.

@triniwiz
fix(linux): AppStream release info (__APP_VERSION__, __APP_DATE__), k…
3b593da
…eep App_Resources build inputs out of the package
@triniwiz
triniwiz deployed to npm-publish November 7, 2026 03:19 — with GitHub Actions Active
@triniwiz
feat(linux): bundle prebuilt Node-API addons (.node) from plugins' pl…
945f6f3
…atforms/linux/lib/<arch>
This was referenced Nov 7, 2026
feat: Linux support triniwiz/nativescript-mason#172
Merged
feat: Linux support NativeScript/canvas#189
Merged
triniwiz added 10 commits November 7, 2026 05:23
@triniwiz
fix(linux): native code of nested plugins
5adb7c2
Plugins a plugin depends on (MasonKit's @nativescript/font-manager) were skipped: use the production
plugins, as iOS does.
@triniwiz
feat(linux): pack release apps into app.nsbundle
430ea82
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.
@triniwiz
fix(linux): escape app metadata in desktop entries, AppStream and ins…
533ee1b
…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.
@triniwiz
fix(linux): release tarballs without group/other write or builder uid
0aeb081
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.
@triniwiz
feat(linux): V8, Hermes and JSC Node-API runtime packages
07c450e
@triniwiz
fix(linux): keep --key-hex values out of spawn trace logs
35100cf
@triniwiz
fix(linux): pass the sealing key to ns-bundle via the environment
93d5d27
argv is readable by every local user in /proc/<pid>/cmdline; tools
without $NS_BUNDLE_KEY_HEX support still get --key-hex.
@triniwiz
fix(linux): DevTools URL with the inspector's target id
d265e49
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).
@triniwiz
fix(windows): pass the sealing key to nsbundle_pack via the environment
d42f3f1
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
chore(linux): comment wording
c8236f6
@triniwiz
triniwiz deployed to npm-publish November 8, 2026 06:22 — with GitHub Actions Active
@triniwiz
feat(linux): register debug builds with the desktop
41369c9
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
fix(linux): run the staged executable of release builds
34a6358
@triniwiz
triniwiz deployed to npm-publish November 9, 2026 03:23 — with GitHub Actions Active
@triniwiz
feat(linux): use native code's module maps and CMake builds (#6204)
57978ff
A module.modulemap in src/ or include/ is passed to the generator as is;
sources are built as the library its first `link` names. A CMakeLists.txt
replaces the built-in compile: its shared libraries are bundled and the
generator takes its flags from compile_commands.json.
@triniwiz
triniwiz deployed to npm-publish November 11, 2026 06:57 — with GitHub Actions Active

This branch was successfully deployed

1 active deployment
npm-publish — 57978ff1 Deployed Nov 11, 2026 by triniwiz via publish #388
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Reviewers

No reviews

Uh oh!

There was an error while loading. Please reload this page.

Assignees

No one assigned

Labels

None yet

Projects

None yet

Milestone

No milestone

Development

Successfully merging this pull request may close these issues.

Uh oh!

There was an error while loading. Please reload this page.

1 participant

@triniwiz
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
You are visitor 01402503 — GeezerVison does not store the pages you look up.
Best viewed with Netscape Navigator 4.7 or Internet Explorer 6 at 800×600. No cookies required.