Skip to content

Commit

Permalink
Update snapcraft.yaml
Browse files Browse the repository at this point in the history
  • Loading branch information
popey authored Jul 29, 2024
1 parent 1d8ad1b commit 384f3b3
Showing 1 changed file with 2 additions and 19 deletions.
21 changes: 2 additions & 19 deletions snap/snapcraft.yaml
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
name: dosbox-staging
adopt-info: dosbox-staging
version: 0.81.2
summary: Open Source PC/MS-DOS emulator
description: |
DOSBox is a DOS-emulator that uses the SDL-library which
Expand Down Expand Up @@ -50,24 +50,7 @@ parts:
dosbox-staging:
after: [mt, fluidsynth]
plugin: meson
source: https://github.com/dosbox-staging/dosbox-staging.git
override-pull: |
snapcraftctl pull
last_committed_tag="$(git describe --tags `git rev-list --tags --max-count=1`)"
echo $last_committed_tag
##last_released_tag=v"$(snap info $CRAFT_PROJECT_NAME | awk '$1 == "latest/beta:" { print $2 }')"
##echo $last_released_tag
# If the latest tag from the upstream project has not been released to
# beta, build that tag instead of master.
##if [ "${last_committed_tag}" != "${last_released_tag}" ]; then
git fetch
git checkout "${last_committed_tag}"
echo "Setting version to $last_committed_tag"
snapcraftctl set-version "$(echo $last_committed_tag)"
##else
##echo "Setting version to $(git rev-parse --short HEAD)"
##snapcraftctl set-version "$(git rev-parse --short HEAD)"
##fi
source: https://github.com/dosbox-staging/dosbox-staging/archive/refs/tags/v$SNAPCRAFT_PROJECT_VERSION.tar.gz
build-packages:
- libsdl2-dev
- libsdl2-image-dev
Expand Down

0 comments on commit 384f3b3

Please sign in to comment.