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

1
.gitignore vendored
View File

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

View File

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

View File

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

View File

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