Skip to content
This repository
Fetching contributors…

Cannot retrieve contributors at this time

executable file 26 lines (19 sloc) 0.68 kb
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26
#! /bin/bash

version=$( egrep -o '([0-9]+\.)+[0-9]+' version.h )
foldername=oneclickinstaller-$version
echo $version
echo $foldername

tempfolder=$( mktemp -d /tmp/tmp.XXXX )
srcfolder=$( pwd )
echo $tempfolder

mkdir -p $tempfolder/$foldername/src/res

cp src/*.h src/*.cpp src/CMakeLists.txt src/oci.desktop $tempfolder/$foldername/src
cp src/res/oneclickinstall.png $tempfolder/$foldername/src/res

branch=$( git branch | grep -o tags )
echo $branch

git tag -a v$version -m 'version '.$version
git push --tags

cd $tempfolder
tar -cvf oneclickinstaller-$version.tar.gz oneclickinstaller-$version
cp oneclickinstaller-$version.tar.gz $srcfolder
rm -rf $tempfolder/$foldername
Something went wrong with that request. Please try again.