Skip to content

Commit

Permalink
Merge branch 'develop'
Browse files Browse the repository at this point in the history
  • Loading branch information
unggyu committed Jun 8, 2021
2 parents f774574 + 2f2188a commit 6a77c3e
Show file tree
Hide file tree
Showing 44 changed files with 1,328 additions and 1,820 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
node_modules/
/dist/
.DS_Store
/password.js
8 changes: 8 additions & 0 deletions .vscode/launch.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,6 +21,14 @@
"name": "main.jsx",
"program": "${workspaceFolder}/src/host/main.jsx",
"stopOnEntry": false
},
{
"name": "Launch via npm",
"type": "node",
"request": "launch",
"cwd": "${workspaceFolder}",
"runtimeExecutable": "npm",
"runtimeArgs": ["archive"]
}
]
}
6 changes: 4 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,11 @@
# Every Second
`Every Second` is an Adobe Premiere Pro Extension that automates the repetitive tasks you have to do when creating an `every seconds` meme.
`Every Second` is an Adobe Premiere Pro extension that automates the repetitive tasks you have to do when creating an `every seconds` meme.

![](https://user-images.githubusercontent.com/24535616/121020335-3ec81f80-c7db-11eb-9391-b9e054c109f5.jpg)

![](https://user-images.githubusercontent.com/24535616/121020607-7c2cad00-c7db-11eb-8f25-9d5a08dff613.jpg)
![](https://user-images.githubusercontent.com/24535616/121137181-610c7c80-c871-11eb-88b7-0a157df41115.jpg)

![](https://user-images.githubusercontent.com/24535616/121137272-72558900-c871-11eb-91d5-1e7c29a3e815.jpg)

## Features
- Set spacing between clips
Expand Down
14 changes: 1 addition & 13 deletions assets/templates/manifest.template.xml.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,23 +7,11 @@ module.exports = (props) =>
ExtensionBundleName="${props.extensionBundleName}"
Version="${props.cepVersion}">
<ExtensionList>
<Extension Id="${props.extensionBundleId}" Version="${props.extensionBundleVersion}">
<!-- <Host Name="PHXS" Port="8088"/>
<Host Name="PHSP" Port="8088"/> -->
</Extension>
<Extension Id="${props.extensionBundleId}" Version="${props.extensionBundleVersion}" />
</ExtensionList>
<ExecutionEnvironment>
<HostList>
<Host Name="PHXS" Version="[0.0,99.9]" />
<Host Name="PHSP" Version="[0.0,99.9]" />
<Host Name="IDSN" Version="[0.0,99.9]" />
<Host Name="AICY" Version="[0.0,99.9]" />
<Host Name="ILST" Version="[0.0,99.9]" />
<Host Name="PPRO" Version="[0.0,99.9]" />
<Host Name="AEFT" Version="[0.0,99.9]" />
<Host Name="PRLD" Version="[0.0,99.9]" />
<Host Name="FLPR" Version="[0.0,99.9]" />
<Host Name="DRWV" Version="[0.0,99.9]" />
</HostList>
<LocaleList>
<Locale Code="All" />
Expand Down
58 changes: 23 additions & 35 deletions build-scripts/archive.js
Original file line number Diff line number Diff line change
Expand Up @@ -16,15 +16,15 @@ const zxpFile = path.join(distFolder, pluginConfig.extensionBundleId + '.zxp')
archive()

function archive() {
utils.log_progress('ARCHIVE', 'blue')
utils.log_progress('ARCHIVE', 'blue');

prepareCert()
.then(signPackage)
.then(res => {
utils.log_progress(`package is signed: ${zxpFile}`, 'green')
utils.log_progress('DONE', 'blue')
})
.catch(err => {utils.log_error(err)})
.then(signPackage)
.then((res) => {
utils.log_progress(`package is signed: ${zxpFile}`, 'green')
utils.log_progress('DONE', 'blue')
})
.catch((err) => utils.log_error(err));
}

/**
Expand All @@ -36,18 +36,18 @@ function prepareCert() {
const options_custom_cert = certificate_options.customCert
const options_self_sign = certificate_options.selfSign
const isCustom = options_custom_cert && options_custom_cert.path.trim() !== ''
var path='', password=''
var path = '', password = '';

if(isCustom) {
if (isCustom) {
path = options_custom_cert.path
password = options_custom_cert.password
} else if(options_self_sign){
} else if (options_self_sign) {
path = options_self_sign.output
password = options_self_sign.password
}

const isValid = path!==undefined && path.trim()!==''
const data = {path, password}
const isValid = path !== undefined && path.trim() !== '';
const data = { path, password }

// on non windows, we need to change the permissions
if(!isWindows) {
Expand All @@ -59,25 +59,21 @@ function prepareCert() {

return new Promise((resolve, reject) => {
if(!isValid) {
reject('no valid cert info')

return
reject('no valid cert info');
return;
}

if(isCustom) {
utils.log_progress('found a custom certificate')
resolve(data)
utils.log_progress('found a custom certificate');
resolve(data);
} else {
utils.log_progress('generating a self signed certificate')
zxpSignCmd.selfSignedCert(options_self_sign, function (error, result) {
if(error) reject(error)
else resolve(data)
})

utils.log_progress('generating a self signed certificate');
zxpSignCmd
.selfSignedCert(options_self_sign)
.then((res) => resolve(data))
.catch((err) => reject(err));
}

})

});
}

/**
Expand All @@ -95,13 +91,5 @@ function signPackage(cert) {
password: cert.password
}

return new Promise((resolve, reject) => {
zxpSignCmd.sign(options, function (error, result) {
if(error) reject(error)
else resolve(result)

})

})

return zxpSignCmd.sign(options);
}
4 changes: 2 additions & 2 deletions build-scripts/build.js
Original file line number Diff line number Diff line change
Expand Up @@ -54,8 +54,8 @@ function build() {
utils.copyRecursiveSync(fromSrc('host'), fromPlugin('host'))
// copy the session's node modules folder
utils.log_progress('copying session node-modules...')
utils.mkdir(fromSrc('session-src/node_modules'));
utils.copyRecursiveSync(fromSrc('session-src/node_modules'), fromPlugin('node_modules'))
utils.mkdir(fromSrc('session/node_modules'));
utils.copyRecursiveSync(fromSrc('session/node_modules'), fromPlugin('node_modules'))
// copying libs folder
utils.log_progress('copying libs folder...')
utils.copyRecursiveSync(fromSrc('libs'), fromPlugin('libs'))
Expand Down
6 changes: 3 additions & 3 deletions build-scripts/webpack.client.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@ const pluginConfig = require('../pluginrc.js');
// const distFolder = pluginConfig.destinationFolder
const distFolder = path.join(pluginConfig.destinationFolder, pluginConfig.extensionBundleId);
const srcFolder = pluginConfig.sourceFolder;
const CLIENT_DIST_PATH = path.resolve(distFolder, 'client-dist');
const HTML_TEMPLATE_PATH = path.join(srcFolder, 'client-src/index.server.template.html');
const ENTRY_POINT_CLIENT_PATH = path.join(srcFolder, 'client-src/src/index.tsx');
const CLIENT_DIST_PATH = path.resolve(distFolder, 'client');
const HTML_TEMPLATE_PATH = path.join(srcFolder, 'client/index.server.template.html');
const ENTRY_POINT_CLIENT_PATH = path.join(srcFolder, 'client/src/index.tsx');

module.exports = ({
entry: ENTRY_POINT_CLIENT_PATH,
Expand Down
4 changes: 2 additions & 2 deletions build-scripts/webpack.session.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,8 +4,8 @@ const nodeExternals = require('webpack-node-externals');
const pluginConfig = require('../pluginrc.js')
const distFolder = path.join(pluginConfig.destinationFolder, pluginConfig.extensionBundleId)
const srcFolder = pluginConfig.sourceFolder
const SESSION_DIST_PATH = path.join(distFolder, 'session-dist')
const SESSION_SRC_PATH = path.join(srcFolder, 'session-src')
const SESSION_DIST_PATH = path.join(distFolder, 'session')
const SESSION_SRC_PATH = path.join(srcFolder, 'session')
const ENTRY_POINT_SESSION_PATH = path.join(SESSION_SRC_PATH, 'src/index.ts')

module.exports = (env) => ({
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
"name": "everysecond",
"version": "1.0.0",
"description": "Adobe Premiere Pro every second extension",
"main": "./client-src/src/index.js",
"main": "./client/src/index.js",
"scripts": {
"build": "node ./scripts/build.js",
"start": "npm run client:dev-server",
Expand All @@ -11,10 +11,10 @@
"build:prod": "node ./build-scripts/build.js production",
"deploy:dev": "node ./build-scripts/deploy.js development",
"deploy:prod": "node ./build-scripts/deploy.js production",
"archive": "node ./build-scripts/archive.js",
"archive": "node --inspect ./build-scripts/archive.js",
"release:dev": "npm run build:dev && npm run deploy:dev",
"release:prod": "npm run build:prod && npm run deploy:prod && npm run archive",
"postinstall": "mkdirp src/session-src/node_modules",
"postinstall": "mkdirp src/session/node_modules",
"b": "babel ./client/js --out-dir ./client/out",
"test": "echo \"Error: no test specified\" && exit 1"
},
Expand Down
9 changes: 5 additions & 4 deletions pluginrc.js
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
const path = require('path')
const pass = require('./password.js');
const root = __dirname
const srcFolder = path.join(root, "src")
const destFolder = path.join(root, "dist")
const certPath = path.join(destFolder, "cert.p12")
module.exports = {
extensionBundleId: 'com.unggyu.everysecond',
extensionBundleName: 'everysecond',
extensionBundleVersion: '1.0.1',
cepVersion: '10.0',
extensionBundleVersion: '1.0.0',
cepVersion: '9.0',
panelName: 'EverySecond',
width: '400',
height: '600',
Expand All @@ -17,14 +18,14 @@ module.exports = {
certificate : {
customCert: {
path: '',
password: 'password'
password: pass.password
},
selfSign: {
country: 'KR',
province: 'province',
org: 'org',
name: 'unggyu',
password: 'password',
password: pass.password,
locality: 'locality',
orgUnit: 'orgUnit',
email: '[email protected]',
Expand Down
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@
<title>Every Second</title>
</head>
<body>
<div id="root"/>
<div id="root" />
</body>
</html>
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
import { Session, IStartEditParameter, IScriptResultPayload, IAlertParameter } from '../../session-src/src/index';
import { Session, IStartEditParameter, IScriptResultPayload, IAlertParameter } from '../../session/src/index';

declare global {
interface Window {
Expand Down
File renamed without changes.
2 changes: 1 addition & 1 deletion src/client-src/src/index.tsx → src/client/src/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import React from 'react';
import ReactDOM from 'react-dom';
import App from './App';
import Controller from './Controller';
import { ScriptLoader, Session } from '../../session-src/src';
import { ScriptLoader, Session } from '../../session/src';
import '../assets/css/style.css';
import '../assets/fonts/typeface-roboto/index.css';
import '../assets/fonts/material-icons/index.css';
Expand Down
File renamed without changes.
7 changes: 3 additions & 4 deletions src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,13 +3,12 @@
<head>
<meta charset="utf-8">
<title>Every Second</title>
<link href="client-dist/main.css" rel="stylesheet"></head>
<link href="client/main.css" rel="stylesheet"></head>
</head>
<body>
<div id="root"/>
<script type="text/javascript" src="libs/CSInterface.js"></script>
<script type="text/javascript" src="libs/Vulcan.js"></script>
<script type="text/javascript" src="session-dist/bundle.js"></script>
<script type="text/javascript" src="client-dist/bundle.js"></script>
<script type="text/javascript" src="session/bundle.js"></script>
<script type="text/javascript" src="client/bundle.js"></script>
</body>
</html>
5 changes: 2 additions & 3 deletions src/index.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,10 @@
<html>
<head>
<meta charset="utf-8">
<title>Export Example App</title>
<title>Every Second</title>
</head>
<body>
<div id="root"/>
<script type="text/javascript" src="js/libs/CSInterface.js"></script>
<script type="text/javascript" src="js/libs/Vulcan.js"></script>
<script type="text/javascript" src="libs/CSInterface.js"></script>
</body>
</html>
Loading

0 comments on commit 6a77c3e

Please sign in to comment.