Skip to content

Commit

Permalink
Move version.txt into the build folder
Browse files Browse the repository at this point in the history
  • Loading branch information
argilo committed Oct 4, 2023
1 parent 802ec77 commit 5149217
Show file tree
Hide file tree
Showing 5 changed files with 4 additions and 5 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down
1 change: 0 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/*.dmg
/AppDir/
/Gqrx.app/
/version.txt
.idea/
cmake-build*/
/CMakeLists.txt.user
2 changes: 1 addition & 1 deletion CMakeLists.txt
Original file line number Diff line number Diff line change
Expand Up @@ -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})

Expand Down
2 changes: 1 addition & 1 deletion appimage.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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"
Expand Down
2 changes: 1 addition & 1 deletion macos_bundle.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash -e

GQRX_VERSION=$(<version.txt)
GQRX_VERSION=$(<build/version.txt)
IDENTITY=Y3GC27WZ4S

mkdir -p Gqrx.app/Contents/MacOS
Expand Down

0 comments on commit 5149217

Please sign in to comment.