Skip to content

Commit

Permalink
Refs #14, travis releases and less verbose testing
Browse files Browse the repository at this point in the history
  • Loading branch information
stdevPavelmc committed Nov 22, 2019
1 parent a1a09f9 commit fb90a6b
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 26 deletions.
41 changes: 24 additions & 17 deletions .travis.yml
Expand Up @@ -28,30 +28,37 @@ script:
- make
- sudo make install

# success, prepare the appimage build
after_script:
# install deps
# 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
- chmod +x 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 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
# create the AppImage file
- ./appimagetool-x86_64.AppImage AppDir
# remove the tools
- rm linux*Image
- rm appimage*Image
- ./linuxdeploy-x86_64.AppImage --appdir=AppDir --plugin qt --output appimage
# listing the result
- ls -lh *.AppImage

# notifications (only via telegram)
notifications:
email: true
#webhooks: https://fathomless-fjord-24024.herokuapp.com/notify

# no deploy section for now.
# deploy to Github
deploy:
# deploy on linux
- provider: releases
api_key: $OAUTH
file_glob: true
draft: true
overwrite: true
skip_cleanup: true
on:
tags: true
file:
- "Mystiq*AppImage"
17 changes: 8 additions & 9 deletions complete_appdir.sh
@@ -1,18 +1,17 @@
#!/bin/bash

# ffmpeg bins
cp -v /usr/bin/ffmpeg AppDir/usr/bin

# sox
cp -v /usr/bin/sox AppDir/usr/bin
mkdir -pv AppDir/usr/lib/mime/packages
cp -v /usr/lib/mime/packages/sox AppDir/usr/lib/mime/packages/sox
# 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 -pv "$target"
mkdir -p "$target"
cp -v icons/mystiq_$r.png "$target/mystiq.png"
done
done

0 comments on commit fb90a6b

Please sign in to comment.