diff --git a/.gitignore b/.gitignore new file mode 100644 index 0000000..c1a50b2 --- /dev/null +++ b/.gitignore @@ -0,0 +1,3 @@ +build + +.DS_Store \ No newline at end of file diff --git a/.travis.yml b/.travis.yml index e9720a2..7718dc2 100644 --- a/.travis.yml +++ b/.travis.yml @@ -1,5 +1,8 @@ language: cpp +git: + depth: false + matrix: include: - os: osx @@ -17,7 +20,7 @@ script: before_deploy: - mv ${DEPLOY_DIR}/bin/spectral.dmg ./ -- sed -i -e "s/TRAVIS_BUILD_NUMBER/${TRAVIS_BUILD_NUMBER}/g" .ci/bintray-release.json +- sed -i -e "s/TRAVIS_BUILD_NUMBER/0.0.0.$(git rev-list --count HEAD)/g" .ci/bintray-release.json deploy: - provider: bintray diff --git a/BUILD.md b/BUILD.md index 874234e..04083a0 100644 --- a/BUILD.md +++ b/BUILD.md @@ -3,6 +3,7 @@ 1. Update Qt to v5.10+ brew install qt5 + brew link qt5 --force 2. Download Spectral source @@ -16,8 +17,8 @@ 4. Build Spectral - /usr/local/Cellar/qt5/5.10.1/bin/qmake - make + qmake ../spectral.pro + make -j4 5. Open Spectral diff --git a/macOS/Info.plist b/macOS/Info.plist new file mode 100644 index 0000000..930df5f --- /dev/null +++ b/macOS/Info.plist @@ -0,0 +1,24 @@ + + + + + CFBundleExecutable + ${EXECUTABLE_NAME} + CFBundleIconFile + ${ASSETCATALOG_COMPILER_APPICON_NAME} + CFBundleIdentifier + ${PRODUCT_BUNDLE_IDENTIFIER} + CFBundleShortVersionString + + CFBundleVersion + + CFBundlePackageType + APPL + LSMinimumSystemVersion + 10.11 + NSPrincipalClass + NSApplication + NSSupportsAutomaticGraphicsSwitching + + + diff --git a/org.eu.encom.spectral.appdata.xml b/org.eu.encom.spectral.appdata.xml index e172c90..3c6d87d 100644 --- a/org.eu.encom.spectral.appdata.xml +++ b/org.eu.encom.spectral.appdata.xml @@ -13,18 +13,17 @@ Spectral is a glossy cross-platform client for Matrix, the decentralized communication protocol for instant messaging.

- The source code is generally available at https://gitlab.com/b0/spectral + The source code is available at https://gitlab.com/b0/spectral

https://gitlab.com/b0/spectral https://gitlab.com/b0/spectral/issues - https://doc.spectral.encom.eu.org + https://b0.gitlab.io/spectral-doc Matrix Internet - Qt Black Hat @@ -37,9 +36,17 @@ https://gitlab.com/b0/spectral/raw/master/screenshots/1.png - Room Config + Room Timeline https://gitlab.com/b0/spectral/raw/master/screenshots/2.png + + Room Config + https://gitlab.com/b0/spectral/raw/master/screenshots/3.png + + + Settings + https://gitlab.com/b0/spectral/raw/master/screenshots/4.png + @@ -48,6 +55,7 @@ + diff --git a/spectral.pro b/spectral.pro index 679008b..ec9cffb 100644 --- a/spectral.pro +++ b/spectral.pro @@ -103,7 +103,15 @@ win32 { } mac { + QMAKE_TARGET_BUNDLE_PREFIX = org.eu.encom + + VERSION = 0.0.0.$$system(git rev-list --count HEAD) + INFO_PLIST_PATH = $$shell_quote($${OUT_PWD}/$${TARGET}.app/Contents/Info.plist) + QMAKE_POST_LINK += /usr/libexec/PlistBuddy -c \"Set :CFBundleVersion $${VERSION}\" $${INFO_PLIST_PATH} + QMAKE_POST_LINK += && /usr/libexec/PlistBuddy -c \"Set :CFBundleShortVersionString $${VERSION}\" $${INFO_PLIST_PATH} + ICON = assets/img/icon.icns + QMAKE_INFO_PLIST = macOS/Info.plist } HEADERS += \