|
|
@ -1,9 +1,8 @@
|
|
|
|
if [ "$TRAVIS_EVENT_TYPE" = "push" ]&&[ "$TRAVIS_BRANCH" = "master" ]; then
|
|
|
|
GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
|
|
|
|
GITDATE="`git show -s --date=short --format='%ad' | sed 's/-//g'`"
|
|
|
|
GITREV="`git show -s --format='%h'`"
|
|
|
|
GITREV="`git show -s --format='%h'`"
|
|
|
|
mkdir -p artifacts
|
|
|
|
mkdir -p artifacts
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
|
|
|
|
if [ "$TRAVIS_OS_NAME" = "linux" -o -z "$TRAVIS_OS_NAME" ]; then
|
|
|
|
REV_NAME="citra-linux-${GITDATE}-${GITREV}"
|
|
|
|
REV_NAME="citra-linux-${GITDATE}-${GITREV}"
|
|
|
|
ARCHIVE_NAME="${REV_NAME}.tar.xz"
|
|
|
|
ARCHIVE_NAME="${REV_NAME}.tar.xz"
|
|
|
|
COMPRESSION_FLAGS="-cJvf"
|
|
|
|
COMPRESSION_FLAGS="-cJvf"
|
|
|
@ -11,7 +10,7 @@ if [ "$TRAVIS_EVENT_TYPE" = "push" ]&&[ "$TRAVIS_BRANCH" = "master" ]; then
|
|
|
|
|
|
|
|
|
|
|
|
cp build/src/citra/citra "$REV_NAME"
|
|
|
|
cp build/src/citra/citra "$REV_NAME"
|
|
|
|
cp build/src/citra_qt/citra-qt "$REV_NAME"
|
|
|
|
cp build/src/citra_qt/citra-qt "$REV_NAME"
|
|
|
|
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
|
|
elif [ "$TRAVIS_OS_NAME" = "osx" ]; then
|
|
|
|
REV_NAME="citra-osx-${GITDATE}-${GITREV}"
|
|
|
|
REV_NAME="citra-osx-${GITDATE}-${GITREV}"
|
|
|
|
ARCHIVE_NAME="${REV_NAME}.tar.gz"
|
|
|
|
ARCHIVE_NAME="${REV_NAME}.tar.gz"
|
|
|
|
COMPRESSION_FLAGS="-czvf"
|
|
|
|
COMPRESSION_FLAGS="-czvf"
|
|
|
@ -116,19 +115,18 @@ EOL
|
|
|
|
# Make the launching script executable
|
|
|
|
# Make the launching script executable
|
|
|
|
chmod +x ${REV_NAME_ALT}citra-qt.app/Contents/MacOS/citra-qt
|
|
|
|
chmod +x ${REV_NAME_ALT}citra-qt.app/Contents/MacOS/citra-qt
|
|
|
|
|
|
|
|
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Copy documentation
|
|
|
|
|
|
|
|
cp license.txt "$REV_NAME"
|
|
|
|
|
|
|
|
cp README.md "$REV_NAME"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$REV_NAME"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mv "$REV_NAME" nightly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7z a "$REV_NAME.7z" nightly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# move the compiled archive into the artifacts directory to be uploaded by travis releases
|
|
|
|
|
|
|
|
mv "$ARCHIVE_NAME" artifacts/
|
|
|
|
|
|
|
|
mv "$REV_NAME.7z" artifacts/
|
|
|
|
|
|
|
|
fi
|
|
|
|
fi
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# Copy documentation
|
|
|
|
|
|
|
|
cp license.txt "$REV_NAME"
|
|
|
|
|
|
|
|
cp README.md "$REV_NAME"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
tar $COMPRESSION_FLAGS "$ARCHIVE_NAME" "$REV_NAME"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
mv "$REV_NAME" nightly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
7z a "$REV_NAME.7z" nightly
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# move the compiled archive into the artifacts directory to be uploaded by travis releases
|
|
|
|
|
|
|
|
mv "$ARCHIVE_NAME" artifacts/
|
|
|
|
|
|
|
|
mv "$REV_NAME.7z" artifacts/
|
|
|
|