Skip to content

Commit

Permalink
Simpler version for AppImage and branch name in the continuous release
Browse files Browse the repository at this point in the history
The command `git rev-parse --abbrev-ref HEAD` is not returning the branch name
in the travis server, and for the version in AppImage filename it would be
enough to have the short commit id.

Note that these changes are branch dependant.

See issue #1092
  • Loading branch information
mgrojo committed Feb 6, 2021
1 parent ed72587 commit 216b5d0
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions .travis.yml
Original file line number Diff line number Diff line change
Expand Up @@ -60,15 +60,15 @@ script:
- cd ..
- wget -c -nv "https://github.com/probonopd/linuxdeployqt/releases/download/6/linuxdeployqt-6-x86_64.AppImage"
- chmod a+x linuxdeployqt-6-x86_64.AppImage
- export VERSION=$(printf "`git rev-parse --abbrev-ref HEAD`-`git rev-list HEAD --count`-` git -C . rev-parse --short HEAD`") #$(git rev-parse --short HEAD) # linuxdeployqt uses this for naming the file
- export VERSION=`git -C . rev-parse --short HEAD` # linuxdeployqt uses this for naming the file
- ./linuxdeployqt-6-x86_64.AppImage appdir/usr/share/applications/*.desktop -appimage


after_success:
- find appdir -executable -type f -exec ldd {} \; | grep " => /usr" | cut -d " " -f 2-3 | sort | uniq
- wget -c https://github.com/probonopd/uploadtool/raw/master/upload.sh
- chmod a+x upload.sh
- UPLOADTOOL_ISPRERELEASE=true UPLOADTOOL_SUFFIX=$VERSION ./upload.sh DB_Browser_for_SQLite*.AppImage*
- UPLOADTOOL_ISPRERELEASE=true UPLOADTOOL_SUFFIX=v3.12.x ./upload.sh DB_Browser_for_SQLite*.AppImage*

notifications:
email:
Expand Down

0 comments on commit 216b5d0

Please sign in to comment.