tools/install.js
function createRootSymLink() {
    var li1 = process.argv[1].lastIndexOf('\\'), li2 = process.argv[1].lastIndexOf('/');
    if (li2 > li1) { li1 = li2; }
    var AppPath = process.argv[1].substring(0,li1);
    var p1 = resolve(AppPath + "/" + nativescriptAppPath);
    var p2 = resolve(AppPath + "/" + webAppPath);
    if (debugging) {
        console.log("Path: ", p1, p2);
    }
    fs.symlinkSync(p2, p1, 'junction');
}
function createRootSymLink() {
    var li1 = process.argv[1].lastIndexOf('\\'), li2 = process.argv[1].lastIndexOf('/');
    if (li2 > li1) { li1 = li2; }
    var AppPath = process.argv[1].substring(0,li1);
    var p1 = resolve(AppPath + "/" + nativescriptAppPath);
    var p2 = resolve(AppPath + "/" + webAppPath);
    if (debugging) {
        console.log("Path: ", p1, p2);
    }
    fs.symlinkSync(p2, p1, 'junction');
}
function createRootSymLink ( ) { var li1 = process . argv [ 1 ] . lastIndexOf ( '\\' ) , li2 = process . argv [ 1 ] . lastIndexOf ( '/' ) ; if ( li2 > li1 ) { li1 = li2 ; } var AppPath = process . argv [ 1 ] . substring ( 0 , li1 ) ; var p1 = resolve ( AppPath + "/" + nativescriptAppPath ) ; var p2 = resolve ( AppPath + "/" + webAppPath ) ; if ( debugging ) { console . log ( "Path: " , p1 , p2 ) ; } fs . symlinkSync ( p2 , p1 , 'junction' ) ; }
Create the symlink when running as root
Create the symlink when running as root