fop-cli 4.0.2 → 4.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/bin/fop.js +2 -1
- package/install.js +3 -2
- package/package.json +1 -1
package/bin/fop.js
CHANGED
|
@@ -4,7 +4,8 @@ const { spawn } = require('child_process');
|
|
|
4
4
|
const path = require('path');
|
|
5
5
|
const fs = require('fs');
|
|
6
6
|
|
|
7
|
-
const
|
|
7
|
+
const isWindows = process.platform === 'win32';
|
|
8
|
+
const binaryPath = path.join(__dirname, isWindows ? 'fop-binary.exe' : 'fop-binary');
|
|
8
9
|
|
|
9
10
|
// Check if binary exists
|
|
10
11
|
if (!fs.existsSync(binaryPath)) {
|
package/install.js
CHANGED
|
@@ -7,7 +7,7 @@ const path = require('path');
|
|
|
7
7
|
const { execSync } = require('child_process');
|
|
8
8
|
|
|
9
9
|
// Configuration - UPDATE THESE FOR YOUR RELEASE
|
|
10
|
-
const VERSION = '4.0.
|
|
10
|
+
const VERSION = '4.0.4';
|
|
11
11
|
const GITHUB_REPO = 'ryanbr/fop-rs'; // Change to your repo
|
|
12
12
|
const BINARY_NAME = 'fop';
|
|
13
13
|
|
|
@@ -95,7 +95,8 @@ function buildFromSource(binaryPath) {
|
|
|
95
95
|
|
|
96
96
|
async function install() {
|
|
97
97
|
const binDir = path.join(__dirname, 'bin');
|
|
98
|
-
const
|
|
98
|
+
const isWindows = process.platform === 'win32';
|
|
99
|
+
const binaryPath = path.join(binDir, isWindows ? 'fop-binary.exe' : 'fop-binary');
|
|
99
100
|
|
|
100
101
|
// Create bin directory
|
|
101
102
|
if (!fs.existsSync(binDir)) {
|