Skip to content
Snippets Groups Projects
Commit 9de878e4 authored by akiraohgaki's avatar akiraohgaki
Browse files

Remove treeish option

parent 2a98b954
No related branches found
No related tags found
No related merge requests found
......@@ -11,11 +11,6 @@ if [ "${1}" ]; then
BUILDTYPE="${1}"
fi
TREEISH='HEAD'
if [ "${2}" ]; then
TREEISH="${2}"
fi
PROJDIR="$(cd "$(dirname "${0}")/../" && pwd)"
BUILDVER="$(cd "${PROJDIR}" && git describe --always)"
......@@ -29,7 +24,7 @@ SRCARCHIVE="${BUILDDIR}/${PKGNAME}.tar.gz"
################################################################################
export_srcarchive() {
filepath="${1}"
$(cd "${PROJDIR}" && git archive --prefix="${PKGNAME}/" --output="${filepath}" "${TREEISH}")
$(cd "${PROJDIR}" && git archive --prefix="${PKGNAME}/" --output="${filepath}" HEAD)
}
transfer_file() {
......@@ -178,6 +173,6 @@ elif [ "${BUILDTYPE}" = 'snap' ]; then
elif [ "${BUILDTYPE}" = 'appimage' ]; then
pre_appimage && build_appimage && post_appimage
else
echo "sh $(basename "${0}") [ubuntu|fedora|archlinux|snap|appimage] [tree_ish]"
echo "sh $(basename "${0}") [ubuntu|fedora|archlinux|snap|appimage]"
exit 1
fi
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment