Skip to content

Commit de6f556

Browse files
committed
Change the profile.d file to be copied over into the buildpack
1 parent 4c1854b commit de6f556

File tree

2 files changed

+5
-0
lines changed

2 files changed

+5
-0
lines changed

bin/compile

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,3 +36,7 @@ echo "-----> Browsers will be installed in $PLAYWRIGHT_BROWSERS_PATH"
3636
echo "-----> Installing Playwright executables (env: PLAYWRIGHT_BUILDPACK_BROWSERS) for ${SUPPORTED_BROWSERS} (formatted value for command line is '${SUPPORTED_BROWSERS//,/ }')."
3737
playwright install ${SUPPORTED_BROWSERS//,/ }
3838
echo "-----> Installation done"
39+
40+
# copy the buildpack's heroku-playwright-python-browsers-defaults.sh over to the build pack
41+
cat ./heroku-playwright-python-browsers-defaults.sh
42+
cp ./heroku-playwright-python-browsers-defaults.sh $BUILD_DIR/.profile.d/heroku-playwright-python-browsers-defaults.sh

.profile.d/heroku-playwright-python-browsers-defaults.sh renamed to bin/heroku-playwright-python-browsers-defaults.sh

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
11
#!/usr/bin/env bash
22

33
# export the file path as a ENV
4+
# this is meant to be copied over to the $BUILD_DIR under the same path as it currently is and then run
45
CHROMIUM_PATH=${find ~+ -type f -name "chrome":-NULL}
56
FIREFOX_PATH=${find ~+ -type f -name "firefox":-NULL}
67
WEBKIT_PATH=${find ~+ -type f -name "pw_run.sh":-NULL} # see https://github.com/microsoft/playwright/issues/2923

0 commit comments

Comments
 (0)