fop-cli 4.0.2 → 4.0.3

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 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 binaryPath = path.join(__dirname, 'fop-binary');
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.2';
10
+ const VERSION = '4.0.3';
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 binaryPath = path.join(binDir, 'fop-binary');
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)) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "fop-cli",
3
- "version": "4.0.2",
3
+ "version": "4.0.3",
4
4
  "description": "Filter Orderer and Preener - A tool for sorting and cleaning ad-blocking filter lists",
5
5
  "keywords": [
6
6
  "adblock",