diff --git a/Creating-a-release.md b/Creating-a-release.md index 0093a7b..fcd50d6 100644 --- a/Creating-a-release.md +++ b/Creating-a-release.md @@ -69,6 +69,26 @@ move /y build\nim_%NIMVER%.exe web\upload\download\nim-%NIMVER%_x64.exe || exit ``` +Shell script, simple: + +```sh +#!/bin/sh +set -eu +tmp_dir=$(mktemp -d) +cd $tmp_dir +git clone -q --depth 1 https://github.com/nim-lang/Nim.git +cd Nim +git clone -q --depth 1 https://github.com/nim-lang/csources +( cd csources && sh build.sh ) +bin/nim c koch +./koch boot -d:release +./koch web0 +PATH=$PATH:$(pwd)/bin +./koch csource -d:release +./koch xz -d:release +./koch nsis +``` + Shell script, work in progress: ```sh