Skip to content

Commit

Permalink
add pre-build.sh
Browse files Browse the repository at this point in the history
  • Loading branch information
znarf committed Nov 29, 2023
1 parent 06d8f13 commit 8a4d0f2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 2 deletions.
2 changes: 1 addition & 1 deletion Aptfile
Original file line number Diff line number Diff line change
Expand Up @@ -8,8 +8,8 @@ libfreetype6-dev
libglib2.0-dev
libgsf-1-dev
libheif-dev
libimagequant-dev
libice-dev
libimagequant-dev
libjbig-dev
libjpeg-dev
liblcms2-dev
Expand Down
3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,8 @@
"graphql:update": "npm-run-all graphql:updateV1 graphql:updateV2",
"graphql:updateV1": "npx get-graphql-schema http://localhost:3060/graphql > src/graphql/schema.graphql && prettier src/graphql/schema.graphql --write",
"graphql:updateV2": "npx get-graphql-schema http://localhost:3060/graphql/v2 > src/graphql/schemaV2.graphql && prettier src/graphql/schemaV2.graphql --write",
"depcheck": "npx depcheck"
"depcheck": "npx depcheck",
"heroku-prebuild": "./scripts/pre-build.sh"
},
"devDependencies": {
"@babel/cli": "^7.23.4",
Expand Down
6 changes: 6 additions & 0 deletions scripts/pre-build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
TMP_DIR=$(pwd)

for file in $(grep -rl /usr/local ${TMP_DIR}/vendor/vips/lib/pkgconfig)
do
sed -i "s+/usr/local+${TMP_DIR}/vendor+g" $file
done

0 comments on commit 8a4d0f2

Please sign in to comment.