Skip to content

Commit 373be8b

Browse files
committed
build: add compatibility with the heroku-24 stack
See: playwright-community#32
1 parent 7ec3327 commit 373be8b

File tree

1 file changed

+17
-2
lines changed

1 file changed

+17
-2
lines changed

bin/compile

Lines changed: 17 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,6 @@ install_system_deps() {
3535
libnspr4
3636
libnss3
3737
libxss1
38-
libasound2
3938
fonts-noto-color-emoji
4039
libgbm1
4140
libatk-bridge2.0-0
@@ -44,6 +43,17 @@ libxrandr2
4443
libatspi2.0-0
4544
libxshmfence-dev
4645
EOF
46+
# If stack is heroku-24, install libasound2t64
47+
if [[ "$STACK" == "heroku-24" ]]; then
48+
cat << EOF >>$build_tmpdir/Aptfile
49+
libasound2t64
50+
EOF
51+
else
52+
cat << EOF >>$build_tmpdir/Aptfile
53+
libasound2
54+
EOF
55+
fi
56+
4757
fi
4858

4959
if [[ "$SUPPORTED_BROWSERS" == *"firefox"* ]]; then
@@ -88,10 +98,15 @@ EOF
8898
"heroku-22")
8999
cat << EOF >>$build_tmpdir/Aptfile
90100
libvpx7
101+
EOF
102+
;;
103+
"heroku-24")
104+
cat << EOF >>$build_tmpdir/Aptfile
105+
libvpx9
91106
EOF
92107
;;
93108
*)
94-
error "STACK must be 'heroku-18', 'heroku-20', or 'heroku-22'"
109+
error "STACK must be 'heroku-18', 'heroku-20', 'heroku-22', or 'heroku-24'"
95110
esac
96111

97112
local cache_tmpdir=$(mktemp -d)

0 commit comments

Comments
 (0)