Skip to content
This repository was archived by the owner on Sep 11, 2025. It is now read-only.
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
20 changes: 18 additions & 2 deletions bin/compile
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ install_system_deps() {
libnspr4
libnss3
libxss1
libasound2
fonts-noto-color-emoji
libgbm1
libatk-bridge2.0-0
Expand All @@ -44,6 +43,17 @@ libxrandr2
libatspi2.0-0
libxshmfence-dev
EOF

# If stack is heroku-24, install libasound2t64
if [[ "$STACK" == "heroku-24" ]]; then
cat << EOF >>$build_tmpdir/Aptfile
libasound2t64
EOF
else
cat << EOF >>$build_tmpdir/Aptfile
libasound2
EOF
fi
fi

if [[ "$SUPPORTED_BROWSERS" == *"firefox"* ]]; then
Expand Down Expand Up @@ -88,10 +98,16 @@ EOF
"heroku-22")
cat << EOF >>$build_tmpdir/Aptfile
libvpx7
EOF
;;
"heroku-24")
cat << EOF >>$build_tmpdir/Aptfile
libvpx9
EOF
;;
*)
error "STACK must be 'heroku-18', 'heroku-20', or 'heroku-22'"
error "STACK must be 'heroku-18', 'heroku-20', 'heroku-22', or 'heroku-24'"

esac

local cache_tmpdir=$(mktemp -d)
Expand Down