Sign app for publishing (#38)
* Sign app for publishing * update gitignore * refactor input args * Change instance api sorting * Better instance sorting * Instance filter * remove hardcoded instance * script cleanups * Unused function
This commit is contained in:
1 parent
4640a34863
commit
7a155c689e
15 files changed
+636
-252
No files matched your search
@@ -0,0 +1,28 @@
|
||||
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',
|
||||
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);
|
||||
}
|
||||
})();
|
||||
Reference in new issue
Block a user