summary refs log tree commit diff
path: root/.ci
diff options
context:
space:
mode:
authorKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-17 16:53:14 +0300
committerKonstantinos Sideris <sideris.konstantin@gmail.com>2018-06-17 16:53:14 +0300
commitd081fe9b9e248de9bd0452871e6bf4dbae9e603a (patch)
treea4639b73d5d1c6a7bcfa6dcf06601240bc58c025 /.ci
parentCorrectly mark received messages whose response came after /sync (diff)
downloadnheko-d081fe9b9e248de9bd0452871e6bf4dbae9e603a.tar.xz
Setup BinTray
Diffstat (limited to '.ci')
-rw-r--r--.ci/bintray-release.json37
-rwxr-xr-x.ci/linux/deploy.sh11
-rwxr-xr-x.ci/macos/deploy.sh4
3 files changed, 50 insertions, 2 deletions
diff --git a/.ci/bintray-release.json b/.ci/bintray-release.json
new file mode 100644
index 00000000..7115c910
--- /dev/null
+++ b/.ci/bintray-release.json
@@ -0,0 +1,37 @@
+{
+  "files": [
+    {
+      "includePattern": "nheko-VERSION_NAME_VALUE.dmg",
+      "matrixParams": {
+        "override": 1
+      },
+      "uploadPattern": "VERSION_NAME_VALUE/nheko-VERSION_NAME_VALUE.dmg"
+    },
+    {
+      "includePattern": "nheko-VERSION_NAME_VALUE-x86_64.AppImage",
+      "matrixParams": {
+        "override": 1
+      },
+      "uploadPattern": "VERSION_NAME_VALUE/nheko-VERSION_NAME_VALUE-x86_64.AppImage"
+    }
+  ],
+  "package": {
+    "desc": "Desktop client for the Matrix protocol",
+    "issue_tracker_url": "https://github.com/mujx/nheko/issues",
+    "licenses": [
+      "GPL-3.0"
+    ],
+    "name": "nheko",
+    "public_download_numbers": true,
+    "public_stats": true,
+    "repo": "matrix",
+    "subject": "mujx",
+    "vcs_url": "https://github.com/mujx/nheko",
+    "website_url": "https://github.com/mujx/nheko"
+  },
+  "publish": true,
+  "version": {
+    "name": "VERSION_NAME_VALUE",
+    "vcs_tag": "VERSION_NAME_VALUE"
+  }
+}
diff --git a/.ci/linux/deploy.sh b/.ci/linux/deploy.sh
index 77a4fa06..39fb0e30 100755
--- a/.ci/linux/deploy.sh
+++ b/.ci/linux/deploy.sh
@@ -7,7 +7,7 @@ DIR=${APP}.AppDir
 TAG=`git tag -l --points-at HEAD`
 
 # Set up AppImage structure.
-mkdir -p ${DIR}/usr/{bin,share/pixmaps,share/applications}
+mkdir -p ${DIR}/usr/{bin,lib,share/pixmaps,share/applications}
 
 # Copy resources.
 cp build/nheko ${DIR}/usr/bin
@@ -30,9 +30,16 @@ unset QTDIR
 unset QT_PLUGIN_PATH 
 unset LD_LIBRARY_PATH
 
+cp -R .deps/usr/lib/* ${DIR}/usr/lib
+
+ldd ${DIR}/usr/bin/nheko
+
 ./linuxdeployqt*.AppImage \
     ${DIR}/usr/share/applications/nheko.desktop \
-    -bundle-non-qt-libs\
     -appimage
 
 chmod +x nheko-x86_64.AppImage
+
+if [ ! -z $TRAVIS_TAG ]; then
+    mv nheko-x86_64.AppImage nheko-${TRAVIS_TAG}-x86_64.AppImage
+fi
diff --git a/.ci/macos/deploy.sh b/.ci/macos/deploy.sh
index 133c7b0e..1de95a44 100755
--- a/.ci/macos/deploy.sh
+++ b/.ci/macos/deploy.sh
@@ -15,3 +15,7 @@ mv nheko.dmg ..
 popd
 
 dmgbuild -s ./.ci/macos/settings.json "Nheko" nheko.dmg
+
+if [ ! -z $TRAVIS_TAG ]; then
+    mv nheko.dmg nheko-${TRAVIS_TAG}.dmg
+fi