mirror of
https://github.com/rizinorg/cutter.git
synced 2024-12-27 23:35:26 +00:00
d6370541e7
This builds a real tarball, as opposed to the flawed GitHub-generated one, and also includes the following changes: Individual builds now have dedicated names like "linux-x86_64". The structure in the yml is now very similar to how it is in rizin. Since that means builds are renamed, the filename has also been changed from the meaningless "ccpp.yml" to "ci.yml", as that would have happened sooner or later anyway and now will not produce additional intermediate rename states. The workflow name inside that file is now also just "CI" since adding "Cutter" there is redundant.
33 lines
683 B
Bash
Executable File
33 lines
683 B
Bash
Executable File
#!/bin/bash
|
|
|
|
NAME=${1:-Cutter}
|
|
|
|
set -xe
|
|
cd $(dirname "${BASH_SOURCE[0]}")/..
|
|
|
|
shopt -s extglob
|
|
shopt -s dotglob
|
|
mkdir "${NAME}"
|
|
cp -r !(${NAME}) "${NAME}"
|
|
|
|
pushd "${NAME}"
|
|
git clean -dxff .
|
|
git submodule update --init --recursive
|
|
|
|
pushd rizin
|
|
git clean -dxff .
|
|
# Possible option: pre-download all subproject, however this makes the tarball huge.
|
|
# As opposed to meson dist used for rizin tarballs, this will not just download the ones
|
|
# used in a default build, but all of them, including multiple capstone variants.
|
|
# meson subprojects download
|
|
popd
|
|
|
|
pushd src/translations
|
|
git clean -dxff .
|
|
popd
|
|
|
|
find . -name ".git*" | xargs rm -rfv
|
|
popd
|
|
|
|
tar -czvf "${NAME}-src.tar.gz" "${NAME}"
|