Skip to content

Commit

Permalink
Properly update version of Debian package (#579)
Browse files Browse the repository at this point in the history
  • Loading branch information
Self-Perfection authored Jan 30, 2025
1 parent 5934e94 commit 5730800
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 10 deletions.
15 changes: 8 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -157,6 +157,8 @@ jobs:
steps:
- name: Checkout Repository
uses: actions/checkout@v4
with:
fetch-depth: 0 # Get full history to count number of commits for package version

- name: Download Linux Binaries
uses: actions/download-artifact@v4
Expand Down Expand Up @@ -190,14 +192,13 @@ jobs:
- name: Move License
run: mkdir -p ${{runner.workspace}}/pkg/usr/share/doc/psst-gui/; mv .pkg/copyright $_

- name: Move Package Config
- name: Write Package Config
run: |
mkdir -p ${{runner.workspace}}/pkg/
cp -r .pkg/DEBIAN $_/
sed -i 's/Architecture: amd64/Architecture: ${{ matrix.arch }}/' ${{runner.workspace}}/pkg/DEBIAN/control
- name: Set Version
run: "echo Version: $(git rev-list --count HEAD) >> ${{runner.workspace}}/pkg/DEBIAN/control"
mkdir -p ${{runner.workspace}}/pkg/DEBIAN
export ARCHITECTURE=${{ matrix.arch }}
SANITIZED_BRANCH="$(echo ${GITHUB_HEAD_REF:+.$GITHUB_HEAD_REF}|tr '_/' '-')"
export VERSION=0.1.0"$SANITIZED_BRANCH"+r"$(git rev-list --count HEAD)"-0
envsubst < .pkg/DEBIAN/control > ${{runner.workspace}}/pkg/DEBIAN/control
- name: Build Package
run: |
Expand Down
6 changes: 3 additions & 3 deletions .pkg/DEBIAN/control
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
Package: psst-gui
Version: 0.1.0
Architecture: amd64
Version: $VERSION
Architecture: $ARCHITECTURE
Maintainer: Jan Pochyla <jpochyla@gmail.com>
Section: sound
Priority: optional
Homepage: https://github.com/jpochyla/psst
Package-Type: deb
Depends: libssl3 | libssl1.1, libgtk-3-0, libcairo2
Description: Fast and multi-platform Spotify client with native GUI
Description: Fast and multi-platform Spotify client with native GUI

0 comments on commit 5730800

Please # to comment.