Skip to content

Commit d4314da

Browse files
committed
build fix
1 parent db48707 commit d4314da

File tree

1 file changed

+11
-4
lines changed

1 file changed

+11
-4
lines changed

build-appimage.sh

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -36,10 +36,17 @@ sed 's|Icon=tic80|Icon=tic80.png|' build/linux/tic80.desktop.in > "$APPDIR/usr/s
3636
cp build/linux/tic80.png "$APPDIR/usr/share/icons/hicolor/256x256/apps/"
3737

3838
# Configure and copy metainfo
39-
sed -e "s/@PROJECT_VERSION@/$(grep VERSION_MAJOR cmake/version.cmake | cut -d'"' -f2).$(grep VERSION_MINOR cmake/version.cmake | cut -d'"' -f2).$(grep VERSION_REVISION cmake/version.cmake | cut -d'"' -f2)/g" \
40-
-e "s/@VERSION_YEAR@/$(date +%Y)/g" \
41-
-e "s/@VERSION_MONTH@/$(date +%m)/g" \
42-
-e "s/@VERSION_DAY@/$(date +%d)/g" \
39+
VERSION_MAJOR=$(grep VERSION_MAJOR cmake/version.cmake | cut -d'"' -f2)
40+
VERSION_MINOR=$(grep VERSION_MINOR cmake/version.cmake | cut -d'"' -f2)
41+
VERSION_REVISION=$(grep VERSION_REVISION cmake/version.cmake | cut -d'"' -f2)
42+
VERSION_YEAR=$(date +%Y)
43+
VERSION_MONTH=$(date +%m)
44+
VERSION_DAY=$(date +%d)
45+
46+
sed -e "s/@PROJECT_VERSION@/$VERSION_MAJOR.$VERSION_MINOR.$VERSION_REVISION/g" \
47+
-e "s/@VERSION_YEAR@/$VERSION_YEAR/g" \
48+
-e "s/@VERSION_MONTH@/$VERSION_MONTH/g" \
49+
-e "s/@VERSION_DAY@/$VERSION_DAY/g" \
4350
build/linux/com.tic80.TIC_80.metainfo.xml.in > "$APPDIR/usr/share/metainfo/com.tic80.TIC_80.metainfo.xml"
4451

4552
# Create AppRun script

0 commit comments

Comments
 (0)