unpack tar ball before uploading

This commit is contained in:
Peter Tillemans 2024-05-25 16:20:28 +02:00
parent 576ec33d5a
commit 0963203bf0
4 changed files with 21 additions and 9 deletions

9
.bumpversion.cfg Normal file
View file

@ -0,0 +1,9 @@
[bumpversion]
current_version = 0.3.2
tag = True
commit = True
[bumpversion:file:configure.ac]
[bumpversion:file:guix.scm]

View file

@ -26,7 +26,7 @@
(define-public bloatrunner (define-public bloatrunner
(package (package
(name "bloatrunner") (name "bloatrunner")
(version "0.3.1-git") (version "0.3.2-git")
;; (source (git-checkout (url (dirname (current-filename))))) ;; (source (git-checkout (url (dirname (current-filename)))))
(source (local-file "../.." "guile-checkout" (source (local-file "../.." "guile-checkout"
#:recursive? #t #:recursive? #t

View file

@ -5,7 +5,7 @@
WWWWWGWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW WWWWWGWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWWW
W H W W H W
W O H O W W O H O W
W H K F K f K FFFF H W W H K F K f K F F H W
W O BBBBBBBBBBBBBBBBBBBBBBBBBBHB O W - W O BBBBBBBBBBBBBBBBBBBBBBBBBBHB O W -
W H W W H W
W H W W H W

View file

@ -17,18 +17,21 @@ if [ -f "$SOURCETAR" ]; then
BASENAME="@PACKAGE@-@VERSION@" BASENAME="@PACKAGE@-@VERSION@"
echo releasing $BASENAME echo releasing $BASENAME
butler push $SOURCETAR $ITCH_CHANNEL:source butler push $SOURCETAR $ITCH_CHANNEL:source
TARBALL=$(guix pack -R -Sbloatrunner=bin -L .guix/modules bloatrunner) TARBALL=$(guix pack -R -Sbloatrunner=bin -L .guix/modules bloatrunner)
echo created $TARBALL echo created $TARBALL
TARGETNAME=/tmp/$BASENAME-linux-x86_64.tar.gz if [ -f $TARBALL ]; then
echo copy $TARBALL to $TARGETNAME TARGETNAME=/tmp/bloatrunner
echo unpack $TARBALL to $TARGETNAME
rm -f $TARGETNAME rm -f $TARGETNAME
cp $TARBALL $TARGETNAME mkdir -p $TARGETNAME
tar -xzvf $TARBALL -C $TARGETNAME
echo push $TARGETNAME echo push $TARGETNAME
butler push $TARGETNAME $ITCH_CHANNEL:linux-x86_64 butler push $TARGETNAME $ITCH_CHANNEL:linux-x86_64
fi
else else
echo "No source tarball found" echo "No source tarball found"