Publish Vulpes Preview 15 sources for desktop, Android and Tundra

Share Gaia assets and adapters, keep private profiles and development documents local, and update both public READMEs.
This commit is contained in:
OverSu 2026-09-30 23:13:03 +02:00
commit b38dea0597
25901 changed files with 9982925 additions and 369 deletions

View file

@ -0,0 +1,70 @@
#!/usr/bin/env node
'use strict';
var exec = require('child_process').exec;
/**
* Checks which sockit-to-me binary we need. This will be null unless
*
* 1. Platform is linux
* 2. gcc not installed
* 3. Linux version is ubuntu 12.04
*
* @param {Function} callback will be invoked with null, 'i386', or 'amd64'.
*/
function getRequiredVersion(callback) {
if (process.platform !== 'linux') {
console.log('[sockit-to-me] platform not linux');
return callback(null);
}
exec('type g++', function(err, stdout) {
if (stdout.indexOf('g++ is') !== -1) {
console.log('[sockit-to-me] found g++');
return callback(null);
}
exec('lsb_release -a', function(err, stdout) {
if (stdout.indexOf('precise') === -1) {
console.log('[sockit-to-me] distribution not precise');
return callback(null);
}
// Choose between 32 and 64 bit versions.
exec('uname -a', function(err, stdout) {
var result;
if (stdout.indexOf('i386') !== -1) {
result = 'i386';
} else if (stdout.indexOf('x86_64') !== -1) {
result = 'amd64';
} else {
result = null;
}
return callback(result);
});
});
});
}
function main() {
getRequiredVersion(function(version) {
if (version === null) {
// We can build on the fly.
process.exit(1);
}
// Copy an existing binary into build/Release.
console.log('[sockit-to-me] will use existing binary');
console.log('[sockit-to-me] ' + version);
exec('mkdir -p build', function() {
var source = 'bin/ubuntu-12.04.3-' + version;
var dest = 'build/Release';
var cp = ['cp', '-r', source, dest].join(' ');
exec(cp, function() {});
});
});
}
if (require.main === module) {
main();
}

View file

@ -0,0 +1,28 @@
#!/usr/bin/env node
'use strict';
var exec = require('child_process').exec;
function main() {
var info = {
__dirname: __dirname,
__filename: __filename,
process: {
arch: process.arch,
config: process.config,
cwd: process.cwd(),
env: process.env,
execArgv: process.execArgv,
platform: process.platform
}
};
exec('whoami', function(err, stdout, stderr) {
info.whoami = stdout.replace(/\s+/g, '');
console.log('[sockit-to-me] ' + JSON.stringify(info, null, 4));
process.exit(1);
});
}
if (require.main === module) {
main();
}

View file

@ -0,0 +1,19 @@
#!/usr/bin/env bash
# curl -L https://raw.github.com/mozilla-b2g/sockit-to-me/master/tools/prebuild.sh | bash -s stable
# This script prebuilds nodejs and sockit-to-me on ubuntu since we can't do
# it on the fly on the build machines (they don't have gcc).
UBUNTU=/home/ubuntu
sudo apt-get -y update --fix-missing
sudo apt-get -y install g++ gcc git make
cd $UBUNTU && git clone https://github.com/joyent/node
cd $UBUNTU && git clone https://github.com/mozilla-b2g/sockit-to-me
# Build nodejs.
cd $UBUNTU/node && git checkout v0.10.21 && ./configure && make && sudo make install
# Install node-gyp.
sudo npm install -g node-gyp
# Build sockit-to-me.
cd $UBUNTU/sockit-to-me && node-gyp configure build