* Move src under playlet-lib * Update configuration * Update script * Update script * Working version * Vs code config WIP * Package lock sync * Lint fix * Fix images * Reuse config files * Kind of a working setup * Lock node version * Rename scripts to tools * Fix build scripts, lib url system * Lint fix * rale * Fix args and web server * Load fallbacks and build script cleanups * Remove unused method * no message * no message * Remove generic message field * Lint fix * no message * Use loading indicator on main app * Add playlet lib version to settings --------- Co-authored-by: github-action linter <githubaction@githubaction.com>
29 lines
834 B
JavaScript
29 lines
834 B
JavaScript
const dotenv = require('dotenv');
|
|
const fs = require('fs');
|
|
const rokuDeploy = require('roku-deploy');
|
|
|
|
const config = dotenv.parse(fs.readFileSync('.vscode/.env'));
|
|
|
|
const options = {
|
|
host: config.ROKU_DEV_TARGET,
|
|
password: config.ROKU_DEVPASSWORD,
|
|
outDir: 'release',
|
|
outFile: 'playlet.zip',
|
|
failOnCompileError: true,
|
|
stagingDir: 'dist/build/playlet',
|
|
retainStagingDir: true,
|
|
signingPassword: config.ROKU_SIGN_PASSWORD,
|
|
};
|
|
|
|
(async () => {
|
|
try {
|
|
await rokuDeploy.publish(options);
|
|
const remotePkgPath = await rokuDeploy.signExistingPackage(options);
|
|
const localPkgFilePath = await rokuDeploy.retrieveSignedPackage(remotePkgPath, options);
|
|
console.log(`Created signed package: ${localPkgFilePath}`)
|
|
}
|
|
catch (error) {
|
|
console.error(error);
|
|
}
|
|
})();
|