added creation of the debian package

This commit is contained in:
Patrizio Bekerle 2015-07-24 07:50:47 +02:00
parent 17617d9d0e
commit b0132dae07
5 changed files with 31 additions and 4 deletions

View file

@ -36,20 +36,28 @@ script:
- make
before_deploy:
#
# create debian package
#
- cd ../travis
- dpkg-deb -x QOwnNotes.deb build
- mv ../QOwnNotes build/opt/QOwnNotes/
- sed -i 's/%TRAVIS_BUILD_NUMBER%/'"$$TRAVIS_BUILD_NUMBER"'/g' build/DEBIAN/control
- dpkg -b build QOwnNotes.deb
#
# add a tag
#
- git config --global user.email "builds@travis-ci.com"
- git config --global user.name "Travis CI"
- export GIT_TAG=linux-b$TRAVIS_BUILD_NUMBER
- git tag $GIT_TAG -a -m "Generated tag from TravisCI for build $TRAVIS_BUILD_NUMBER"
# - git push -q https://github.com/pbek/QOwnNotes.git --tags
- git push -q https://$TAGPERM@github.com/pbek/QOwnNotes --tags
# - git push origin $GIT_TAG
deploy:
provider: releases
api_key:
secure: EyOMTm+fzo7rWhRMfROH8/jeJnSFmLFz4pfD/HuFJI2ohayHJOIfASMdg0d7N2cGFS9G7iuPUmQ1S56YC8BSnEefc3lASB1i5hiSOMWJV+lO3N1JBFCWxCBzHc9Hs+XKwHwyhZ5iIYncx+JHPYRNWtUD+A6SZHiZ+sVI48gYMyA=
# file: src/QOwnNotes
file: QOwnNotes
file: travis/QOwnNotes.deb
skip_cleanup: true
on:
repo: pbek/QOwnNotes

BIN
travis/QOwnNotes.deb Normal file

Binary file not shown.

View file

@ -0,0 +1,12 @@
Package: QOwnNotes
Version: 0.%TRAVIS_BUILD_NUMBER%
Installed-Size: 568
Source: https://github.com/pbek/QOwnNotes
Maintainer: Patrizio Bekerle <patrizio@bekerle.com>
Section: editors
Homepage: http://www.qownnotes.org
Priority: optional
Architecture: amd64
Depends: libstdc++6, chise-db, libc6, libffi6, libffi6-dbg, libfreetype6, libgcc1, libgcc1-dbg, libglib2.0-0, libgraphite2-3, libharfbuzz0b, libicu52, libpcre3, libpcre3-dbg, libpng12-0, libqt5core5a, libqt5gui5, libqt5sql5, libqt5widgets5, libstdc++6, libx11-6, libx11-6-dbg, libxau6, libxau6-dbg, libxcb1, libxdmcp6, libxdmcp6-dbg, libxext6, libxext6-dbg, zlib1g
Description: QOwnNotes is the open source notepad, that works together with the notes application of ownCloud.
QOwnNotes is the open source notepad, that works together with the notes application of ownCloud.

4
travis/build/DEBIAN/postinst Executable file
View file

@ -0,0 +1,4 @@
#! /bin/bash -e
chmod a+x /opt/QOwnNotes/QOwnNotes
ln -fs "/opt/QOwnNotes/QOwnNotes" "/usr/bin/QOwnNotes"

3
travis/build/DEBIAN/prerm Executable file
View file

@ -0,0 +1,3 @@
#! /bin/bash -e
rm "/usr/bin/QOwnNotes"