Skip to content

a bit confused #15

Closed
Closed
@sonnyp

Description

@sonnyp

you should be able to run './src/my-js-app' and stuff should just work
-- https://github.com/gcampax/gtk-js-app/blob/master/README

% ./src/my-js-app                                                                                                                                                                 
no such file or directory: ./src/my-js-app

Ok let's try gjs.

 % gjs ./src/main.js                                                                                                                                                               
(gjs:1281): Gjs-WARNING **: 15:27:19.845: JS ERROR: ReferenceError: pkg is not defined
@./src/main.js:27:1
Script ./src/main.js threw an exception

Ok let's build this

% meson build
[....]

% ./build/src/com.example.Gtk.JSApplication 
permission denied: ./build/src/com.example.Gtk.JSApplication

% chmod +x ./build/src/com.example.Gtk.JSApplication
                                                                                                                        
% ./build/src/com.example.Gtk.JSApplication
(com.example.Gtk.JSApplication:1424): Gjs-WARNING **: 15:28:32.957: JS ERROR: ImportError: No JS module 'main' found in search path
@./build/src/com.example.Gtk.JSApplication:6:1
Script ./build/src/com.example.Gtk.JSApplication threw an exception

Ok let's install this

% cd build
% DESTDIR=./install ninja install
% ./install/usr/local/bin/com.example.Gtk.JSApplication
(com.example.Gtk.JSApplication:2282): Gjs-WARNING **: 15:35:38.003: JS ERROR: ImportError: No JS module 'main' found in search path
@./install/usr/local/bin/com.example.Gtk.JSApplication:6:1

Script ./install/usr/local/bin/com.example.Gtk.JSApplication threw an exception

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions