Skip to content

Commit

Permalink
default dist dir mount in build deb
Browse files Browse the repository at this point in the history
  • Loading branch information
bastiion committed Nov 25, 2024
1 parent 42a740b commit 0518ea5
Showing 1 changed file with 1 addition and 3 deletions.
4 changes: 1 addition & 3 deletions scripts/build-deb.sh
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,7 @@ set -e
docker build -t schulstick-builder -f docker/Dockerfile.build .

# Run the build process
docker run --rm -v "$(pwd):/build" -v "$(pwd)/dist:/dist" schulstick-builder bash -c "cd /build && dpkg-buildpackage -us -uc"
docker run --rm -v "$(pwd):/build" -v "$(pwd)/dist:/build/dist" schulstick-builder bash -c "cd /build && dpkg-buildpackage -us -uc"

# Move the .deb file to a dist directory
mv ../schulstick_*.deb /dist || echo "No .deb file found to move"

echo "Debian package built successfully! Check the dist/ directory."

0 comments on commit 0518ea5

Please sign in to comment.