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

50
gaia/apps/ftu/build/build.js Executable file
View file

@ -0,0 +1,50 @@
'use strict';
/* jshint node: true */
var utils = require('utils');
var importBuild = require('import-config.js');
var DEBUG = false;
var FtuAppBuilder = function() {
};
// Set destination directory and application directory
FtuAppBuilder.prototype.setOptions = function(options) {
this.stageDir = utils.getFile(options.STAGE_APP_DIR);
this.appDir = utils.getFile(options.APP_DIR);
this.gaia = utils.gaia.getInstance(options);
this.gaia.stageDir = this.stageDir;
this.gaia.gaiaDir = options.GAIA_DIR;
this.raptorMode = options.RAPTOR === '1';
this.webapp = options.webapp;
};
FtuAppBuilder.prototype.generateManifest = function() {
var manifestObject = importBuild.generateManifest(this.webapp, this.gaia);
var file = utils.getFile(this.stageDir.path, 'manifest.webapp');
// Remove role:system from FTU so it gets an icon on the homescreen.
// Used to launch the FTU from the homescreen for Raptor tests.
if (this.raptorMode) {
delete manifestObject.role;
}
var args = DEBUG ? [manifestObject, undefined, 2] : [manifestObject];
utils.writeContent(file, JSON.stringify.apply(JSON, args));
};
FtuAppBuilder.prototype.generateAll = function() {
this.generateManifest();
importBuild.generateConfig('ftu', '/', this.gaia);
};
FtuAppBuilder.prototype.execute = function(options) {
this.setOptions(options);
this.generateAll();
};
exports.execute = function(options) {
utils.copyToStage(options);
(new FtuAppBuilder()).execute(options);
};