Get Python built with new system
This commit is contained in:
parent
6c678c73ce
commit
3f898fdbc1
|
@ -16,6 +16,7 @@ export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
riju-curl "build/lang/${LANG}/install.bash" > "install-lang-${LANG}.bash"
|
riju-curl "build/lang/${LANG}/install.bash" > "install-lang-${LANG}.bash"
|
||||||
riju-curl "build/lang/${LANG}/riju-lang-${LANG}.deb" > "riju-lang-${LANG}.deb"
|
riju-curl "build/lang/${LANG}/riju-lang-${LANG}.deb" > "riju-lang-${LANG}.deb"
|
||||||
|
chmod +x "install-lang-${LANG}.bash"
|
||||||
|
|
||||||
(
|
(
|
||||||
dpkg-deb -f "riju-lang-${LANG}.deb" -f Depends |
|
dpkg-deb -f "riju-lang-${LANG}.deb" -f Depends |
|
||||||
|
@ -24,25 +25,27 @@ riju-curl "build/lang/${LANG}/riju-lang-${LANG}.deb" > "riju-lang-${LANG}.deb"
|
||||||
) | while read name; do
|
) | while read name; do
|
||||||
riju-curl "build/shared/${name}/install.bash" > "install-shared-${name}.bash"
|
riju-curl "build/shared/${name}/install.bash" > "install-shared-${name}.bash"
|
||||||
riju-curl "build/shared/${name}/riju-shared-${name}.deb" > "riju-shared-${name}.deb"
|
riju-curl "build/shared/${name}/riju-shared-${name}.deb" > "riju-shared-${name}.deb"
|
||||||
|
chmod +x "install-shared-${name}.bash"
|
||||||
done
|
done
|
||||||
|
|
||||||
if dpkg-deb -f "riju-lang-${LANG}.deb" -f Depends | grep .; then
|
|
||||||
apt-get update
|
|
||||||
fi
|
|
||||||
|
|
||||||
if compgen -G "./install-shared-*.bash"; then
|
if compgen -G "./install-shared-*.bash"; then
|
||||||
for file in ./install-shared-*.bash; do
|
for file in ./install-shared-*.bash; do
|
||||||
"${file}"
|
"${file}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
|
"./install-lang-${LANG}.bash"
|
||||||
|
|
||||||
|
if dpkg-deb -f "riju-lang-${LANG}.deb" -f Depends | grep .; then
|
||||||
|
apt-get update
|
||||||
|
fi
|
||||||
|
|
||||||
if compgen -G "./riju-shared-*.deb"; then
|
if compgen -G "./riju-shared-*.deb"; then
|
||||||
for file in ./riju-shared-*.deb; do
|
for file in ./riju-shared-*.deb; do
|
||||||
apt-get install -y "${file}"
|
apt-get install -y "${file}"
|
||||||
done
|
done
|
||||||
fi
|
fi
|
||||||
|
|
||||||
"./install-lang-${LANG}.bash"
|
|
||||||
apt-get install -y "./riju-lang-${LANG}.deb"
|
apt-get install -y "./riju-lang-${LANG}.deb"
|
||||||
|
|
||||||
popd
|
popd
|
||||||
|
|
|
@ -12,6 +12,7 @@ pushd /tmp/riju-work
|
||||||
export DEBIAN_FRONTEND=noninteractive
|
export DEBIAN_FRONTEND=noninteractive
|
||||||
|
|
||||||
apt-get update
|
apt-get update
|
||||||
|
apt-get dist-upgrade -y
|
||||||
(yes || true) | unminimize
|
(yes || true) | unminimize
|
||||||
|
|
||||||
apt-get install -y curl gnupg lsb-release wget
|
apt-get install -y curl gnupg lsb-release wget
|
||||||
|
@ -65,10 +66,9 @@ vim
|
||||||
apt-get update
|
apt-get update
|
||||||
apt-get install -y $(sed 's/#.*//' <<< "${packages}")
|
apt-get install -y $(sed 's/#.*//' <<< "${packages}")
|
||||||
|
|
||||||
ver="$(latest_release watchexec/watchexec)"
|
ver="$(latest_release watchexec/watchexec | sed 's/^cli-v//')"
|
||||||
wget "https://github.com/watchexec/watchexec/releases/download/${ver}/watchexec-${ver}-x86_64-unknown-linux-gnu.deb"
|
wget "https://github.com/watchexec/watchexec/releases/download/cli-v${ver}/watchexec-${ver}-x86_64-unknown-linux-gnu.deb"
|
||||||
apt-get install -y ./watchexec-*.deb
|
apt-get install -y ./watchexec-*.deb
|
||||||
rm watchexec-*.deb
|
|
||||||
|
|
||||||
rm -rf /var/lib/apt/lists/*
|
rm -rf /var/lib/apt/lists/*
|
||||||
|
|
||||||
|
|
|
@ -364,8 +364,9 @@ function makeSharedScript(langConfig) {
|
||||||
// Given a language ID, return the text of a Bash script that will do
|
// Given a language ID, return the text of a Bash script that will do
|
||||||
// any necessary setup before the language package is installed (along
|
// any necessary setup before the language package is installed (along
|
||||||
// with its shared dependencies, if any).
|
// with its shared dependencies, if any).
|
||||||
function makeInstallScript(lang) {
|
function makeInstallScript(langConfig) {
|
||||||
let parts = [];
|
let parts = [];
|
||||||
|
const { install } = langConfig;
|
||||||
if (install) {
|
if (install) {
|
||||||
const { apt, cert, aptKey, aptRepo } = install;
|
const { apt, cert, aptKey, aptRepo } = install;
|
||||||
if (apt && apt.filter((pkg) => pkg.includes(":i386")).length > 0) {
|
if (apt && apt.filter((pkg) => pkg.includes(":i386")).length > 0) {
|
||||||
|
|
|
@ -13,13 +13,21 @@ import { generateBuildScript } from "./generate-build-script.js";
|
||||||
// Parse command-line arguments, run main functionality, and exit.
|
// Parse command-line arguments, run main functionality, and exit.
|
||||||
async function main() {
|
async function main() {
|
||||||
for (const { lang, type } of await getPackages()) {
|
for (const { lang, type } of await getPackages()) {
|
||||||
const scriptPath = `build/${type}/${lang}/build.bash`;
|
const buildScriptPath = `build/${type}/${lang}/build.bash`;
|
||||||
await fs.mkdir(nodePath.dirname(scriptPath), { recursive: true });
|
const installScriptPath = `build/${type}/${lang}/install.bash`;
|
||||||
|
await fs.mkdir(nodePath.dirname(buildScriptPath), { recursive: true });
|
||||||
await fs.writeFile(
|
await fs.writeFile(
|
||||||
scriptPath,
|
buildScriptPath,
|
||||||
(await generateBuildScript({ lang, type })) + "\n"
|
(await generateBuildScript({ lang, type })) + "\n"
|
||||||
);
|
);
|
||||||
await fs.chmod(scriptPath, 0o755);
|
await fs.chmod(buildScriptPath, 0o755);
|
||||||
|
if (type === "lang") {
|
||||||
|
await fs.writeFile(
|
||||||
|
installScriptPath,
|
||||||
|
(await generateBuildScript({ lang, type: "install" })) + "\n"
|
||||||
|
);
|
||||||
|
await fs.chmod(installScriptPath, 0o755);
|
||||||
|
}
|
||||||
}
|
}
|
||||||
process.exit(0);
|
process.exit(0);
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue