1
0
mirror of https://github.com/janet-lang/janet synced 2024-11-18 06:34:48 +00:00
janet/.github/cosmo/setup

22 lines
541 B
Plaintext
Raw Normal View History

2024-04-21 03:09:10 +00:00
#!/bin/sh
set -e
sudo apt update
sudo apt-get install -y ca-certificates libssl-dev\
qemu qemu-utils qemu-user-static\
texinfo groff\
cmake ninja-build bison zip\
pkg-config build-essential autoconf re2c
2024-04-21 06:10:06 +00:00
# download cosmocc
2024-04-21 03:09:10 +00:00
cd /sc
2024-04-21 06:10:06 +00:00
wget https://github.com/jart/cosmopolitan/releases/download/3.3.3/cosmocc-3.3.3.zip
mkdir -p cosmocc
cd cosmocc
unzip ../cosmocc-3.3.3.zip
2024-04-21 03:09:10 +00:00
2024-04-21 06:10:06 +00:00
# register
cd /sc/cosmocc
sudo cp ./bin/ape-x86_64.elf /usr/bin/ape
2024-04-21 03:09:10 +00:00
sudo sh -c "echo ':APE:M::MZqFpD::/usr/bin/ape:' >/proc/sys/fs/binfmt_misc/register"