mirror of
https://github.com/roc-lang/roc.git
synced 2024-11-10 10:02:38 +03:00
4c3d542da1
Also added another `release-with-lto` profile. This profile is used for nightly compiler release and benchmarks.
23 lines
575 B
Bash
Executable File
23 lines
575 B
Bash
Executable File
#!/usr/bin/env bash
|
|
|
|
# https://vaneyckt.io/posts/safer_bash_scripts_with_set_euxo_pipefail/
|
|
set -euxo pipefail
|
|
|
|
cp target/release-with-lto/roc ./roc # to be able to delete "target" later
|
|
|
|
# delete unnecessary files and folders
|
|
git clean -fdx --exclude roc
|
|
|
|
mkdir $1
|
|
|
|
|
|
mv roc LICENSE LEGAL_DETAILS $1
|
|
|
|
mkdir $1/examples
|
|
mv examples/helloWorld.roc examples/platform-switching examples/cli $1/examples
|
|
|
|
mkdir -p $1/crates/compiler/builtins/bitcode
|
|
mv crates/roc_std $1/crates
|
|
mv crates/compiler/builtins/bitcode/src $1/crates/compiler/builtins/bitcode
|
|
|
|
tar -czvf "$1.tar.gz" $1 |