Skip to content

Commit c4d903c

Browse files
committedJul 30, 2018
Disable building for i686 and copy libyosys.so
1 parent 965790a commit c4d903c

File tree

4 files changed

+11
-5
lines changed

4 files changed

+11
-5
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
node_modules/
22
build/
3+
prebuilds/
34
*.log

‎.travis.yml

+1-2
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@ os:
1717
- linux
1818
before_deploy:
1919
- ARCHIVE_NAME="${TRAVIS_TAG:-latest}-$TRAVIS_OS_NAME-`uname -m`.tar"
20-
- npm run prebuild
21-
- if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then ARCH=ia32 npm run prebuild; fi
20+
- yarn run prebuild
2221
- tar --create --verbose --file="$ARCHIVE_NAME" --directory "$TRAVIS_BUILD_DIR/prebuilds"
2322
.
2423
deploy:

‎binding.gyp

+8-1
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,13 @@
2020
"library_dirs": [
2121
"../yosys-src",
2222
],
23-
}
23+
},
24+
"copies":
25+
[
26+
{
27+
"destination": "<(module_root_dir)/build/Release",
28+
"files": ["<(module_root_dir)/yosys-src/libyosys.so"]
29+
}
30+
]
2431
}]
2532
}

‎package.json

+1-2
Original file line numberDiff line numberDiff line change
@@ -16,11 +16,10 @@
1616
"tape": "^4.9.1"
1717
},
1818
"scripts": {
19-
"install": "yarn clean && yarn build-yosys && yarn build-napi && yarn copy-libyosys",
19+
"install": "yarn clean && yarn build-yosys && yarn build-napi",
2020
"clean": "rm -rf build",
2121
"build-yosys": "make build-yosys",
2222
"build-napi": "node-gyp-build",
23-
"copy-libyosys": "cp yosys-src/libyosys.so build/Release",
2423
"test": "standard && tape tests/test.js",
2524
"prebuild": "prebuildify --napi"
2625
},

0 commit comments

Comments
 (0)