/
githubmirror
/
tauri
Обзор
Документация
Войти
/
githubmirror
/
tauri
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
dev
.docker/cross/common.sh
40 строк
1 KB
Lucas Fernandes Nogueira
feat: add docker images for cross (#4702)
27 июл 2022, 20:58
Не верифицирован
27 июл 2022, 20:58
433dafa
Код
Авторство
О чём код?
#!/usr/bin/env bash set -x set -euo pipefail # shellcheck disable=SC1091 . lib.sh # For architectures except amd64 and i386, look for packages on ports.ubuntu.com instead. # This is important if you enable additional architectures so you can install libraries to cross-compile against. # Look for 'dpkg --add-architecture' in the README for more details. if grep -i ubuntu /etc/os-release >/dev/null; then sed 's/http:\/\/\(.*\).ubuntu.com\/ubuntu\//[arch-=amd64,i386] http:\/\/ports.ubuntu.com\/ubuntu-ports\//g' /etc/apt/sources.list > /etc/apt/sources.list.d/ports.list sed -i 's/http:\/\/\(.*\).ubuntu.com\/ubuntu\//[arch=amd64,i386] http:\/\/\1.archive.ubuntu.com\/ubuntu\//g' /etc/apt/sources.list fi install_packages \ autoconf \ automake \ binutils \ ca-certificates \ curl \ file \ gcc \ git \ libtool \ m4 \ make if_centos install_packages \ clang-devel \ gcc-c++ \ glibc-devel \ pkgconfig if_ubuntu install_packages \ g++ \ libc6-dev \ libclang-dev \ pkg-config