diff --git a/.appveyor.yml b/.appveyor.yml index 12e56773..fd8b1f2e 100644 --- a/.appveyor.yml +++ b/.appveyor.yml @@ -38,6 +38,7 @@ install: - cmd: powershell -Command "[Net.ServicePointManager]::SecurityProtocol = [Net.SecurityProtocolType]::Tls12; wget %NINJA_URL% -OutFile ninja.zip; Expand-Archive .\ninja.zip -DestinationPath ." # Artifacts - cmd: set "ARTIFACT_NAME=Cutter_%ARCH%" + - cmd: if not %APPVEYOR_REPO_TAG% equ true ( set "ARTIFACT_NAME=%ARTIFACT_NAME%-nightly" && set "DEPLOY_RELEASE=nightly" ) else ( set "DEPLOY_RELEASE=%APPVEYOR_REPO_TAG_NAME%" ) - cmd: if defined MESON ( set "ARTIFACT_PATH=dist_%ARCH%" ) else ( set "ARTIFACT_PATH=build_%ARCH%\cutter" ) before_build: @@ -79,20 +80,17 @@ artifacts: deploy: description: 'Cutter binaries' provider: GitHub + release: "%DEPLOY_RELEASE%" auth_token: secure: 2SmsqS2RaX2N5c9UwUcfBwNmMX64FfPAZFShLyxIkZXiC8vLaYCHToWxBYEuWRSk artifact: "%ARTIFACT_NAME%" - draft: true - prerelease: false + draft: false + prerelease: true + force_update: true on: - appveyor_repo_tag: true DEPLOY: true for: - - - branches: + - branches: only: - master - - - skip_non_tags: true - diff --git a/.travis.yml b/.travis.yml index c36f0031..03aeb97f 100644 --- a/.travis.yml +++ b/.travis.yml @@ -46,6 +46,7 @@ install: - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then source scripts/prepare_python_linux.sh ; fi before_script: + - if [[ "$TRAVIS_TAG" == "" ]]; then export TAGNAME="nightly" && export NIGHTLY="-nightly" else export TAGNAME="$TRAVIS_TAG" && export NIGHTLY="" ; fi - git submodule init ; git submodule update - cd radare2 - if [[ "$TRAVIS_OS_NAME" == "linux" ]]; then @@ -84,7 +85,7 @@ after_success: mkdir image && cp -a Cutter.app image/ && export VOL_NAME="Cutter v${CUTTER_VERSION}" && export DMG_TMP_FILE="Cutter-v$CUTTER_VERSION-x64.macOS-tmp.dmg" && - export DMG_FILE="Cutter-v$CUTTER_VERSION-x64.macOS.dmg" && + export DMG_FILE="Cutter-v$CUTTER_VERSION-x64$NIGHTLY.macOS.dmg" && export SIZE=`du -sh "image" | sed 's/\([0-9\.]*\)M\(.*\)/\1/'` && export SIZE=`echo "${SIZE} + 10.0" | bc | awk '{print int($1+0.5)}'` && hdiutil create -srcfolder image -volname "${VOL_NAME}" -fs HFS+ -fsargs "-c c=64,a=16,e=16" -format UDRW -size ${SIZE}M "$DMG_TMP_FILE" && @@ -105,7 +106,7 @@ after_success: LD_LIBRARY_PATH=$CUSTOM_PYTHON_PREFIX/lib ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -bundle-non-qt-libs -no-strip -exclude-libs=libnss3.so,libnssutil3.so -ignore-glob=usr/lib/python3.6/** -verbose=2 && LD_LIBRARY_PATH=$CUSTOM_PYTHON_PREFIX/lib ./linuxdeployqt*.AppImage ./appdir/usr/share/applications/*.desktop -appimage -no-strip -exclude-libs=libnss3.so,libnssutil3.so -ignore-glob=usr/lib/python3.6/** -verbose=2 && find ./appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq && - export APPIMAGE_FILE="Cutter-v$CUTTER_VERSION-x64.Linux.AppImage" && + export APPIMAGE_FILE="Cutter-v$CUTTER_VERSION-x64$NIGHTLY.Linux.AppImage" && mv Cutter-x86_64.AppImage "$APPIMAGE_FILE" && export FILE_TO_UPLOAD="$APPIMAGE_FILE" ; fi @@ -115,12 +116,11 @@ deploy: provider: releases draft: false prerelease: true - tag_name: $TRAVIS_TAG + tag_name: $TAGNAME api_key: secure: ZXuSX8JXyL0HlJvSIda3ftMkvYsrxoWDcWm2LxO+f0uNFghCHNnISuH/btdipn2mjCBaBQl6/1IK5cg/AZ5OSkiaVsJJqY8kkPsZvR8K+k4oarsr2ApetlLZiZWtydC3J+UyNhsgCt4iuYPsvusANFPZBpVmqT+A5CHS7aPIqP00awbkJYG1uOENe2XVZ0vyotBqU0E7A9f8UO5ps0+qysS8W+NDB+CGLgKLeBfCk3U+IYKGYXcv66xCmSSZ5f7IVIXEjG4voFHGp9XLRY2R/iJgiKQKDbu519vUB3iKPzmLTB/Q9bNz4VMZCREa4SHaLDen730fMHbfm6ZhGZDzXg1DgZoh6RHptWf0WjcHTr1ch8ajpnBMxh/qmoRpaS00FJQMraMT3Il38ekYd+hOhsP58Bj1Db2vjBKopGEHGmVyFQZKuynrdKmpmY+kRNUT3QerIsiAHwHV2QXnMARHYXJrM0T7LNACa2mhiwQD2vNIqLRieIbHbSWgDUrTVTDeII23AAHCzD0YxcCAjSExjun/rc9dJjevgCoBpTM/NHPLCW4big1myx+vRQGPNdlf+dI7igm6bPVWB7znp5uXlI8q5irvqTVtRSvKbcaeDWOz/ki7QgOzaxmGFtaw30hxeY0wFlnSMXc8m42udWLkp/l0b4L0hcoaMTc1TvVU0i4= file: - "${FILE_TO_UPLOAD}" on: - tags: true condition: $DEPLOY = 1