Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update linux-build.sh #50

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
22 changes: 13 additions & 9 deletions build/linux-build.sh
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
#!/bin/bash

# Find Qt
. /opt/qt510/bin/qt510-env.sh
if [ -f "/etc/debian_version" ]; then
sudo apt install build-essential libasound2-dev liblua5.1-dev libsdl1.2-dev \
libgl1-mesa-dev wine-dev libqt5opengl5-dev
fi

# check for deps
echo -n "Checking for dependencies package..."
if [ ! -d "deps" ]; then
if [ ! -d "../deps" ]; then
cd ..
echo "Fetching dependencies package..."
wget -q https://knob.phreneticappsllc.com/nesicide/nesicide-deps.tar.bz2
echo "Extracting dependencies package..."
tar -xjf nesicide-deps.tar.bz2
tar -xjf nesicide-deps.tar.bz2
rm -f nesicide-deps.tar.bz2
echo "Building dependencies..."
cd deps/rtmidi && qmake && make
else
echo "found."
fi

# add CONFIG+=debug to qmake to build debug.
echo Building NESICIDE...
( cd build/ide; qmake; make )
cd ide && qmake && make && cd ..
echo Building FamiTracker...
( cd build/nes-emulator; qmake; make )
cd nes-emulator && qmake && make && cd ..
echo Building FamiPlayer...
( cd build/famiplayer; qmake; make )
cd famiplayer && qmake && make && cd ..
echo Building NES Emulator...
( cd build/famitracker; qmake; make )
cd famitracker && qmake && make && cd ..

exit 0
12 changes: 9 additions & 3 deletions build/linux-deploy.sh
Original file line number Diff line number Diff line change
@@ -1,7 +1,12 @@
#!/bin/bash

if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root"
exit 1
fi

# Find Qt
. /opt/qt510/bin/qt510-env.sh
#. /opt/qt510/bin/qt510-env.sh

LIBDEPS="deps/rtmidi/release/librtmidi \
deps/qscintilla2/Qt4Qt5/libqscintilla2_qt5 \
Expand All @@ -14,10 +19,10 @@ DEPLOYS="apps/ide/release/nesicide \
apps/famiplayer/release/famiplayer \
apps/nes-emulator/release/nes-emulator"

TARGARGS="-verbose=0 -appimage -qmake=/opt/qt510/bin/qmake"
TARGARGS="-verbose=0 -appimage -qmake=/usr/bin/qmake -unsupported-allow-new-glibc"

unset QTDIR; unset QT_PLUGIN_PATH; unset LD_LIBRARY_PATH

echo 'OI! - pass "local" for a local install'
if [ "$1" == "local" ]; then
if [ ! -f "./linuxdeployqt-continuous-x86_64.AppImage" ]; then
wget -q -c "https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage"
Expand Down Expand Up @@ -48,4 +53,5 @@ elif [ "$1" == "remote" ]; then
rsync $TRAVIS_BUILD_DIR/{fami,nes}*.AppImage [email protected]:/var/www/html/nesicide/media/downloads/
fi

echo 'done'
exit 0