fix: Only use APT in Debian-based images
This commit is contained in:
14
Hydrunfile
14
Hydrunfile
@@ -2,12 +2,12 @@
|
||||
|
||||
set -e
|
||||
|
||||
# Install native dependencies
|
||||
apt update
|
||||
apt install -y curl make
|
||||
|
||||
# Go
|
||||
if [ "$1" = "go" ]; then
|
||||
# Install native dependencies
|
||||
apt update
|
||||
apt install -y curl make
|
||||
|
||||
# Install bagop
|
||||
curl -L -o /tmp/bagop "https://github.com/pojntfx/bagop/releases/latest/download/bagop.linux-$(uname -m)"
|
||||
install /tmp/bagop /usr/local/bin
|
||||
@@ -25,6 +25,10 @@ fi
|
||||
|
||||
# gccgo
|
||||
if [ "$1" = "gccgo" ]; then
|
||||
# Install native dependencies
|
||||
apt update
|
||||
apt install -y curl
|
||||
|
||||
# Install bagccgop
|
||||
curl -L -o /tmp/bagccgop "https://github.com/pojntfx/bagccgop/releases/latest/download/bagccgop.linux-$(uname -m)"
|
||||
install /tmp/bagccgop /usr/local/bin
|
||||
@@ -75,4 +79,4 @@ if [ "$1" = "windows" ]; then
|
||||
yes | cp -f ~/.wine/drive_c/users/root/Documents/stfs/out/* out
|
||||
|
||||
exit 0
|
||||
fi
|
||||
fi
|
||||
|
||||
Reference in New Issue
Block a user