mirror of
https://github.com/leozide/leocad.git
synced 2026-10-26 22:10:32 +00:00
Build release packages from tags
This commit is contained in:
1 parent
94f32bd0ed
commit
5196355d4a
1 file changed
+5
-5
+5
-5
@@ -1,5 +1,5 @@
|
||||
version: '{branch}.{build}'
|
||||
skip_tags: true
|
||||
skip_tags: false
|
||||
image:
|
||||
- Ubuntu1604
|
||||
- macOS
|
||||
@@ -23,8 +23,7 @@ for:
|
||||
before_build:
|
||||
- call "C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Auxiliary\Build\vcvars64.bat"
|
||||
- set PATH=C:\Qt\6.9\msvc2022_64\bin;%PATH%
|
||||
- git rev-parse --short HEAD > version.txt
|
||||
- set /p VERSION= < version.txt
|
||||
- if defined APPVEYOR_REPO_TAG_NAME (set VERSION=%APPVEYOR_REPO_TAG_NAME:v=%) else (git rev-parse --short HEAD > version.txt && set /p VERSION= < version.txt)
|
||||
- qmake -v
|
||||
- qmake -tp vc
|
||||
|
||||
@@ -90,7 +89,7 @@ for:
|
||||
- appveyor DownloadFile https://github.com/probonopd/linuxdeployqt/releases/download/continuous/linuxdeployqt-continuous-x86_64.AppImage
|
||||
- chmod a+x linuxdeployqt*.AppImage
|
||||
- unset QTDIR; unset QT_PLUGIN_PATH ; unset LD_LIBRARY_PATH
|
||||
- export VERSION=$(git rev-parse --short HEAD)
|
||||
- if [ -n "$APPVEYOR_REPO_TAG_NAME" ]; then export VERSION="${APPVEYOR_REPO_TAG_NAME#v}"; else export VERSION=$(git rev-parse --short HEAD); fi
|
||||
- ./linuxdeployqt*.AppImage ./AppDir/usr/share/applications/*.desktop -bundle-non-qt-libs
|
||||
- ./linuxdeployqt*.AppImage --appimage-extract
|
||||
- export PATH=$(readlink -f ./squashfs-root/usr/bin/):$PATH
|
||||
@@ -126,7 +125,8 @@ for:
|
||||
after_build:
|
||||
- cd build/release
|
||||
- macdeployqt LeoCAD.app -dmg
|
||||
- mv LeoCAD.dmg LeoCAD-macOS-$(git rev-parse --short HEAD).dmg
|
||||
- if [ -n "$APPVEYOR_REPO_TAG_NAME" ]; then export VERSION="${APPVEYOR_REPO_TAG_NAME#v}"; else export VERSION=$(git rev-parse --short HEAD); fi
|
||||
- mv LeoCAD.dmg LeoCAD-macOS-$VERSION.dmg
|
||||
- 'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt'
|
||||
- "export REMOTE=$(awk -F'\"' '/\"sha\"[[:space:]]*:/ { print $(NF-1); exit }' repo.txt)"
|
||||
- export LOCAL=$(git rev-parse HEAD)
|
||||
|
||||
Reference in new issue
Block a user