-
-
Notifications
You must be signed in to change notification settings - Fork 78
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
114 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
#!/bin/bash | ||
|
||
# pass the tools to the image | ||
TOOLS="ffmpeg ffplay ffprobe mplayer sox" | ||
for s in `echo "$TOOLS" | xargs` ; do | ||
echo "Installing media tools: $s" | ||
cp -v /usr/bin/$s AppDir/usr/bin | ||
done | ||
|
||
# copy all the icons | ||
mkdir -p AppDir/usr/share/icons/hicolor | ||
RES=`cd icons && ls | grep mystiq_| cut -d "_" -f 2 | cut -d "." -f 1` | ||
for r in `echo $RES | xargs` ; do | ||
target="AppDir/usr/share/icons/hicolor/$r/apps" | ||
mkdir -p "$target" | ||
cp -v icons/mystiq_$r.png "$target/mystiq.png" | ||
done |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,65 @@ | ||
# language target | ||
language: cpp | ||
compiler: gcc | ||
|
||
# main build matrix | ||
matrix: | ||
include: | ||
- name: "Bionic Ubuntu Linux" | ||
os: linux | ||
dist: bionic | ||
sudo: required | ||
env: TARGETOS=bionic-linux | ||
|
||
# install, install QT5.12.3 from ppa | ||
install: | ||
- sudo add-apt-repository -y ppa:beineri/opt-qt-5.12.3-bionic | ||
- sudo apt update | ||
- sudo apt install build-essential g++ make ffmpeg sox mplayer libnotify-dev mesa-common-dev libglvnd-dev | ||
- sudo apt install qt-latest tree | ||
- echo "/opt/qt512/bin" | sudo tee /etc/xdg/qtchooser/default.conf | ||
- echo "/opt/qt512/lib" | sudo tee -a /etc/xdg/qtchooser/default.conf | ||
- qtchooser -print-env | ||
- qmake -v | ||
|
||
# build & test scripts | ||
script: | ||
- qmake mystiq.pro | ||
- make | ||
- sudo make install | ||
|
||
# notifications (only via telegram) | ||
notifications: | ||
email: true | ||
#webhooks: https://fathomless-fjord-24024.herokuapp.com/notify | ||
|
||
# make the AppImage bundle | ||
before_deploy: | ||
# install AppImage toolchain | ||
- wget https://github.com/linuxdeploy/linuxdeploy/releases/download/continuous/linuxdeploy-x86_64.AppImage | ||
- wget https://github.com/linuxdeploy/linuxdeploy-plugin-qt/releases/download/continuous/linuxdeploy-plugin-qt-x86_64.AppImage | ||
- wget https://github.com/AppImage/AppImageKit/releases/download/continuous/appimagetool-x86_64.AppImage | ||
- chmod +x *.AppImage | ||
# build the AppDir | ||
- make install INSTALL_ROOT=AppDir | ||
# add extra tools | ||
- ./complete_appdir.sh | ||
# run the linuxdeploy script | ||
- ./linuxdeploy-x86_64.AppImage --appdir=AppDir --plugin qt --output appimage | ||
# listing the result | ||
- ls -lh *.AppImage | ||
|
||
# deploy to Github | ||
deploy: | ||
# deploy on linux | ||
- provider: releases | ||
api_key: $OAUTHTOKEN | ||
file_glob: true | ||
draft: true | ||
overwrite: true | ||
skip_cleanup: true | ||
on: | ||
repo: llamaret/MystiQ | ||
tags: true | ||
file: "Mystiq*AppImage" | ||
|