From 2830b525576ef2bd37f7155372a439c728c7abb7 Mon Sep 17 00:00:00 2001 From: soramimi Date: Tue, 17 Oct 2023 03:26:42 +0900 Subject: [PATCH] dev branch --- ci/build-dev.sh | 1 + ci/ci-amd64-deb-dev.sh | 14 ++++++++++++++ packaging/deb/debname.rb | 7 ++++++- packaging/deb/mk-deb.rb | 7 ++++++- 4 files changed, 27 insertions(+), 2 deletions(-) create mode 100755 ci/build-dev.sh create mode 100755 ci/ci-amd64-deb-dev.sh diff --git a/ci/build-dev.sh b/ci/build-dev.sh new file mode 100755 index 00000000..e5c95a2d --- /dev/null +++ b/ci/build-dev.sh @@ -0,0 +1 @@ +curl -u soramimi:password http://10.0.0.12:8080/job/Guitar-dev/build?token=token diff --git a/ci/ci-amd64-deb-dev.sh b/ci/ci-amd64-deb-dev.sh new file mode 100755 index 00000000..ea1b79db --- /dev/null +++ b/ci/ci-amd64-deb-dev.sh @@ -0,0 +1,14 @@ +rm _bin -fr +rm _build -fr +mkdir _bin +ruby prepare.rb +cd packaging/deb +mkdir _build +cd _build +qmake "CONFIG+=release" ../../../Guitar.pri +make -j2 +cd .. +cp _build/Guitar . +SUFFIX=-dev ruby mk-deb.rb +file=`SUFFIX=-dev ./debname.rb` +curl -T $file ftp://10.0.0.5/Public/pub/_tmp/ diff --git a/packaging/deb/debname.rb b/packaging/deb/debname.rb index 4cf556b0..0b32bb94 100755 --- a/packaging/deb/debname.rb +++ b/packaging/deb/debname.rb @@ -2,7 +2,12 @@ load '../../version.rb' -$package = "guitar" +$suffix = ENV['SUFFIX'] +if $suffix.nil? + $suffix = '' +end + +$package = "guitar" + $suffix $arch = `./arch.rb`.strip $debname = "#{$package}_#{$version_a}.#{$version_b}.#{$version_c}_#{$arch}.deb" diff --git a/packaging/deb/mk-deb.rb b/packaging/deb/mk-deb.rb index ef0803d0..1551d2e1 100755 --- a/packaging/deb/mk-deb.rb +++ b/packaging/deb/mk-deb.rb @@ -4,7 +4,12 @@ load '../../version.rb' -$package = "guitar" +$suffix = ENV['SUFFIX'] +if $suffix.nil? + $suffix = '' +end + +$package = "guitar" + $suffix $maintainer = "nobody " $version = "#{$version_a}.#{$version_b}.#{$version_c}" $workdir = "build"