Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion packages/cli/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-motion/cli",
"version": "0.1.0",
"version": "0.1.1",
"bin": {
"open-motion": "dist/bin.js"
},
Expand Down
8 changes: 7 additions & 1 deletion packages/cli/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -158,7 +158,11 @@ export const runRender = async (options: {
concurrency?: number;
publicDir?: string;
format?: 'mp4' | 'gif' | 'webp' | 'webm' | 'auto';
chromiumPath?: string;
}) => {
if (options.chromiumPath) {
process.env.PLAYWRIGHT_CHROMIUM_EXECUTABLE_PATH = options.chromiumPath;
}
const tmpDir = path.join(process.cwd(), '.open-motion-tmp');
const inputProps = options.props ? JSON.parse(options.props) : {};
const startTime = Date.now();
Expand Down Expand Up @@ -369,6 +373,7 @@ export const main = () => {
.option('--duration <number>', 'Override duration in frames', parseInt)
.option('--public-dir <path>', 'Public directory path for static assets (default: "./public")')
.option('--format <format>', 'Output format (mp4, webm, gif, webp, auto)', 'auto')
.option('--chromium-path <path>', 'Custom path to Chromium executable')
.action(async (options) => {
try {
await runRender({
Expand All @@ -382,7 +387,8 @@ export const main = () => {
fps: options.fps,
duration: options.duration,
publicDir: options.publicDir,
format: options.format
format: options.format,
chromiumPath: options.chromiumPath
});
} catch (err) {
console.error('Render failed:', err);
Expand Down
2 changes: 1 addition & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-motion/core",
"version": "0.1.0",
"version": "0.1.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/encoder/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-motion/encoder",
"version": "0.1.0",
"version": "0.1.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
Expand Down
2 changes: 1 addition & 1 deletion packages/renderer/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@open-motion/renderer",
"version": "0.1.0",
"version": "0.1.1",
"main": "dist/index.js",
"types": "dist/index.d.ts",
"license": "MIT",
Expand Down