Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
227 commits
Select commit Hold shift + click to select a range
c8d4cde
improve typescript usage + bump deps versions
UrielCh Aug 2, 2021
51aa2db
drop generarted file from git
UrielCh Aug 2, 2021
d448aba
add build to .gitignore.
UrielCh Aug 2, 2021
2819c87
replace install.js by src/main.ts
UrielCh Aug 2, 2021
3031d6a
replace exec by nodejs for mkdir / rmdir action
UrielCh Aug 2, 2021
f4281f0
change default V3 from 3.4.6 to 3.4.15
UrielCh Aug 2, 2021
2fce9a1
improve typing + drop old code
UrielCh Aug 2, 2021
99f6515
use opencv version in build path
UrielCh Aug 2, 2021
9bc1e12
fix build cycle
UrielCh Aug 2, 2021
619abe2
patch livecycle
UrielCh Aug 2, 2021
efcb22b
restor build files
UrielCh Aug 2, 2021
f43eaf9
move rimraf deps in dependencies
UrielCh Aug 2, 2021
a23acec
more types
UrielCh Aug 2, 2021
4df116b
change regexp
UrielCh Aug 2, 2021
57ccad7
remove opencv version from build path
UrielCh Aug 2, 2021
07d9318
add doc
UrielCh Aug 2, 2021
6b4ce13
add test in readme
UrielCh Aug 3, 2021
de2b7b1
commit unfinished changes bf format
UrielCh Sep 7, 2021
ea929d6
compet last commit change
UrielCh Dec 22, 2021
4711569
change ts target to ESNEXT
UrielCh Dec 22, 2021
07ef01f
drop build from git
UrielCh Dec 22, 2021
5423922
clean import
UrielCh Dec 22, 2021
8eeb547
ESM code style
UrielCh Dec 22, 2021
f647343
improve stdout
UrielCh Dec 22, 2021
046f909
commit vscode launcher
UrielCh Dec 22, 2021
f901393
update doc +d eps
UrielCh Dec 22, 2021
2aeabba
improve package and readme + improve build path
UrielCh Dec 22, 2021
f43a492
add prepublishOnly
UrielCh Dec 22, 2021
ea33fc3
add publishConfig
UrielCh Dec 22, 2021
1d98a81
add missin Find-VS2017.cs
UrielCh Dec 22, 2021
5688ee4
refactor export
UrielCh Dec 22, 2021
eff0e2b
refactor export
UrielCh Dec 22, 2021
84201c3
add exports
UrielCh Dec 22, 2021
a49c829
v 0.2.3
UrielCh Dec 22, 2021
0d58fef
add install helper in BuildContext
UrielCh Dec 22, 2021
078855c
V 0.3.0
UrielCh Dec 27, 2021
e712980
add debuger + cleean debug
UrielCh Dec 27, 2021
a10e306
improve MSBuild localisation
UrielCh Dec 27, 2021
a738bfc
add colors
UrielCh Dec 27, 2021
3266b36
fix bug in previous version
UrielCh Dec 27, 2021
b1c3121
V 0.3.5
UrielCh Dec 28, 2021
842603c
fix ununsed DEFAULT_OPENCV_VERSION
UrielCh Dec 28, 2021
a1fb018
add extra chack
UrielCh Dec 28, 2021
75f85bc
remove log in prebuild Log
UrielCh Dec 28, 2021
67003d4
V 0.3.7
UrielCh Dec 28, 2021
190e190
add new doc + param
UrielCh Dec 31, 2021
79e7a1f
ccleanup + help + doc
UrielCh Dec 31, 2021
efdb9f5
clean doc
UrielCh Dec 31, 2021
56bf665
fix doc
UrielCh Dec 31, 2021
0a0a906
update readme
UrielCh Dec 31, 2021
9f276d8
Update README.md
UrielCh Dec 31, 2021
798c279
readme
UrielCh Dec 31, 2021
56d3cc9
fix old path
UrielCh Dec 31, 2021
607fff0
push lock chenge
UrielCh Jan 2, 2022
3304c56
improve logs
UrielCh Jan 3, 2022
1caeb18
improve error message
UrielCh Jan 3, 2022
b9c155e
default build version is now 4.5.4
UrielCh Jan 9, 2022
cb32737
Merge branch 'master' of github.com:UrielCh/npm-opencv-build
UrielCh Jan 9, 2022
c1b2296
improve args parsing + remove dup code
UrielCh Jan 9, 2022
3c2d0f5
update doc + bump version
UrielCh Jan 9, 2022
216326d
add some tests
UrielCh Jan 9, 2022
30dea3a
fix cuda, refactor OS test
UrielCh Jan 9, 2022
1cfbaec
improve test
UrielCh Jan 9, 2022
2c991ef
all test are back
UrielCh Jan 9, 2022
f0c2133
update appveyor
UrielCh Jan 9, 2022
a6888d5
update appveyor
UrielCh Jan 9, 2022
a52caa1
update appveyor
UrielCh Jan 9, 2022
c3a6730
add verbode to appveyor
UrielCh Jan 9, 2022
e58e8a7
patch appveyor
UrielCh Jan 9, 2022
21396ec
try to make choco works
UrielCh Jan 9, 2022
6da6603
dump version + add link
UrielCh Jan 9, 2022
6886e3f
new findMSBuild code
UrielCh Jan 9, 2022
23a7fe4
V 0.4.0
UrielCh Jan 9, 2022
0228817
fix findMSBuild detection issue
UrielCh Jan 19, 2022
4eab963
fix electron support
UrielCh Jan 21, 2022
7f528b5
fix buildtools detection
UrielCh Jan 28, 2022
438b4e8
mode doc, type and fix OPENCV_LIB_DIR
UrielCh Apr 16, 2022
ccbed76
update README
UrielCh Apr 16, 2022
8c64a5e
fry to fix appveyor ci
UrielCh Apr 16, 2022
37eb83a
test Visual Studio 2022 Build
UrielCh Apr 16, 2022
80d3266
improve OPENCV4NODEJS_DISABLE_AUTOBUILD imp
UrielCh Apr 16, 2022
8bb5247
patch appveyor + V 0.4.4
UrielCh Apr 16, 2022
b891ced
patch appveyor
UrielCh Apr 16, 2022
9e372d4
remove --no-progress arg
UrielCh Apr 16, 2022
8b53204
look for Visual Studio 2015 in appveyor
UrielCh Apr 16, 2022
663622c
appveyor
UrielCh Apr 16, 2022
d3e2c2f
appveyor
UrielCh Apr 16, 2022
f30ecdd
fix typo in OPENCV4NODEJS_DISABLE_AUTOBUILD
UrielCh Apr 16, 2022
e13b90d
V 0.4.6
UrielCh Apr 17, 2022
c3050b9
small improvements
UrielCh May 8, 2022
c048c1b
dd dry-run arg
UrielCh May 9, 2022
80a4e4a
improve dry-run
UrielCh May 10, 2022
6be2911
git batch in Cmake args
UrielCh May 15, 2022
c6891c2
prepare V0.5.0
UrielCh May 15, 2022
a51f4fd
add OPENCV_GIT_CACHE
UrielCh May 15, 2022
838c2fc
update changelog
UrielCh May 15, 2022
a822b12
fix test
UrielCh May 15, 2022
6db1a50
update doc
UrielCh May 15, 2022
037b000
refactor
UrielCh May 15, 2022
8da7ebb
Merge pull request #2 from UrielCh/autoBuildFlags
UrielCh May 15, 2022
bc8495d
liny code
UrielCh May 15, 2022
40e51c5
fix isCudaAvailable usage
UrielCh May 30, 2022
2962e4c
fix arg passing regression
UrielCh May 30, 2022
9352de5
V 0.5.1
UrielCh May 30, 2022
2095977
call writeAutoBuildFile if autobuild is disabled
UrielCh May 30, 2022
cba95de
V 0.5.3
UrielCh May 30, 2022
9150f50
V 0.5.4
UrielCh Aug 30, 2022
412671e
V 0.5.5
UrielCh Aug 30, 2022
5d4088a
V0.5.6
UrielCh Aug 30, 2022
a196ef3
fix: fix for when `/opt/homebrew/Cellar/opencv` does not exist
farfromrefug Sep 28, 2022
a98b300
Update script do-install bin\main.js in package.json
mcilhm Oct 8, 2022
65cee3c
Merge pull request #4 from dhianica/master
UrielCh Oct 11, 2022
d6c8c62
Merge pull request #3 from farfromrefug/patch-1
UrielCh Oct 11, 2022
aa0fd8a
update changelog
UrielCh Oct 11, 2022
5b27b3f
fix glob errors
UrielCh Oct 12, 2022
a2c3677
* V 0.5.9
UrielCh Oct 12, 2022
e4fb380
add visible autoLocatePrebuild
UrielCh Oct 19, 2022
2b3d39c
prepare V 0.5.10
UrielCh Oct 19, 2022
0818036
V0.5.11
UrielCh Oct 19, 2022
81bed63
v0.5.11
UrielCh Oct 19, 2022
547b9e4
bypass tiny-glob
UrielCh Oct 19, 2022
4b279e8
allow boolean flag to be set to false
UrielCh Dec 28, 2022
0b85f39
prepare V0.6.0
UrielCh Dec 28, 2022
41555ff
fix boolean val;ud reading
UrielCh Dec 29, 2022
6dcf190
ready to publish
UrielCh Dec 29, 2022
a57a3e4
refactor openCVBuild
UrielCh Dec 30, 2022
d47cf95
0.6.1
UrielCh Dec 30, 2022
a1e759e
0.6.2 + ESM
UrielCh Dec 30, 2022
a013bb9
common js + strict version selection
UrielCh Jan 1, 2023
c742ca6
fixing error "undefined function toLowerCase" when using number for d…
Sebastian-Habiger Jan 3, 2023
46c93ee
v 0.7.0
UrielCh Jan 7, 2023
613b824
v 0.7.1
UrielCh Jan 7, 2023
82ac61a
V 0.7.2
UrielCh Jan 7, 2023
208a619
V 0.7.3
UrielCh Jan 10, 2023
a8f1fce
improve logs
UrielCh Jan 10, 2023
5589084
v 0.7.4
UrielCh Jan 10, 2023
d5f361b
Merge branch 'UrielCh:master' into master
Sebastian-Habiger Jan 26, 2023
3ec464e
V 0.7.5
UrielCh Feb 13, 2023
9bd4e32
Merge pull request #5 from Sebastian-Habiger/master
UrielCh Feb 13, 2023
b8e7d81
change number to bool test
UrielCh Feb 13, 2023
c15b4f8
generic space detection UrielCh/opencv4nodejs#75
piercus Feb 21, 2023
2a66190
fix: typos
piercus Feb 22, 2023
0910113
cache this.hash to avoid to many reconfig
piercus Feb 22, 2023
0d663fa
add cmake custom flags (DWITH)
piercus Feb 22, 2023
3250167
Merge pull request #6 from piercus/master
UrielCh Feb 25, 2023
96216c7
roll back cache hash, less logs
UrielCh Feb 25, 2023
3ed0c60
add new github action
UrielCh Feb 25, 2023
d00f92d
add pnpm in github action
UrielCh Feb 25, 2023
de4bdf3
fic pnpm
UrielCh Feb 25, 2023
2be67e5
change lines orders
UrielCh Feb 25, 2023
9876c64
drop --if-present
UrielCh Feb 25, 2023
1a77281
fix tests
UrielCh Feb 25, 2023
6fc0d58
add compilation styep in github action
UrielCh Feb 25, 2023
bcf2d5e
Merge pull request #7 from UrielCh/piercus
UrielCh Feb 25, 2023
402a757
V 0.7.6 + clean
UrielCh Feb 25, 2023
51f1755
improve -DBUILD_LIST handling
UrielCh Mar 14, 2023
088a83c
allow using different prebuilt version
UrielCh Mar 14, 2023
164847d
V 0.7.7
UrielCh Mar 14, 2023
bcdefed
remove type: commonjs in package.json
UrielCh Mar 30, 2023
1e9a5d8
udate deps
UrielCh Mar 30, 2023
9ffd296
V 0.7.8
UrielCh Mar 30, 2023
793b5c1
try to rerun build script on node-version 16 + 18
UrielCh Feb 21, 2024
5b3078c
add 20.x build
UrielCh Feb 21, 2024
eff3dcd
use blob to find openCV from chocolatey
UrielCh Apr 8, 2024
39e023e
prepare V 0.8.0
UrielCh Apr 8, 2024
cca7a0d
add new workflow
UrielCh Apr 8, 2024
8f2bcaa
add missing --nobuild
UrielCh Apr 8, 2024
2ebbbbb
add prebuild param to test autodetection
UrielCh Apr 8, 2024
e9a2319
debug
UrielCh Apr 8, 2024
24020b2
new test
UrielCh Apr 8, 2024
351ed78
remove OPENCV4NODEJS_DISABLE_AUTOBUILD
UrielCh Apr 8, 2024
012a35e
rollback debug
UrielCh Apr 8, 2024
16533ab
fix opencv reuse cache + fix esm/CJS dual stack
UrielCh Apr 9, 2024
68a3b80
remove reference to DEFAULT_OPENCV_VERSION
UrielCh Apr 9, 2024
d4fa439
fix typo in changelog
UrielCh Apr 9, 2024
f811dd9
bump version
UrielCh Apr 9, 2024
c9d0b68
V 0.8.4 + new log silence mode
UrielCh Apr 11, 2024
cfcdaa3
add new test workflow
UrielCh Apr 12, 2024
d373411
patch workflow
UrielCh Apr 12, 2024
6b6d0b3
update workflows
UrielCh Apr 12, 2024
bb94dba
use node-glob
UrielCh Apr 12, 2024
2653df6
drop old deps
UrielCh Apr 12, 2024
e5e5588
update workflow
UrielCh Apr 12, 2024
3c528d9
Add Github action + fix glob (#10)
UrielCh Apr 16, 2024
69ec443
update github action
UrielCh Apr 16, 2024
c92f034
Prepare V0.9.0
UrielCh Apr 16, 2024
c663c37
0.9.1
UrielCh Apr 16, 2024
8452ecc
strict mode + updat ESM
UrielCh Apr 20, 2024
dc5f62f
update deps
UrielCh Apr 20, 2024
a73bb79
export .d.ts file twice, to avoid ESM / CJS warnings
UrielCh Apr 21, 2024
e6d7727
use tsc build instead of project
UrielCh Apr 21, 2024
47922c6
bump to 0.9.3
UrielCh Apr 21, 2024
40d82ec
update deps
UrielCh Apr 21, 2024
04c7ef0
add env.ts to handle env var
UrielCh Apr 22, 2024
62d44ad
deno fmt
UrielCh Apr 22, 2024
a3cdd16
replace Buffer by Uint8Array
UrielCh Apr 22, 2024
0424154
use node: prefix in import
UrielCh Apr 22, 2024
a5167c4
move log stuff to Log.ts
UrielCh Apr 22, 2024
0dd2bcb
protect __dirname usage
UrielCh Apr 22, 2024
e1a48ef
add StaticTools
UrielCh Apr 22, 2024
f0b0f83
clean
UrielCh Apr 22, 2024
914f8d0
add Platfrm class
UrielCh Apr 22, 2024
66f03b0
fmt
UrielCh Apr 22, 2024
db17828
add getArch
UrielCh Apr 22, 2024
6ad4ff2
reorde imports
UrielCh Apr 23, 2024
da3b05a
refactor
UrielCh Jun 11, 2024
ecbb415
improve exports
UrielCh Jun 11, 2024
1a48f3a
remove npmlog
UrielCh Jun 11, 2024
51c03f1
default version is now 4.10.0
UrielCh Jun 11, 2024
b59b267
default version is now: 4.10.0
UrielCh Jun 11, 2024
a23dd31
rename main.js to main.cjs
UrielCh Jun 11, 2024
095a277
import deno changes
UrielCh Jun 11, 2024
86bdecf
add apt update in GitHub action
UrielCh Jun 12, 2024
3d15a50
use actions/checkout@v4
UrielCh Jun 12, 2024
ae41596
V 1.1.0
UrielCh Jun 13, 2024
28a7dac
add vcpkg-detect
UrielCh Aug 16, 2024
3964f63
Update vcpkg-detect.yml
UrielCh Aug 16, 2024
64366e1
use brinkqiang/vcpkg-action@v1 action + add debug
UrielCh Aug 17, 2024
01e67d8
Update vcpkg-detect.yml
UrielCh Aug 18, 2024
cc40418
Update vcpkg-detect.yml
UrielCh Aug 18, 2024
6883e20
debug avction
UrielCh Aug 18, 2024
6ff5ccd
action
UrielCh Aug 18, 2024
125d039
action
UrielCh Aug 18, 2024
a33b298
add vcpkg detection
UrielCh Aug 18, 2024
34f4d7c
fix lookups usage
UrielCh Aug 18, 2024
ff46845
update deps
UrielCh Aug 18, 2024
4e1b694
update changelog
UrielCh Aug 18, 2024
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
23 changes: 23 additions & 0 deletions .github/workflows/linux-build.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
name: build openCV on ubuntu

on:
push:
branches: [ "master", "piercus", "test", "deno" ]
paths: ['src/**', 'deno.json', '.github/workflows/linux-build.yml' ]
pull_request:
branches: [ "master", "piercus" ]
paths: ['src/**', 'deno.json', '.github/workflows/linux-build.yml' ]

#env:
# OPENCV4NODEJS_AUTOBUILD_OPENCV_VERSION : 4.7.0
jobs:
build:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: deno run -A main.ts --version 4.10.0
run: deno run -A main.ts --version 4.10.0
- run: deno test -A
31 changes: 31 additions & 0 deletions .github/workflows/linux-detect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Use OpenCV from Ubuntu apt
on:
push:
branches: [ "never", "master", "deno" ]
paths: ['src/**', 'deno.json', 'src/*.ts', '.github/workflows/linux-detect.yml' ]
# pull_request:
# branches: [ "master" ]
jobs:
build:

runs-on: ubuntu-latest

strategy:
matrix:
# node-version: [14.x, 16.x, 18.x]
opencv_version:
- 4

env:
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Install OpenCV ${{ matrix.opencv_version }}
run: |
sudo apt update; sudo apt install libopencv-dev
- name: Detect OpenCV
run: deno run -A main.ts --verbose
- run: deno test -A
31 changes: 31 additions & 0 deletions .github/workflows/mac-detect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Use OpenCV from Brew
on:
push:
branches: [ "never", "master", "deno" ]
paths: ['src/**', 'deno.json', '*.ts', '.github/workflows/mac-detect.yml' ]
# pull_request:
# branches: [ "master" ]
jobs:
build:

runs-on: macos-latest

strategy:
matrix:
# node-version: [14.x, 16.x, 18.x]
opencv_version:
- 4

env:
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Install OpenCV ${{ matrix.opencv_version }}
run: |
brew install opencv@${{ matrix.opencv_version }}
- name: Detect OpenCV
run: deno run -A main.ts --verbose
- run: deno test -A
44 changes: 44 additions & 0 deletions .github/workflows/vcpkg-detect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
name: Use openCV from vcpkg
on:
push:
branches: [ "never", "test", "master" ]
paths: ['src/**', 'deno.json', '*.ts', '.github/workflows/vcpkg-detect.yml' ]
# pull_request:
# branches: [ "master" ]
jobs:
build:

runs-on: windows-latest

strategy:
matrix:
# node-version: [14.x, 16.x, 18.x]
opencv_version:
- 4.8.0 # Do not known how to choose custom version using vcpkg
env:
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x

- name: Install OpenCV ${{ matrix.opencv_version }}
uses: brinkqiang/vcpkg-action@v1
id: vcpkg
with:
pkgs: opencv
triplet: x64-windows-release
token: ${{ github.token }}
github-binarycache: true

- name: vcpkg install opencv
run: |
vcpkg install opencv

#- name: Install OpenCV ${{ matrix.opencv_version }}
# run: |
# vcpkg install opencv
- name: Detect OpenCV
run: deno run -A main.ts --verbose
- run: deno test -A
31 changes: 31 additions & 0 deletions .github/workflows/w64-detect.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,31 @@
name: Use openCV from Chocolatey
on:
push:
branches: [ "never", "test", "deno" ]
paths: ['src/**', 'deno.json', '*.ts', '.github/workflows/w64-detect.yml' ]
# pull_request:
# branches: [ "master" ]
jobs:
build:

runs-on: windows-latest

strategy:
matrix:
# node-version: [14.x, 16.x, 18.x]
opencv_version:
- 4.10.0
- 4.6.0
env:
OPENCV4NODEJS_DISABLE_AUTOBUILD: 1
steps:
- uses: actions/checkout@v4
- uses: denoland/setup-deno@v1
with:
deno-version: v1.x
- name: Install OpenCV ${{ matrix.opencv_version }}
run: |
choco install OpenCV -y --version ${{ matrix.opencv_version }}
- name: Detect OpenCV
run: deno run -A main.ts --verbose
- run: deno test -A
4 changes: 2 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
opencv
node_modules
.vscode
opencv-*/
npm/
6 changes: 3 additions & 3 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@ matrix:
include:
# default OpenCV Version (3.4.6)
- os: linux
node_js: 10
node_js: 16
# OpenCV 4.1.0
- os: linux
node_js: 10
node_js: 16
env:
- OPENCV4NODEJS_AUTOBUILD_OPENCV_VERSION=4.1.0
- OPENCV4NODEJS_AUTOBUILD_OPENCV_VERSION=4.6.0

before_install:
- sudo apt-get update
Expand Down
3 changes: 3 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"deno.enable": true
}
Loading