Skip to content

Commit

Permalink
chore: v0.0.7
Browse files Browse the repository at this point in the history
  • Loading branch information
Dafyh committed Jul 27, 2024
1 parent b040c8e commit 771fd39
Show file tree
Hide file tree
Showing 4 changed files with 19 additions and 6 deletions.
4 changes: 3 additions & 1 deletion .dockerignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,4 +7,6 @@ prebuilds
index.d.ts
LICENSE
README.md
docker
docker
src/build
src/node_modules
11 changes: 10 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -54,7 +54,16 @@ jobs:
# Run container and copy the built file
docker run --name ${{ env.PLATFORM }} ${{ env.PLATFORM }}
docker cp ${{ env.PLATFORM }}:C:/heif-converter/src/build/Release/converter.node ./release/converter.${{ env.PLATFORM }}.node
# Determine the path based on the platform
if [[ "${{ matrix.platform }}" == "win32" ]]; then
CONVERTER_PATH="C:/heif-converter/src/build/Release/converter.node"
else
CONVERTER_PATH="/heif-converter/src/build/Release/converter.node"
fi
# Copy binary file from container
docker cp ${{ env.PLATFORM }}:${CONVERTER_PATH} ./release/converter.${{ env.PLATFORM }}.node
# Clean up the Docker container
docker container rm ${{ env.PLATFORM }}
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "@myunisoft/heif-converter",
"description": "Bindings for the libheif C API to convert an image in Node.js",
"version": "0.0.6",
"version": "0.0.7",
"keywords": [
"heif",
"heic",
Expand Down Expand Up @@ -46,7 +46,7 @@
"file-type": "^19.0.0",
"heic-convert": "^2.1.0",
"node-addon-api": "^8.0.0",
"node-gyp": "^10.1.0",
"node-gyp": "10.0.1",
"rimraf": "^6.0.1",
"tinybench": "^2.8.0"
},
Expand Down
6 changes: 4 additions & 2 deletions src/binding.gyp
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,14 @@
"defines": [ "NAPI_CPP_EXCEPTIONS" ],
"conditions": [
[
'OS=="linux"', {
'OS=="linux"',
{
"variables": {
"VCPKG_LIB_ROOT%": "<!(echo $VCPKG_LIB_ROOT)",
"conditions": [
[
'"<!(echo $VCPKG_LIB_ROOT)" == ""', {
'"<!(echo $VCPKG_LIB_ROOT)" == ""',
{
"VCPKG_LIB_ROOT%": "/vcpkg/installed/x64-linux"
}
]
Expand Down

0 comments on commit 771fd39

Please sign in to comment.