Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add support for Linux / Windows #15

Open
johnpeb opened this issue Jul 28, 2012 · 2 comments
Open

Add support for Linux / Windows #15

johnpeb opened this issue Jul 28, 2012 · 2 comments

Comments

@johnpeb
Copy link
Contributor

johnpeb commented Jul 28, 2012

Currently the Android build doesn't work on Linux. It fails trying to find a resource while generating javascript if I recall correctly.

Also Windows support would be very nice.

Obviously the iOS build would only work on a Mac.

@dhoskins
Copy link
Collaborator

Kirin install fails for me on windows with the following logs:
11379 silly exec cmd "/c" "bin/install-me.js"
11380 silly cmd,/c,bin/install-me.js,C:\Users\dougie\node_modules\kirin\node_modules\kirin-build spawning
11381 info kirin-build@0.1.0 Failed to exec install script
11382 info C:\Users\dougie\node_modules\kirin\node_modules\kirin-build unbuild
11383 verbose from cache C:\Users\dougie\node_modules\kirin\node_modules\kirin-build\package.json
11384 info preuninstall kirin-build@0.1.0
11385 info uninstall kirin-build@0.1.0
11386 verbose false,C:\Users\dougie\node_modules,C:\Users\dougie\node_modules\kirin\node_modules unbuild kirin-build@0.1.0
11387 verbose C:\Users\dougie\node_modules\kirin\node_modules.bin,[object Object] binRoot
11388 info postuninstall kirin-build@0.1.0
11389 verbose about to build C:\Users\dougie\node_modules\kirin
11390 info C:\Users\dougie\node_modules\kirin unbuild
11391 verbose from cache C:\Users\dougie\node_modules\kirin\package.json
11392 info preuninstall kirin@0.6.3
11393 info uninstall kirin@0.6.3
11394 verbose true,C:\Users\dougie\node_modules,C:\Users\dougie\node_modules unbuild kirin@0.6.3
11395 verbose C:\Users\dougie\node_modules.bin,[object Object] binRoot
11396 info postuninstall kirin@0.6.3
11397 error kirin-build@0.1.0 install: bin/install-me.js
11397 error cmd "/c" "bin/install-me.js" failed with 1
11398 error Failed at the kirin-build@0.1.0 install script.
11398 error This is most likely a problem with the kirin-build package,
11398 error not with npm itself.
11398 error Tell the author that this fails on your system:
11398 error bin/install-me.js
11398 error You can get their info via:
11398 error npm owner ls kirin-build
11398 error There is likely additional logging output above.
11399 error System Windows_NT 6.2.9200
11400 error command "c:\Program Files\nodejs\node.exe" "c:\Program Files\nodejs\node_modules\npm\bin\npm-cli.js" "install" "kirin"
11401 error cwd C:\Users\dougie
11402 error node -v v0.8.12
11403 error npm -v 1.1.63
11404 error code ELIFECYCLE
11405 verbose exit [ 1, true ]

@gilled
Copy link

gilled commented Oct 26, 2012

I sort of managed to build the stock app for android on Ubuntu, but I had to patch the kirin-build browserifier.js . It changes to the temp directory before that piece of code:

var allRequires = _.map(nodeModule.filter(fileFilters.browserfiable).relativeFiles(), function (f) {
        var fileOnDisk = nodeModule.fileOnDisk(f);
        var relPath = revFileMap[fileOnDisk];
        var aliasName = path.join(nodeModulesDir, path.basename(relPath));
        writeAliasModule(aliasName, path.join(".", nodeModule.name, relPath));
        return path.basename(relPath); 
    });

And so creates bad aliasName . If you chdir to the temp directory after this block, it works.

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

No branches or pull requests

3 participants