diff options
Diffstat (limited to 'config')
| -rw-r--r-- | config/install.sh | 31 |
1 files changed, 17 insertions, 14 deletions
diff --git a/config/install.sh b/config/install.sh index 67ce2b2..e303910 100644 --- a/config/install.sh +++ b/config/install.sh @@ -77,8 +77,8 @@ apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 3FA7E0328081BF echo "deb https://download.mono-project.com/repo/debian stable-buster main" | tee /etc/apt/sources.list.d/mono-official-stable.list apt-get update -q -apt-get install -y --no-install-recommends dotnet-sdk-3.1 mono-complete -curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe +apt-get install -y --no-install-recommends dotnet-sdk-3.1 mono-complete & +curl -o /usr/local/bin/nuget.exe https://dist.nuget.org/win-x86-commandline/latest/nuget.exe & mkdir -p "$ASDF_DATA_DIR" git clone https://github.com/asdf-vm/asdf.git "$ASDF_DATA_DIR" @@ -101,7 +101,7 @@ for version in $(asdf list python); do asdf shell python "$version" pip download -d "$HOME/.config/virtualenv/app-data" pip-licenses pip setuptools wheel done - +wait rm -fr /tmp mkdir -p /tmp chmod 777 /tmp @@ -159,24 +159,27 @@ rm -fr "$ASDF_DATA_DIR/docs" \ /var/lib/systemd/* \ /var/log/* +zstd_command="/usr/bin/zstd -19" cd /opt -tar --use-compress-program "/usr/bin/zstd -19" -cf /opt/asdf.tar.zst asdf -rm -fr /opt/asdf/ +tar --use-compress-program "$zstd_command" -cf /opt/asdf.tar.zst asdf & cd /usr/lib -tar --use-compress-program zstd -cf /usr/lib/gcc.tar.zst gcc -rm -fr /usr/lib/gcc +tar --use-compress-program "$zstd_command" -cf /usr/lib/gcc.tar.zst gcc & cd /usr/lib -tar --use-compress-program zstd -cf /usr/lib/mono.tar.zst mono -rm -fr /usr/lib/mono +tar --use-compress-program "$zstd_command" -cf /usr/lib/mono.tar.zst mono & cd /usr/lib -tar --use-compress-program zstd -cf /usr/lib/rustlib.tar.zst rustlib -rm -fr /usr/lib/rustlib +tar --use-compress-program "$zstd_command" -cf /usr/lib/rustlib.tar.zst rustlib & cd /usr/share -tar --use-compress-program zstd -cf /usr/share/dotnet.tar.zst dotnet -rm -fr /usr/share/dotnet - +tar --use-compress-program "$zstd_command" -cf /usr/share/dotnet.tar.zst dotnet & + +wait +rm -fr \ + /opt/asdf/ \ + /usr/lib/gcc \ + /usr/lib/mono \ + /usr/lib/rustlib \ + /usr/share/dotnet echo "Done" |
