Skip to content

Commit

Permalink
Update node to 16 and fix builds (thiagoelg#33)
Browse files Browse the repository at this point in the history
* Update node to 16

* Fix build command

* Revert to npm

* Force node-abi version

* No node-abi

* node-abi patch

* Manually run postinstall

* Build all

* Use local prebuild

* Use npm command
  • Loading branch information
thiagoelg committed Feb 3, 2022
1 parent 1b7a932 commit 956ea37
Show file tree
Hide file tree
Showing 6 changed files with 8,095 additions and 3,526 deletions.
49 changes: 5 additions & 44 deletions .travis.yml
Original file line number Diff line number Diff line change
@@ -1,45 +1,6 @@
# env:
# matrix:
# - export NODE_VERSION="12"
# matrix:
# fast_finish: true
# before_install:
# - git clone --depth=1 https://github.com/creationix/nvm.git ./.nvm
# - source ./.nvm/nvm.sh
# - nvm install $NODE_VERSION 64
# - echo $NODE_VERSION
# - nvm use $NODE_VERSION
# - if [ $TRAVIS_OS_NAME == "linux" ]; then
# sudo add-apt-repository -y ppa:ubuntu-toolchain-r/test;
# sudo apt-get -qq update;
# sudo apt-get -qq install g++-4.8 libc6-dev-i386 libcups2:i386 libcups2-dev:i386 linux-libc-dev linux-libc-dev:i386 gcc-4.8-multilib g++-4.8-multilib;
# export CXX='g++-4.8';
# sudo apt-get install -qq debhelper autotools-dev cups-ppdc libcups2-dev cups imagemagick ghostscript;
# fi
# - "export JOBS=4"
# before_script:
# - git config --global user.name "Ion Lupascu"
# - git config --global user.email ionlupascu@gmail.com
# - npm ci

# Need S3 Upload for Artifacts
# addons:
# artifacts:
# debug: true
# paths:
# - ./build/stage/**/*.tar.gz


# os:
# - linux
# # - osx

# script: npx prebuild -t 12.12.0 --arch ia32 -u $PREBUILD_TOKEN


language: node_js
node_js:
- 14
- 16

branches:
only:
Expand All @@ -61,10 +22,10 @@ before_script:

script:
- npm install -g prebuild
- prebuild --strip --all -r electron --arch ia32 -u $PREBUILD_TOKEN
- prebuild --strip --all -r electron --arch x64 -u $PREBUILD_TOKEN
- prebuild --strip --all --arch ia32 -u $PREBUILD_TOKEN
- prebuild --strip --all --arch x64 -u $PREBUILD_TOKEN
# - npm run prebuild -- --strip --all -r electron --arch ia32 -u $PREBUILD_TOKEN
# - npm run prebuild -- --strip --all -r electron --arch x64 -u $PREBUILD_TOKEN
- npm run prebuild -- --strip --all --arch ia32 -u $PREBUILD_TOKEN
- npm run prebuild -- --strip --all --arch x64 -u $PREBUILD_TOKEN

os:
- linux
Expand Down
8 changes: 4 additions & 4 deletions appveyor.yml
Original file line number Diff line number Diff line change
Expand Up @@ -26,16 +26,16 @@ matrix:
fast_finish: true

install:
- ps: Install-Product node 14 $env:PLATFORM
- ps: Install-Product node 16 $env:PLATFORM
- cmd: SET PATH=c:\python27;%PATH%
- cmd: SET JOBS=4
- cmd: SET BUILD_ONLY=true
- cmd: npm ci --build-from-source
- cmd: npm install -g prebuild
- cmd: if %PLATFORM% EQU x86 (SET TP=ia32) else (set TP=x64)
- cmd: prebuild --strip -r electron --all --arch %TP% -u %UTO%
- cmd: prebuild --strip -r node-webkit --all --arch %TP% -u %UTO%
- cmd: prebuild --strip --all --arch %TP% -u %UTO%
# - cmd: npm run prebuild -- --strip -r electron --all --arch %TP% -u %UTO%
# - cmd: npm run prebuild -- --strip -r node --all --arch %TP% -u %UTO%
- cmd: npm run prebuild -- --strip --all --arch %TP% -u %UTO%
test_script:
- node --version
- npm --version
Expand Down
Loading

0 comments on commit 956ea37

Please sign in to comment.