Package Details: nwjs-bin 0.111.2-1

Git Clone URL: https://aur.archlinux.org/nwjs-bin.git (read-only, click to copy)
Package Base: nwjs-bin
Description: Runtime based on Chromium and node.js
Upstream URL: https://nwjs.io
Keywords: node-webkit nw.js
Licenses: MIT
Provides: node-webkit, nwjs
Submitter: yan12125
Maintainer: lufog
Last Packager: lufog
Votes: 54
Popularity: 0.005831
First Submitted: 2015-08-14 09:25 (UTC)
Last Updated: 2026-05-12 04:28 (UTC)

Dependencies (6)

Sources (3)

Latest Comments

1 2 3 4 5 Next › Last »

lufog commented on 2025-11-17 09:36 (UTC) (edited on 2025-11-17 09:42 (UTC) by lufog)

PKGBUILD for those who want to stick with an older version, or install multiple versions side by side.

pkgver=0.102.1
_mnrver=$(echo $pkgver | cut -d. -f2)
pkgname=nwjs$_mnrver-bin
pkgrel=1
pkgdesc="Runtime based on Chromium and node.js"
arch=(x86_64)
url="https://nwjs.io"
license=('MIT')
optdepends=(
  'nodejs: npm package support'
  'nw-gyp: native add-on build tool for node-webkit'
)
options=(!debug)
source=(
  nwjs-$pkgver.tar.gz::https://dl.nwjs.io/v$pkgver/nwjs-v$pkgver-linux-x64.tar.gz
)
sha256sums=('SKIP')

prepare() {
  # Simplify folder name (only if exists, in case of using '--noextract').
  if [ -d nwjs-v$pkgver-linux-x64 ]; then
    rm -rf nwjs && mv nwjs-v$pkgver-linux-x64 nwjs
  fi
}

package() {
  depends=(gtk3 nss libxss)
  provides=(nwjs node-webkit)

  install -Dm755 "$srcdir"/nwjs/{chrome_crashpad_handler,nw}         -t "$pkgdir"/opt/nwjs$_mnrver/
  install -Dm644 "$srcdir"/nwjs/{icudtl.dat,v8_context_snapshot.bin} -t "$pkgdir"/opt/nwjs$_mnrver/
  install -Dm644 "$srcdir"/nwjs/{nw_{100,200}_percent,resources}.pak -t "$pkgdir"/opt/nwjs$_mnrver/

  for d in lib locales; do
    for f in $(find "$srcdir"/nwjs/$d -type f -printf "%P\n"); do
      install -Dm644 "$srcdir"/nwjs/$d/$f -T "$pkgdir"/opt/nwjs$_mnrver/$d/$f
    done
  done

  mkdir -p "$pkgdir"/usr/bin/ && ln -sr "$pkgdir"/opt/nwjs$_mnrver/nw -T "$pkgdir"/usr/bin/nw$_mnrver
}

oech3 commented on 2025-08-30 18:01 (UTC)

I was hoping to specified it as optdeps directly, but I applied it at a moment.

lufog commented on 2025-08-30 17:52 (UTC)

I think it would be more correct to add nwjs-ffmpeg-codecs to provides, and remove nwjs from optdepends.

oech3 commented on 2025-08-30 15:29 (UTC)

nwjs-ffmpeg-codecs is no longer existing and renamed to chromium-ffmpeg for all Chromiums.

lufog commented on 2025-08-18 08:42 (UTC)

Ok, I'll remove it with the next version.

oech3 commented on 2025-08-18 08:07 (UTC)

I added hooks to chromium-ffmpeg{,-bin} pkgs to replace it. So this pkg can remove ffmpeg from source.

lufog commented on 2025-08-15 23:32 (UTC) (edited on 2025-08-16 00:10 (UTC) by lufog)

@oech3, I can do that, but it won't work. Without removing libffmpeg.so from nwjs/lib/, it will be loaded as a higher priority one. Of course, I can put the original file in nwjs/lib_fb (to load it as a fallback). And the third-party one can be installed as a separate package in nwjs/lib/. It will work, but it doesn't look very good... Bad idea, don't want to make wrappers for all binaries that require libffmpeg.so.

oech3 commented on 2025-08-15 13:20 (UTC) (edited on 2025-08-15 13:21 (UTC) by oech3)

Would you put #!/usr/bin/bash; LD_LIBRARY_PATH=/opt/nwjs exec /opt/nwjs/nw "$@" at /usr/bin/nw which avoids to override .so at here?

lufog commented on 2025-08-15 04:15 (UTC) (edited on 2025-08-15 04:31 (UTC) by lufog)

Added .desktop file with MimeType=inode/directory in version 0.102.1. Now, you can run NW.js applications (eg win versions of RPG Maker MV games) by opening the folder (containing package.json) via 'Open With...' menu.

oech3 commented on 2025-07-21 00:18 (UTC)

Thankyou. I might try to improve external codec pkg after orphaned.

And this may needed to take same packaging layout with electronNM for RMMV as file API of nw is not stable.

Or use chromium -allow-file-access-from-files -window-size="816,624" -autoplay-policy=no-user-gesture-required -proxy-server=dummy -user-data-dir=savedata -app=file://pathto/index.html.