Skip to content

Commit a00c3c1

Browse files
committed
refactor: resolve bundle version from the AppImage recipe
1 parent f48fdfb commit a00c3c1

File tree

1 file changed

+5
-1
lines changed

1 file changed

+5
-1
lines changed

AppImageBuilder.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,14 +12,18 @@ script:
1212
- mkdir -p $APPDIR/usr/lib/appimagekit/
1313
- cp squashfs-root/usr/lib/appimagekit/mksquashfs $APPDIR/usr/lib/appimagekit/
1414

15+
# find bundle version
16+
- PACKAGE_VERSION=$(grep -Po 'version="\K((\d|\.)+)' setup.py)
17+
- echo APPIMAGE_BUILDER_VERSION="$PACKAGE_VERSION-$(git rev-parse --short HEAD)" >> $BUILDER_ENV
18+
1519
AppDir:
1620
path: ./AppDir
1721

1822
app_info:
1923
id: org.appimage-crafters.appimage-builder
2024
name: appimage-builder
2125
icon: appimage-builder
22-
version: !ENV ${APPIMAGE_BUILDER_VERSION}
26+
version: '{{APPIMAGE_BUILDER_VERSION}}'
2327
# Set the python executable as entry point
2428
exec: usr/bin/python3
2529
# Set the application main script path as argument. Use '$@' to forward CLI parameters

0 commit comments

Comments
 (0)