Browse Source

AppImage

pull/1520/head
probonopd GitHub 5 years ago
parent
commit
846a3d1be2
No known key found for this signature in database GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 50 additions and 0 deletions
  1. +43
    -0
      .travis.yml
  2. +7
    -0
      res/rack.desktop

+ 43
- 0
.travis.yml View File

@@ -0,0 +1,43 @@
language: cpp
compiler: gcc
sudo: require
dist: xenial

install:
- sudo apt-get -y install cmake curl xorg-dev libglu1-mesa-dev freeglut3-dev gdb jq libasound-dev libasound2-dev libgl1-mesa-dev libglew-dev libglu1-mesa-dev libgtk2.0-dev libjack-jackd2-dev libjansson-dev libx11-dev libxcursor-dev libxi-dev libxinerama-dev libxrandr-dev libzip-dev mesa-common-dev zlib1g-dev libglfw3-dev

script:
# Build Rack
- git submodule update --init --recursive
- sed -i -e 's|--with-jack|--without-jack|g' dep/Makefile
- make dep -j$(nproc)
- make -j$(nproc)
# make INSTALL_ROOT=appdir -j$(nproc) install ; find appdir/ # https://github.com/VCVRack/Rack/issues/1515
- mkdir -p appdir/usr/bin ; cp Rack appdir/usr/bin/rack ; strip appdir/usr/bin/rack # FIXME, see above
- mkdir -p appdir/usr/share/icons/512x512/apps ; cp res/icon.png appdir/usr/share/icons/512x512/apps/rack.png # FIXME, see above
- mkdir -p appdir/usr/share/applications/ ; cp res/rack.desktop appdir/usr/share/applications/ # FIXME, see above
- cp -r res/ appdir/usr/ # FIXME, see above; normally this should go to appdir/usr/share/rack/
- find appdir/
# Only then can we build the plugins
- cd plugins/
- git clone https://github.com/VCVRack/Fundamental
- cd Fundamental
- git submodule update --init --recursive
- make dep -j$(nproc)
- make -j$(nproc)
- make dist
- cd ../../
- find . -name 'Fundamental*.zip' -exec cp {} ./appdir/usr/ \;
- wget -c -nv "https://github.com/AppImage/AppImageKit/releases/download/continuous/AppRun-x86_64" -O ./appdir/AppRun ; chmod +x ./appdir/AppRun # FIXME: Would not be needed if res was loaded from a path relative to the mani binary
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
- chmod a+x linuxdeployqt-continuous-x86_64.AppImage
- ./linuxdeployqt-continuous-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage

after_success:
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- bash upload.sh Rack*.AppImage*
branches:
except:
- # Do not build tags that we create when we upload to GitHub Releases
- /^(?i:continuous)/

+ 7
- 0
res/rack.desktop View File

@@ -0,0 +1,7 @@
[Desktop Entry]
Name=Rack
Comment=Open-source virtual modular synthesizer
Exec=rack
Icon=rack
Type=Application
Categories=AudioVideo;

Loading…
Cancel
Save