Move version.txt into the build folder

This commit is contained in:
Clayton Smith 2023-10-03 23:24:54 -04:00
parent 802ec772b7
commit 5149217580
5 changed files with 4 additions and 5 deletions

View File

@ -250,7 +250,7 @@ jobs:
run: xcrun stapler staple --verbose Gqrx.dmg
- name: Rename DMG
run: |
GQRX_VERSION=$(<version.txt)
GQRX_VERSION=$(<build/version.txt)
mv Gqrx.dmg Gqrx-$GQRX_VERSION.dmg
- name: Save artifact
uses: actions/upload-artifact@v3

1
.gitignore vendored
View File

@ -5,7 +5,6 @@
/*.dmg
/AppDir/
/Gqrx.app/
/version.txt
.idea/
cmake-build*/
/CMakeLists.txt.user

View File

@ -22,7 +22,7 @@ else()
)
endif()
add_definitions(-DVERSION="${VERSION}")
file(WRITE version.txt ${VERSION})
file(WRITE ${CMAKE_BINARY_DIR}/version.txt ${VERSION})
set(PACKAGE ${PROJECT_NAME})

View File

@ -33,7 +33,7 @@ echo " Starting to build the AppImage..."
echo "==================================================================="
echo ""
export VERSION=$(<version.txt)
export VERSION=$(<build/version.txt)
# version notice
echo "You are building Gqrx version: $VERSION"

View File

@ -1,6 +1,6 @@
#!/bin/bash -e
GQRX_VERSION=$(<version.txt)
GQRX_VERSION=$(<build/version.txt)
IDENTITY=Y3GC27WZ4S
mkdir -p Gqrx.app/Contents/MacOS