Skip to content
This repository was archived by the owner on Feb 14, 2022. It is now read-only.

Commit 9e80392

Browse files
author
Simon Hofmann
committed
Removed 3rdparty folder, updated package scripts
1 parent 5204b9f commit 9e80392

7 files changed

+12
-28
lines changed

.gitignore

+2-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
opencv
22
node_modules
3-
.vscode
3+
.vscode
4+
.idea

.npmignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,3 @@
11
.vscode
2+
.idea
23
test

package.json

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,11 @@
11
{
22
"name": "@nut-tree/opencv-build",
3-
"version": "3.4.6-local",
3+
"version": "3.4.6-patch",
44
"description": "A simple script to auto build recent OpenCV + contrib version via npm. Based on [justadudewhohacks/npm-opencv-build](https://github.com/justadudewhohacks/npm-opencv-build)",
55
"main": "./build/index.js",
66
"scripts": {
77
"build": "rm -rf build && tsc",
8-
"preinstall": "node ./preinstall.js",
9-
"preuninstall": "node ./preuninstall.js",
8+
"prepublishOnly": "node prepublish.js",
109
"install": "node ./install.js",
1110
"test": "mocha --recursive ./test"
1211
},
@@ -34,4 +33,4 @@
3433
"mocha": "^6.1.4",
3534
"typescript": "^3.4.5"
3635
}
37-
}
36+
}

package.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ npm-opencv-build/.travis.yml
33
npm-opencv-build/appveyor.yml
44
npm-opencv-build/Find-VS2017.cs
55
npm-opencv-build/install.js
6-
npm-opencv-build/preinstall.js
7-
npm-opencv-build/preuninstall.js
6+
npm-opencv-build/prepublish.js
87
npm-opencv-build/README.md
98
npm-opencv-build/setup_linux.sh
109
npm-opencv-build/setup_osx.sh
1110
npm-opencv-build/tsconfig.json
1211
npm-opencv-build/build/
13-
npm-opencv-build/opencv/build/3rdparty/
1412
npm-opencv-build/opencv/build/bin/
1513
npm-opencv-build/opencv/build/lib/
1614
npm-opencv-build/opencv/build/include/

package_win32.txt

+1-3
Original file line numberDiff line numberDiff line change
@@ -3,14 +3,12 @@ npm-opencv-build\\.travis.yml
33
npm-opencv-build\\appveyor.yml
44
npm-opencv-build\\Find-VS2017.cs
55
npm-opencv-build\\install.js
6-
npm-opencv-build\\preinstall.js
7-
npm-opencv-build\\preuninstall.js
6+
npm-opencv-build\\prepublish.js
87
npm-opencv-build\\README.md
98
npm-opencv-build\\setup_linux.sh
109
npm-opencv-build\\setup_osx.sh
1110
npm-opencv-build\\tsconfig.json
1211
npm-opencv-build\\build\\
13-
npm-opencv-build\\opencv\\build\\3rdparty\\
1412
npm-opencv-build\\opencv\\build\\bin\\
1513
npm-opencv-build\\opencv\\build\\lib\\
1614
npm-opencv-build\\opencv\\build\\include\\

preinstall.js prepublish.js

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,15 @@
11
const fs = require("fs");
2+
23
const filename = "./package.json";
34
const packageJson = require(filename);
45

56
const plattformPackageName = `@nut-tree/opencv-build-${process.platform}`;
67
packageJson.name = plattformPackageName;
78

89
try {
9-
fs.writeFileSync(filename, JSON.stringify(packageJson, null, 2));
10+
fs.writeFileSync(filename, JSON.stringify(packageJson, null, 2));
1011
} catch (err) {
11-
console.log(err);
12-
process.exit(-1);
12+
console.log(err);
13+
process.exit(-1);
1314
}
1415
console.log(`Patched package name to '${plattformPackageName}'`);

preuninstall.js

-14
This file was deleted.

0 commit comments

Comments
 (0)