|
|
|
@ -13,7 +13,7 @@ if (doSetup) {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
// Load the config
|
|
|
|
|
const { host, port, useSsl, isProxied, s3enabled } = require('./config.json');
|
|
|
|
|
const { host, port, useSsl, isProxied, s3enabled, frontendName } = require('./config.json');
|
|
|
|
|
|
|
|
|
|
//#region Imports
|
|
|
|
|
const fs = require('fs-extra');
|
|
|
|
@ -32,7 +32,7 @@ const { name: ASS_NAME, version: ASS_VERSION } = require('./package.json');
|
|
|
|
|
log.blank().info(`* ${ASS_NAME} v${ASS_VERSION} *`).blank();
|
|
|
|
|
|
|
|
|
|
// Set up premium frontend
|
|
|
|
|
const FRONTEND_NAME = 'ass-x'; // <-- Change this to use a custom frontend
|
|
|
|
|
const FRONTEND_NAME = frontendName;
|
|
|
|
|
const ASS_PREMIUM = fs.existsSync(`./${FRONTEND_NAME}/package.json`) ? (require('submodule'), require(`./${FRONTEND_NAME}`)) : { enabled: false };
|
|
|
|
|
|
|
|
|
|
//#region Variables, module setup
|
|
|
|
|