mirror of
https://github.com/leozide/leocad
synced 2024-11-17 07:47:55 +01:00
Update appveyor.yml
This commit is contained in:
parent
971f7c9901
commit
aa38fc04a2
1 changed files with 22 additions and 9 deletions
31
appveyor.yml
31
appveyor.yml
|
@ -74,15 +74,28 @@ for:
|
|||
- make
|
||||
|
||||
after_build:
|
||||
- cp build/release/leocad .
|
||||
- export VERSION=$(git rev-parse --short HEAD)
|
||||
- zip LeoCAD-Linux-$VERSION-arm64.zip leocad
|
||||
- 'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt'
|
||||
- 'export REMOTE=$(grep -Po ''(?<=: \")(([a-z0-9])\w+)(?=\")'' -m 1 repo.txt)'
|
||||
- export LOCAL=$(git rev-parse HEAD)
|
||||
- if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; travis_terminate 0; fi;
|
||||
- appveyor DownloadFile https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||
- bash upload.sh LeoCAD*.zip
|
||||
- make install INSTALL_ROOT=AppDir
|
||||
- appveyor DownloadFile https://github.com/leozide/leocad/releases/download/v19.07.1/Library-20.03.zip -FileName library.zip
|
||||
- unzip library.zip
|
||||
- mkdir -p AppDir/usr/share/leocad
|
||||
- mv library.bin AppDir/usr/share/leocad/library.bin
|
||||
- cp qt/leocad.desktop AppDir/leocad.desktop
|
||||
- cp tools/icon/256x256/apps/leocad.png AppDir/leocad.png
|
||||
- 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)
|
||||
- ./linuxdeployqt*.AppImage ./AppDir/usr/share/applications/*.desktop -bundle-non-qt-libs
|
||||
- ./linuxdeployqt*.AppImage --appimage-extract
|
||||
- export PATH=$(readlink -f ./squashfs-root/usr/bin/):$PATH
|
||||
- ./squashfs-root/usr/bin/appimagetool AppDir/
|
||||
- mv ./LeoCAD-$VERSION-x86_64.AppImage ./LeoCAD-Linux-$VERSION-x86_64.AppImage
|
||||
- 'curl -s -H "Authorization: token $GITHUB_TOKEN" https://api.github.com/repos/leozide/leocad/commits/master -o repo.txt'
|
||||
- 'export REMOTE=$(grep -Po ''(?<=: \")(([a-z0-9])\w+)(?=\")'' -m 1 repo.txt)'
|
||||
- export LOCAL=$(git rev-parse HEAD)
|
||||
- if [[ "$REMOTE" != "$LOCAL" ]]; then echo "Build no longer current. $REMOTE vs $LOCAL - aborting upload."; exit 0; fi;
|
||||
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
|
||||
- bash upload.sh LeoCAD*.AppImage*
|
||||
|
||||
-
|
||||
matrix:
|
||||
|
|
Loading…
Reference in a new issue