Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
swl-x
MystiQ
Commits
cfb3eb25
Unverified
Commit
cfb3eb25
authored
Nov 27, 2019
by
Maikel Llamaret Heredia
Committed by
GitHub
Nov 27, 2019
Browse files
Add files via upload
parent
17ec00f4
Changes
3
Hide whitespace changes
Inline
Side-by-side
.travis.yml
View file @
cfb3eb25
...
...
@@ -16,7 +16,7 @@ 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
-
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
...
...
@@ -26,10 +26,40 @@ install:
script
:
-
qmake mystiq.pro
-
make
-
sudo make install
# notifications (only via telegram)
notifications
:
email
:
true
#webhooks: https://fathomless-fjord-24024.herokuapp.com/notify
# no deploy section for now.
# 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"
complete_appdir.sh
0 → 100644
View file @
cfb3eb25
#!/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
travis.yml
0 → 100644
View file @
cfb3eb25
# 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"
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment