Merge pull request #1174 from AnotherFoxGuy/linuxdeployqt

📦 Create appimage
This commit is contained in:
pajlada 2019-08-10 11:20:53 +02:00 committed by GitHub
commit 837ccc0382
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
2 changed files with 65 additions and 38 deletions

View file

@ -1,42 +1,69 @@
os: osx matrix:
osx_image: xcode10.2 include:
addons: # gcc build
homebrew: - os: linux
packages: name: Linux Build
- boost dist: bionic
- openssl language: cpp
- rapidjson
- qt
- p7zip
- create-dmg
compiler: clang install:
- sudo add-apt-repository ppa:beineri/opt-qt-5.12.0-bionic -y
- sudo apt-get install qt512-meta-minimal qt512multimedia qt512svg libboost-dev libgl1-mesa-dev libboost-system-dev libboost-filesystem-dev -y
script: script:
- mkdir build && cd build - /opt/qt512/bin/qmake chatterino.pro
- /usr/local/opt/qt/bin/qmake .. && make -j8 - make -j4
- mkdir app - export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/opt/qt512/lib/
- mv chatterino.app app/ - cp ./resources/icon.png ./chatterino.png
- "create-dmg \ - wget -nv https://github.com/probonopd/linuxdeployqt/releases/download/6/linuxdeployqt-6-x86_64.AppImage && chmod a+x linuxdeployqt-6-x86_64.AppImage
--volname Chatterino2 \ - ./linuxdeployqt-6-x86_64.AppImage ./resources/chatterino.desktop -no-translations -unsupported-allow-new-glibc -appimage -qmake=/opt/qt512/bin/qmake
--volicon ../resources/chatterino.icns \ - mv Chatterino-*-x86_64.AppImage Chatterino-x86_64.AppImage
--icon-size 50 \
--app-drop-link 0 0 \
chatterino-osx.dmg app/"
before_deploy: deploy:
- git config --global user.email "builds@travis-ci.com" skip_cleanup: true
- git config --global user.name "Travis CI" provider: releases
- export GIT_TAG=nightly-build api_key:
- git tag $GIT_TAG -f secure: ZzS55wlwtLAVEBaDDMqiuqZwuTpvLbNnaNw0enfiqpjWT7hgbbp/SBw2rbYIkVqm7tBHCLnEzKto6p4Gz6ROo0gGACARmx7EwIloX18rMCuBWygNHRyVruDSlmEOLWRqYByDbUdCkKhYr9aegnkm7zhzCmSBCTW28/uVlxM2bTHIgqKEpB4k1W8OqKdJDxqZKeF4r7nDNSOx5ylhpiK+WNFK8yfiaF1SQlSwsdv9o1RkbJlew7iigvHvEM2kDMkiMWYlJ2khkUWVCVQDQGe4/ya5pgTIHDLu5sZuclp5zhgfDf1U3STvsbQWvxJfsmCId7IQHJ83OSFeoUf6y849i3GMqlNi3aXrxEx0fi0dILQ76/Sj246FPMA4kC0/W49uaxqD784wFuJDjSWeWwi/NPoJ/gz0mGZy+08BoztOGqqOKjJJdESBYTio71N8VcK09zQ0LjXRmX+g3BbrK6a2F3hiMKeuYwdaN2/KdMMoqFDau6L3fXLdpcHKdJC8K/yzJtyyIe0CRB2nj8sZLHfxDwoRm7gOTDXq1zPL7CP9cCwCnCR6nm3CqUW/CnSWuMKpSoQRlP5EBI7zzYT2/tZc/vat5nob7Xif6yFF9fh/VHx4tC6zsfkA1nPPN3+QpdVInRo7dCVxtTqey5FdVjSiv7n11TrFhZ7+Fr5x6CZqa58=
file: "Chatterino-x86_64.AppImage"
prerelease: true
on:
branch: master
deploy: - os: osx
skip_cleanup: true osx_image: xcode10.2
provider: releases name: xcode Build
api_key:
secure: ZzS55wlwtLAVEBaDDMqiuqZwuTpvLbNnaNw0enfiqpjWT7hgbbp/SBw2rbYIkVqm7tBHCLnEzKto6p4Gz6ROo0gGACARmx7EwIloX18rMCuBWygNHRyVruDSlmEOLWRqYByDbUdCkKhYr9aegnkm7zhzCmSBCTW28/uVlxM2bTHIgqKEpB4k1W8OqKdJDxqZKeF4r7nDNSOx5ylhpiK+WNFK8yfiaF1SQlSwsdv9o1RkbJlew7iigvHvEM2kDMkiMWYlJ2khkUWVCVQDQGe4/ya5pgTIHDLu5sZuclp5zhgfDf1U3STvsbQWvxJfsmCId7IQHJ83OSFeoUf6y849i3GMqlNi3aXrxEx0fi0dILQ76/Sj246FPMA4kC0/W49uaxqD784wFuJDjSWeWwi/NPoJ/gz0mGZy+08BoztOGqqOKjJJdESBYTio71N8VcK09zQ0LjXRmX+g3BbrK6a2F3hiMKeuYwdaN2/KdMMoqFDau6L3fXLdpcHKdJC8K/yzJtyyIe0CRB2nj8sZLHfxDwoRm7gOTDXq1zPL7CP9cCwCnCR6nm3CqUW/CnSWuMKpSoQRlP5EBI7zzYT2/tZc/vat5nob7Xif6yFF9fh/VHx4tC6zsfkA1nPPN3+QpdVInRo7dCVxtTqey5FdVjSiv7n11TrFhZ7+Fr5x6CZqa58= addons:
file: "chatterino-osx.dmg" homebrew:
prerelease: true packages:
on: - boost
branch: master - openssl
- rapidjson
- qt
- p7zip
- create-dmg
compiler: clang
script:
- mkdir build && cd build
- /usr/local/opt/qt/bin/qmake .. && make -j8
- mkdir app
- mv chatterino.app app/
- "create-dmg \
--volname Chatterino2 \
--volicon ../resources/chatterino.icns \
--icon-size 50 \
--app-drop-link 0 0 \
chatterino-osx.dmg app/"
deploy:
skip_cleanup: true
provider: releases
api_key:
secure: ZzS55wlwtLAVEBaDDMqiuqZwuTpvLbNnaNw0enfiqpjWT7hgbbp/SBw2rbYIkVqm7tBHCLnEzKto6p4Gz6ROo0gGACARmx7EwIloX18rMCuBWygNHRyVruDSlmEOLWRqYByDbUdCkKhYr9aegnkm7zhzCmSBCTW28/uVlxM2bTHIgqKEpB4k1W8OqKdJDxqZKeF4r7nDNSOx5ylhpiK+WNFK8yfiaF1SQlSwsdv9o1RkbJlew7iigvHvEM2kDMkiMWYlJ2khkUWVCVQDQGe4/ya5pgTIHDLu5sZuclp5zhgfDf1U3STvsbQWvxJfsmCId7IQHJ83OSFeoUf6y849i3GMqlNi3aXrxEx0fi0dILQ76/Sj246FPMA4kC0/W49uaxqD784wFuJDjSWeWwi/NPoJ/gz0mGZy+08BoztOGqqOKjJJdESBYTio71N8VcK09zQ0LjXRmX+g3BbrK6a2F3hiMKeuYwdaN2/KdMMoqFDau6L3fXLdpcHKdJC8K/yzJtyyIe0CRB2nj8sZLHfxDwoRm7gOTDXq1zPL7CP9cCwCnCR6nm3CqUW/CnSWuMKpSoQRlP5EBI7zzYT2/tZc/vat5nob7Xif6yFF9fh/VHx4tC6zsfkA1nPPN3+QpdVInRo7dCVxtTqey5FdVjSiv7n11TrFhZ7+Fr5x6CZqa58=
file: "chatterino-osx.dmg"
prerelease: true
on:
branch: master

View file

@ -61,7 +61,7 @@ exists( $$OUT_PWD/conanbuildinfo.pri ) {
LIBS += -lGdi32 LIBS += -lGdi32
} }
else{ else{
include(lib/boost.pri) include(lib/boost.pri)
include(lib/openssl.pri) include(lib/openssl.pri)
} }