-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
16 changed files
with
93 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.61 MB
build/adobe-integration/autoEdit-panel-export-selections-to-sequence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+1.35 MB
build/adobe-integration/autoEdit-panel-transcription-to-source-monitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+246 KB
...d/adobe-integration/small-size/autoEdit-panel-export-selections-to-sequence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+247 KB
build/adobe-integration/small-size/autoEdit-panel-paper-edit-to-sequence.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added
BIN
+211 KB
...adobe-integration/small-size/autoEdit-panel-transcription-to-source-monitor.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
/** | ||
* Build script to package and sign Adobe CEP panel. | ||
* uses .env for inputs | ||
* Example, `.env` file | ||
ZXPSignCmd_PATH="./ccextensionsmac/ZXPSignCmd" | ||
COUNTRY_CODE=UK | ||
STATE_OR_PROVINCE=London | ||
ORGANIZATION="" | ||
COMMON_NAME="" | ||
CERTIFICATE_PASSWORD="" | ||
CERTIFICATE_OUTPUT_PATH="./ccextensionsmac/certificate.p12" | ||
INPUT_DIRECTORY="./adobe-panel-build" | ||
OUTPUT_ZXP="./dist/com.autoedit2.it.zxp" | ||
TIMESTAMPS_URL="http://timestamp.digicert.com/" | ||
* `./ccextensionsmac/certificate.p12` is in gitignore to avoid accidentally commiting your certificate. | ||
*/ | ||
require('dotenv').config(); | ||
const { exec } = require('child_process'); | ||
|
||
console.log("Starting script"); | ||
// package all files and folders needed inside adobe-panel-build folder | ||
exec('npm run adobe-panel-build', (err, stdout, stderr) => { | ||
if (err) { | ||
// node couldn't execute the command | ||
console.error(err); | ||
return; | ||
} | ||
console.log('moved files to adobe-panel-build '); | ||
|
||
// TODO: | ||
// delete certificate if present | ||
// delete ./dist/com.autoEdit2.it.zxp file | ||
|
||
// creating a certificate | ||
// ZXPSignCmd -selfSignedCert <countryCode> <stateOrProvince> <organization> <commonName> <password> <outputPath.p12> | ||
exec(`${process.env.ZXPSignCmd_PATH} -selfSignedCert ${process.env.COUNTRY_CODE} ${process.env.STATE_OR_PROVINCE} ${process.env.ORGANIZATION} "${process.env.COMMON_NAME}" ${process.env.CERTIFICATE_PASSWORD} ${process.env.CERTIFICATE_OUTPUT_PATH}`, (err, stdout, stderr) => { | ||
if (err) { | ||
// node couldn't execute the command | ||
console.error(err); | ||
return; | ||
} | ||
// the *entire* stdout and stderr (buffered) | ||
// console.log(`stdout: ${stdout}`); | ||
// console.log(`stderr: ${stderr}`); | ||
console.log('created certificate '); | ||
// pack and sign the extension | ||
// ZXPSignCmd -sign <inputDirectory> <outputZxp> <p12> <p12Password> -tsa <timestampURL> | ||
exec(`${process.env.ZXPSignCmd_PATH} -sign ${process.env.INPUT_DIRECTORY} ${process.env.OUTPUT_ZXP} ${process.env.CERTIFICATE_OUTPUT_PATH} ${process.env.CERTIFICATE_PASSWORD} -tsa ${process.env.TIMESTAMPS_URL}`, (err, stdout, stderr) => { | ||
if (err) { | ||
// node couldn't execute the command | ||
console.error(err); | ||
return; | ||
} | ||
console.log(`packaged app in ${process.env.OUTPUT_ZXP}`); | ||
}); | ||
}); | ||
}); |