Skip to content

Commit 996e3ef

Browse files
authored
Merge pull request #2 from drhops/add-heroku-24
Add heroku-24
2 parents 7ec3327 + 4ad6cf3 commit 996e3ef

File tree

1 file changed

+18
-2
lines changed

1 file changed

+18
-2
lines changed

bin/compile

Lines changed: 18 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+
47+
# If stack is heroku-24, install libasound2t64
48+
if [[ "$STACK" == "heroku-24" ]]; then
49+
cat << EOF >>$build_tmpdir/Aptfile
50+
libasound2t64
51+
EOF
52+
else
53+
cat << EOF >>$build_tmpdir/Aptfile
54+
libasound2
55+
EOF
56+
fi
4757
fi
4858

4959
if [[ "$SUPPORTED_BROWSERS" == *"firefox"* ]]; then
@@ -88,10 +98,16 @@ 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'"
110+
95111
esac
96112

97113
local cache_tmpdir=$(mktemp -d)

0 commit comments

Comments
 (0)