mirror of
https://github.com/FeralInteractive/gamemode.git
synced 2025-06-26 17:31:45 +02:00
simplify archive creation
Signed-off-by: Stephan Lachnit <stephanlachnit@protonmail.com>
This commit is contained in:
@ -4,14 +4,18 @@ set -e
|
||||
# Simple script to construct a redistributable and complete tarball of the
|
||||
# gamemode tree, including the subprojects, so that it can be trivially
|
||||
# packaged by distributions banning networking during build.
|
||||
meson subprojects download
|
||||
meson subprojects update
|
||||
|
||||
# Bump in tandem with meson.build, run script once new tag is up.
|
||||
VERSION="1.6-dev"
|
||||
|
||||
NAME="gamemode"
|
||||
./scripts/git-archive-all.sh --format tar --prefix ${NAME}-${VERSION}/ --verbose -t HEAD ${NAME}-${VERSION}.tar
|
||||
|
||||
# get code in this repo
|
||||
git archive HEAD --format=tar --prefix=${NAME}-${VERSION}/ --output=${NAME}-${VERSION}.tar
|
||||
# get code from subprojects
|
||||
meson subprojects download
|
||||
meson subprojects update
|
||||
tar -rf ${NAME}-${VERSION}.tar --exclude-vcs --transform="s,^subprojects,${NAME}-$VERSION/subprojects," subprojects/inih/
|
||||
# compress archive
|
||||
xz -9 "${NAME}-${VERSION}.tar"
|
||||
|
||||
# Automatically sign the tarball with GPG key of user running this script
|
||||
|
Reference in New Issue
Block a user