<commit_before>#!/bin/bash

get_name() { echo "Steam"; }
get_desc() { echo "Valve's game platform"; }

pushd ".." &>/dev/null
source "bundle-tools.sh"
popd &>/dev/null

verify_requirements() {
    exit 0
}

on_init() {
    send_cmd enqueue_packages "libgl1-mesa-dri:i386" "libgl1-mesa-glx:i386" "libc6:i386"
}

after_installs() {
    local steam_package="/tmp/steam_latest.deb"

    send_cmd log INFO "Downloading Steam client..."
    curl --silent -kfLo "${steam_package}" \
        "https://steamcdn-a.akamaihd.net/client/installer/steam.deb"

    # Verify if curl threw an error
    if [ ! $? ]; then
        send_cmd log ERROR Download failed
        exit 1
    fi

    send_cmd log INFO "Installing Steam package..."
    sudo dpkg -i ${steam_package} &>/dev/null || exit 1
}

# The following line is necessary.
# It allows bundles to be called without being sourced.
$@<commit_msg>Add HiDPI skin for Steam :massage:<commit_after>#!/bin/bash

get_name() { echo "Steam"; }
get_desc() { echo "Valve's game platform"; }

pushd ".." &>/dev/null
source "bundle-tools.sh"
popd &>/dev/null

verify_requirements() {
    exit 0
}

on_init() {
    send_cmd enqueue_packages "libgl1-mesa-dri:i386" "libgl1-mesa-glx:i386" "libc6:i386"
}

after_installs() {
    local steam_package="/tmp/steam_latest.deb"

    send_cmd log INFO "Downloading Steam client..."
    curl --silent -kfLo "${steam_package}" \
        "https://steamcdn-a.akamaihd.net/client/installer/steam.deb"

    # Verify if curl threw an error
    if [ ! $? ]; then
        send_cmd log ERROR Download failed
        exit 1
    fi

    send_cmd log INFO "Installing Steam package..."
    sudo dpkg -i ${steam_package} &>/dev/null || exit 1

    # Add HiDPI skin
    send_cmd log INFO "Adding HiDPI skin..."
    mkdir -p .local/share/Steam/skins && cd .local/share/Steam/skins && \
    git clone https://github.com/MoriTanosuke/HiDPI-Steam-Skin.git --depth=1
}

# The following line is necessary.
# It allows bundles to be called without being sourced.
$@
{'fraction_non_alphanumeric': 0.139234211834908, 'fraction_numerical': 0.015415216310293387, 'mean_word_length': 3.040160642570281, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 9, 'https://': 3, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7353631', 'n_tokens_mistral': 767, 'n_tokens_neox': 716, 'n_words': 185}