mirror of
https://github.com/qelectrotech/qelectrotech-source-mirror.git
synced 2025-12-18 13:30:34 +01:00
Snap: Modify displayedVersion to reflect snap build & set grade: stable
+ add subversion to build-packages git-svn-id: svn+ssh://svn.tuxfamily.org/svnroot/qet/qet/trunk@5945 bfdf4180-ca20-0410-9c96-a3a8aa849046
This commit is contained in:
@@ -8,7 +8,7 @@ description: |
|
|||||||
QElectroTech, or QET in short, is a libre and open source desktop application
|
QElectroTech, or QET in short, is a libre and open source desktop application
|
||||||
to create diagrams and schematics.
|
to create diagrams and schematics.
|
||||||
|
|
||||||
grade: devel
|
grade: stable
|
||||||
confinement: strict
|
confinement: strict
|
||||||
|
|
||||||
layout:
|
layout:
|
||||||
@@ -122,8 +122,11 @@ parts:
|
|||||||
revision=$(svn --xml info | grep revision=\" | tail -1 | cut -d\" -f2)
|
revision=$(svn --xml info | grep revision=\" | tail -1 | cut -d\" -f2)
|
||||||
fi
|
fi
|
||||||
version=$(cat sources/qet.h |grep "const QString version" | cut -d\" -f2 | cut -d\" -f1)
|
version=$(cat sources/qet.h |grep "const QString version" | cut -d\" -f2 | cut -d\" -f1)
|
||||||
tag=$(cat sources/qet.h | grep displayedVersion | cut -d\" -f2 | cut -d\" -f1)
|
displayed_version=$(cat sources/qet.h | grep displayedVersion | cut -d\" -f2 | cut -d\" -f1)
|
||||||
snapcraftctl set-version "$tag~svn$revision"
|
snap_version="$displayed_version~svn$revision"
|
||||||
|
modified_displayed_version=$snap_version".snap"
|
||||||
|
sed -i -E "s|const QString displayedVersion =.*|const QString displayedVersion =\"$modified_displayed_version\";|" sources/qet.h
|
||||||
|
snapcraftctl set-version "$snap_version"
|
||||||
override-stage: |
|
override-stage: |
|
||||||
snapcraftctl stage
|
snapcraftctl stage
|
||||||
# patch desktop file with correct icon path
|
# patch desktop file with correct icon path
|
||||||
@@ -135,7 +138,9 @@ parts:
|
|||||||
- libqt5svg5-dev
|
- libqt5svg5-dev
|
||||||
- libkf5widgetsaddons-dev
|
- libkf5widgetsaddons-dev
|
||||||
- libkf5coreaddons-dev
|
- libkf5coreaddons-dev
|
||||||
|
- git
|
||||||
- git-svn
|
- git-svn
|
||||||
|
- subversion
|
||||||
stage-packages:
|
stage-packages:
|
||||||
- qtwayland5
|
- qtwayland5
|
||||||
- qt5-gtk-platformtheme
|
- qt5-gtk-platformtheme
|
||||||
|
|||||||
Reference in New Issue
Block a user